665 lines
		
	
	
		
			10 KiB
		
	
	
	
		
			CSS
		
	
	
	
	
	
			
		
		
	
	
			665 lines
		
	
	
		
			10 KiB
		
	
	
	
		
			CSS
		
	
	
	
	
	
| /* 基础样式 */
 | |
| body {
 | |
|   font-family: "Muli", sans-serif;
 | |
|   color: rgb(52, 58, 64);
 | |
| }
 | |
| 
 | |
| a {
 | |
|   text-decoration: none !important;
 | |
|   color: var(--bs-white);
 | |
| }
 | |
| 
 | |
| a:hover {
 | |
|   color: var(--bs-orange);
 | |
| }
 | |
| 
 | |
| .fas {
 | |
|   color: #fff !important;
 | |
| }
 | |
| 
 | |
| /* 代码块样式 */
 | |
| pre {
 | |
|   background-color: #f8f9fa;
 | |
|   border-radius: 6px;
 | |
|   padding: 16px;
 | |
|   margin: 20px 0;
 | |
|   overflow: auto;
 | |
|   font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
 | |
|   font-size: 14px;
 | |
|   line-height: 1.6;
 | |
|   color: #333;
 | |
|   border-left: 4px solid #0d6efd;
 | |
|   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
 | |
| }
 | |
| 
 | |
| pre code {
 | |
|   background-color: transparent;
 | |
|   padding: 0;
 | |
|   font-size: inherit;
 | |
|   color: inherit;
 | |
|   white-space: pre;
 | |
|   word-break: normal;
 | |
| }
 | |
| 
 | |
| /* 代码块响应式样式 */
 | |
| @media (max-width: 768px) {
 | |
|   pre {
 | |
|     padding: 12px;
 | |
|     font-size: 13px;
 | |
|   }
 | |
| }
 | |
| 
 | |
| /* 代码高亮样式 */
 | |
| .hljs-keyword,
 | |
| .hljs-selector-tag {
 | |
|   color: #d73a49;
 | |
| }
 | |
| 
 | |
| .hljs-string,
 | |
| .hljs-attr {
 | |
|   color: #032f62;
 | |
| }
 | |
| 
 | |
| .hljs-number,
 | |
| .hljs-literal {
 | |
|   color: #005cc5;
 | |
| }
 | |
| 
 | |
| .hljs-comment {
 | |
|   color: #6a737d;
 | |
|   font-style: italic;
 | |
| }
 | |
| 
 | |
| .hljs-function,
 | |
| .hljs-title {
 | |
|   color: #6f42c1;
 | |
| }
 | |
| 
 | |
| /* 字体大小类 */
 | |
| .f20,
 | |
| .f-20 {
 | |
|   font-size: 20px;
 | |
| }
 | |
| 
 | |
| .f18,
 | |
| .f-18 {
 | |
|   font-size: 18px;
 | |
| }
 | |
| 
 | |
| .f16,
 | |
| .f-16 {
 | |
|   font-size: 16px;
 | |
| }
 | |
| 
 | |
| .f14,
 | |
| .f-14 {
 | |
|   font-size: 14px;
 | |
| }
 | |
| 
 | |
| .f12,
 | |
| .f-12 {
 | |
|   font-size: 12px;
 | |
| }
 | |
| 
 | |
| .mr-20 {
 | |
|   margin-right: 20px;
 | |
| }
 | |
| 
 | |
| .mr-10 {
 | |
|   margin-right: 10px;
 | |
| }
 | |
| 
 | |
| /* 页脚样式 */
 | |
| .footer {
 | |
|   margin-top: 200px;
 | |
|   padding: 80px 0;
 | |
|   position: relative;
 | |
|   background-color: #2a254d;
 | |
| }
 | |
| 
 | |
| .footer .container {
 | |
|   display: flex;
 | |
|   justify-content: center;
 | |
| }
 | |
| 
 | |
| .row-main {
 | |
|   display: flex;
 | |
|   justify-content: space-between;
 | |
|   width: 100%;
 | |
| }
 | |
| 
 | |
| .footer-sub-menu li {
 | |
|   font-size: 16px;
 | |
|   margin-bottom: 5px;
 | |
| }
 | |
| 
 | |
| .footer-sub-menu li a:hover {
 | |
|   color: #f57005;
 | |
|   text-decoration: none;
 | |
|   transition: all 0.3s ease;
 | |
| }
 | |
| 
 | |
| .main-footer {
 | |
|   background-color: var(--eduact-black);
 | |
|   position: relative;
 | |
|   padding: 132px 0 120px;
 | |
| }
 | |
| 
 | |
| .copyright {
 | |
|   position: relative;
 | |
|   background-color: #1f1944;
 | |
|   padding: 27px 0 28px;
 | |
| }
 | |
| 
 | |
| .copyright__text {
 | |
|   color: #697585;
 | |
|   margin: 0;
 | |
|   font-family: var(--eduact-font);
 | |
|   font-size: 16px;
 | |
|   line-height: 25px;
 | |
|   font-weight: 400;
 | |
| }
 | |
| 
 | |
| .copyright__text a {
 | |
|   color: #f57005;
 | |
| }
 | |
| 
 | |
| .copyright__text a:hover {
 | |
|   color: #f57005;
 | |
| }
 | |
| 
 | |
| .copyright .tongji {
 | |
|   width: 100%;
 | |
|   height: 20px;
 | |
|   color: #fff;
 | |
|   margin-top: 20px;
 | |
| }
 | |
| 
 | |
| /* 响应式容器 */
 | |
| @media (min-width: 1400px) {
 | |
|   .container {
 | |
|     padding: 0 18px;
 | |
|     max-width: 1356px;
 | |
|   }
 | |
| }
 | |
| 
 | |
| /* 头部样式 */
 | |
| .main-header {
 | |
|   position: relative;
 | |
|   width: 100%;
 | |
|   /* height: 800px; */
 | |
| }
 | |
| 
 | |
| .topbar-one__social {
 | |
|   display: flex;
 | |
|   align-items: center;
 | |
|   gap: 10px;
 | |
|   justify-content: end;
 | |
| }
 | |
| 
 | |
| /* 主导航菜单 */
 | |
| .main-menu {
 | |
|   background: #fff;
 | |
|   width: 100%;
 | |
| }
 | |
| 
 | |
| .main-menu .container {
 | |
|   height: 100px;
 | |
|   display: flex;
 | |
|   align-items: center;
 | |
|   justify-content: space-between;
 | |
|   position: relative;
 | |
| }
 | |
| 
 | |
| .main-menu .container .main-menu__right .layui-btn-primary:hover,
 | |
| .sticky-nav .container .main-menu__right .layui-btn-primary:hover {
 | |
|   color: #3492ed;
 | |
| }
 | |
| 
 | |
| .main-menu .container .main-menu__nav a {
 | |
|   color: #3492ed !important;
 | |
| }
 | |
| 
 | |
| .main-menu .container .main-menu__nav a:hover {
 | |
|   color: #fff ;
 | |
| }
 | |
| 
 | |
| .main-menu .container a:hover {
 | |
|   color: var(--bs-white);
 | |
| }
 | |
| 
 | |
| #userDropdownMain a:hover {
 | |
|   color: #0d6efd !important;
 | |
| }
 | |
| 
 | |
| .main-menu__logo {
 | |
|   display: flex;
 | |
|   align-items: center;
 | |
|   position: relative;
 | |
| }
 | |
| 
 | |
| .main-menu__list {
 | |
|   display: flex;
 | |
|   justify-content: center;
 | |
|   gap: 10px;
 | |
|   margin: 0;
 | |
|   padding: 0;
 | |
|   list-style: none;
 | |
| }
 | |
| 
 | |
| .main-menu__list a {
 | |
|   color: #2c3e50;
 | |
|   font-size: 16px;
 | |
|   font-weight: 500;
 | |
|   text-decoration: none;
 | |
|   padding: 16px 10px;
 | |
|   border-radius: 6px;
 | |
|   transition: all 0.3s ease;
 | |
|   position: relative;
 | |
| }
 | |
| 
 | |
| .main-menu__list a:hover {
 | |
|   color: #0081ff;
 | |
|   /* background-color: #3498db; */
 | |
|   /* box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3); */
 | |
|   transform: translateY(-2px);
 | |
|   text-decoration: none;
 | |
| }
 | |
| 
 | |
| .main-menu__list a::after {
 | |
|   content: "";
 | |
|   position: absolute;
 | |
|   bottom: 0;
 | |
|   left: 50%;
 | |
|   width: 0;
 | |
|   height: 2px;
 | |
|   background-color: #3498db;
 | |
|   transition: all 0.3s ease;
 | |
|   transform: translateX(-50%);
 | |
| }
 | |
| 
 | |
| .main-menu__list a:hover::after {
 | |
|   width: 80%;
 | |
| }
 | |
| 
 | |
| /* 固定导航 */
 | |
| .sticky-nav {
 | |
|   position: fixed;
 | |
|   top: 0;
 | |
|   left: 0;
 | |
|   right: 0;
 | |
|   background: #fff;
 | |
|   box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
 | |
|   z-index: 1000;
 | |
|   padding: 10px 0;
 | |
| }
 | |
| 
 | |
| .sticky-nav .container {
 | |
|   display: flex;
 | |
|   align-items: center;
 | |
|   justify-content: space-between;
 | |
| }
 | |
| 
 | |
| .sticky-nav__logo {
 | |
|   display: flex;
 | |
|   align-items: center;
 | |
|   position: relative;
 | |
| }
 | |
| 
 | |
| .sticky-nav__menu a {
 | |
|   color: #212529 !important;
 | |
| }
 | |
| 
 | |
| .sticky-nav__menu a:hover {
 | |
|   color: #0081ff !important;
 | |
|   border-bottom: 3px solid #0081ff;
 | |
|   padding-bottom: 5px;
 | |
|   transition: all ease 0.2s;
 | |
| }
 | |
| 
 | |
| .sticky-nav__menu ul {
 | |
|   display: flex;
 | |
|   justify-content: center;
 | |
|   gap: 30px;
 | |
|   margin: 0;
 | |
|   padding: 0;
 | |
|   list-style: none;
 | |
| }
 | |
| 
 | |
| .sticky-nav__menu ul li a {
 | |
|   text-decoration: none;
 | |
|   font-size: 16px;
 | |
|   transition: color 0.3s;
 | |
| }
 | |
| 
 | |
| /* 轮播动画 */
 | |
| @keyframes slide {
 | |
|   0%,
 | |
|   33% {
 | |
|     transform: translateX(0);
 | |
|   }
 | |
| 
 | |
|   34%,
 | |
|   66% {
 | |
|     transform: translateX(-33.33%);
 | |
|   }
 | |
| 
 | |
|   67%,
 | |
|   100% {
 | |
|     transform: translateX(-66.66%);
 | |
|   }
 | |
| }
 | |
| 
 | |
| /* 顶部栏 */
 | |
| .topbar-one {
 | |
|   background: #3492ed;
 | |
| }
 | |
| 
 | |
| .topbar-one .container {
 | |
|   width: 100%;
 | |
|   display: flex;
 | |
|   align-items: center;
 | |
|   justify-content: space-between;
 | |
| }
 | |
| 
 | |
| .topbar-one .container a {
 | |
|   color: #fff;
 | |
| }
 | |
| 
 | |
| .topbar-one .container .topbar-one__info {
 | |
|   display: flex;
 | |
|   align-items: center;
 | |
|   gap: 20px;
 | |
| }
 | |
| 
 | |
| .topbar-one .container .topbar-one__info a {
 | |
|   color: #fff !important;
 | |
| }
 | |
| 
 | |
| .topbar-one .container ul {
 | |
|   display: flex;
 | |
|   align-items: center;
 | |
|   margin: 10px 0;
 | |
|   padding: 0;
 | |
| }
 | |
| 
 | |
| .topbar-one .container ul li {
 | |
|   margin-right: 10px;
 | |
| }
 | |
| 
 | |
| /* 主要内容区 */
 | |
| .main-content {
 | |
|   max-width: 1250px;
 | |
|   margin: 0 auto;
 | |
|   padding: 0 15px;
 | |
| }
 | |
| 
 | |
| .core-block {
 | |
|   margin-top: 80px;
 | |
| }
 | |
| 
 | |
| .module-header {
 | |
|   display: flex;
 | |
|   justify-content: space-between;
 | |
|   border-bottom: 1px solid #efefef;
 | |
|   margin-bottom: 20px;
 | |
|   padding-bottom: 15px;
 | |
| }
 | |
| 
 | |
| .ModuleTitle_titleWrapper {
 | |
|   display: flex;
 | |
| }
 | |
| 
 | |
| .ModuleTitle_title {
 | |
|   margin-right: 24px;
 | |
|   font-size: 22px;
 | |
|   font-weight: 600;
 | |
|   color: #404040;
 | |
| }
 | |
| 
 | |
| .tab-header {
 | |
|   display: flex;
 | |
|   align-items: center;
 | |
|   gap: 20px;
 | |
| }
 | |
| 
 | |
| .tab-header .active {
 | |
|   color: #f57005;
 | |
| }
 | |
| 
 | |
| .tab-content {
 | |
|   display: none;
 | |
|   opacity: 0;
 | |
|   transition: opacity 0.3s ease;
 | |
| }
 | |
| 
 | |
| .tab-content.active {
 | |
|   opacity: 1;
 | |
|   display: flex;
 | |
|   flex-wrap: wrap;
 | |
|   gap: 20px;
 | |
|   justify-content: flex-start;
 | |
| }
 | |
| 
 | |
| .tab-item {
 | |
|   cursor: pointer;
 | |
| }
 | |
| 
 | |
| .product-item {
 | |
|   transition: transform 0.3s ease;
 | |
| }
 | |
| 
 | |
| .product-item:hover {
 | |
|   transform: translateY(-5px);
 | |
|   transition: transform 0.5s ease;
 | |
| }
 | |
| 
 | |
| .ModuleTitle_subtitle {
 | |
|   font-size: 16px;
 | |
|   color: #888;
 | |
| }
 | |
| 
 | |
| .more-btn {
 | |
|   padding: 3px 15px;
 | |
|   font-size: 14px;
 | |
|   color: #7f848c;
 | |
|   line-height: 30px;
 | |
|   cursor: pointer;
 | |
| }
 | |
| 
 | |
| .product-list {
 | |
|   display: flex;
 | |
|   flex-wrap: wrap;
 | |
|   gap: 20px;
 | |
|   justify-content: flex-start;
 | |
| }
 | |
| 
 | |
| .product-item {
 | |
|   cursor: pointer;
 | |
| }
 | |
| 
 | |
| .opencourse {
 | |
|   width: 280px;
 | |
|   height: 300px;
 | |
|   background: #fff;
 | |
|   box-shadow: 0 4px 30px 0 rgba(238, 242, 245, 0.8);
 | |
|   border-radius: 8px;
 | |
|   cursor: pointer;
 | |
|   transition: box-shadow 0.2s linear;
 | |
|   padding: 15px;
 | |
|   overflow: hidden;
 | |
| }
 | |
| 
 | |
| .opencourse:hover .title {
 | |
|   color: #fa8919;
 | |
| }
 | |
| 
 | |
| .video {
 | |
|   position: relative;
 | |
|   background: #eee;
 | |
|   border-radius: 8px;
 | |
|   overflow: hidden;
 | |
|   width: 250px;
 | |
|   height: 140px;
 | |
| }
 | |
| 
 | |
| .video img {
 | |
|   width: 100%;
 | |
|   object-fit: cover;
 | |
| }
 | |
| 
 | |
| .introduction {
 | |
|   margin: 12px 12px 0 10px;
 | |
| }
 | |
| 
 | |
| .bottom {
 | |
|   display: flex;
 | |
|   align-items: center;
 | |
|   justify-content: space-between;
 | |
|   margin: 16px 12px 0 10px;
 | |
| }
 | |
| 
 | |
| .bottom .desc,
 | |
| .bottom .author,
 | |
| .bottom .views,
 | |
| .publishdate {
 | |
|   font-weight: 400;
 | |
|   color: #b2b2b2;
 | |
|   font-size: 14px;
 | |
|   line-height: 20px;
 | |
| }
 | |
| 
 | |
| .publishdate {
 | |
|   margin-top: 10px;
 | |
| }
 | |
| 
 | |
| .bottom .btn {
 | |
|   display: flex;
 | |
|   justify-content: center;
 | |
|   align-items: center;
 | |
|   width: 92px;
 | |
|   height: 28px;
 | |
|   background: #fbf5ee;
 | |
|   border-radius: 14px;
 | |
|   font-weight: 500;
 | |
|   color: #fa8919;
 | |
|   cursor: pointer;
 | |
|   font-size: 14px;
 | |
|   line-height: 20px;
 | |
| }
 | |
| 
 | |
| .introduction .title {
 | |
|   height: 50px;
 | |
|   font-size: 17px;
 | |
|   font-weight: 500;
 | |
|   color: #404040;
 | |
|   line-height: 25px;
 | |
|   transition: color 0.2s ease;
 | |
|   display: -webkit-box;
 | |
|   -webkit-line-clamp: 2;
 | |
|   -webkit-box-orient: vertical;
 | |
|   overflow: hidden;
 | |
| }
 | |
| 
 | |
| .introduction .subtitle {
 | |
|   height: 45px;
 | |
|   margin-top: 4px;
 | |
|   font-size: 15px;
 | |
|   font-weight: 400;
 | |
|   color: #888;
 | |
|   overflow: hidden;
 | |
|   display: -webkit-box;
 | |
|   -webkit-line-clamp: 2;
 | |
|   -webkit-box-orient: vertical;
 | |
| }
 | |
| 
 | |
| .layui-layer-btn .layui-layer-btn1 {
 | |
|   background: #fff;
 | |
|   color: #212529 !important;
 | |
|   border: 1px solid #212529;
 | |
| }
 | |
| 
 | |
| .program-content img,
 | |
| .game-content img {
 | |
|   width: 100%;
 | |
|   margin: 20px auto;
 | |
| }
 | |
| 
 | |
| .article-detail-container {
 | |
| }
 | |
| 
 | |
| .article-detail-container .article-header .trans,
 | |
| .program-detail-container .program-header .trans {
 | |
|   margin-bottom: 10px;
 | |
|   color: #aaa;
 | |
|   font-size: 12px;
 | |
| }
 | |
| 
 | |
| .article-detail-container .article-content h1,
 | |
| .article-detail-container .article-content h2,
 | |
| .article-detail-container .article-content h3,
 | |
| .article-detail-container .article-content h4,
 | |
| .article-detail-container .article-content h5,
 | |
| .program-detail-container .program-content h1,
 | |
| .program-detail-container .program-content h2,
 | |
| .program-detail-container .program-content h3,
 | |
| .program-detail-container .program-content h4,
 | |
| .program-detail-container .program-content h5 {
 | |
|   font-weight: 700;
 | |
|   margin-bottom: 20px;
 | |
| }
 | |
| 
 | |
| .article-detail-container .article-content h1,
 | |
| .program-detail-container .program-content h1 {
 | |
|   font-size: 2rem;
 | |
| }
 | |
| 
 | |
| .article-detail-container .article-content h2,
 | |
| .program-detail-container .program-content h2 {
 | |
|   font-size: 1.75rem;
 | |
| }
 | |
| 
 | |
| .article-detail-container .article-content h3,
 | |
| .program-detail-container .program-content h3 {
 | |
|   font-size: 1.45rem;
 | |
| }
 | |
| 
 | |
| .article-detail-container .article-content h4,
 | |
| .program-detail-container .program-content h4 {
 | |
|   font-size: 1.25rem;
 | |
| }
 | |
| 
 | |
| .article-detail-container .article-content h5,
 | |
| .program-detail-container .program-content h5 {
 | |
|   font-size: 1rem;
 | |
| }
 | |
| 
 | |
| .article-detail-container .article-content video,
 | |
| .program-detail-container .program-content video {
 | |
|   width: 100%;
 | |
|   margin: 10px auto;
 | |
| }
 | |
| 
 | |
| .article-detail-container .article-content span,
 | |
| .program-detail-container .program-content span {
 | |
|   margin: 0 5px;
 | |
|   padding: 2px 6px;
 | |
|   border-radius: 4px;
 | |
| }
 | |
| 
 | |
| .article-detail-container .article-content pre,
 | |
| .program-detail-container .program-content pre {
 | |
|   margin-bottom: 2.5rem;
 | |
| }
 | |
| 
 | |
| .article-detail-container .article-content pre code,
 | |
| .program-detail-container .program-content pre code {
 | |
|   white-space: pre-wrap;
 | |
|   word-wrap: break-word;
 | |
| }
 | |
| 
 | |
| .article-detail-container .article-content hr,
 | |
| .program-detail-container .program-content hr {
 | |
|   margin: 40px auto;
 | |
| }
 |