@import"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css";
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
/* 头部样式 */
header {
            background-color: #f8f9fa;
            padding: 15px 20px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            position: sticky;
            top: 0px;
            z-index: 100;
        }
a {
    text-decoration: none !important;
}
.header-container {
    width: 100%;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
}    
.logo {
    min-width: 600px;
    padding: 15px 20px;
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
}   
.auth-buttons{
    min-width: 300px;
    margin-right: 35px;
}
.auth-buttons a {
    margin-right: 25px;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.login-btn {
    color: #3498db;
    border: 1px solid #3498db;
}
.login-btn:hover {
    background-color: #3498db;
    color: white;
}
.register-btn {
    color: white;
    background-color: #3498db;
    border: 1px solid #3498db;
}   
.register-btn:hover {
    background-color: #2980b9;
}
/* 导航栏样式 */
nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    background-color: #2c3e50;
}   
.nav-container {
    width: 100%;
}
.nav-links {
    overflow: hidden;
    width: 100%;
    height: 100px;
    display: flex;
    list-style: none;
}
.topnav {
    color: white;
    text-align: left;
    padding: 15px 50px;
}    
.dropbtn{
    display: inline;
    color: white;
    font-size: 20px;
    padding: 15px 30px;
}
.topnav > a {
    color: white;
    font-size: 20px;
    padding: 15px 10px;
    display: block;
    transition: background-color 0.3s ease;
}   
.nav-links a:hover {
    background-color: #34495e;
}
/* 添加一个活动类来突出显示当前页面 */
.topnav a.active {
  background-color: #04AA6D;
  color: white;
}
/* 隐藏用于在小屏幕上打开和关闭顶部导航的链接 */
.topnav .icon {
  display: none;
}
/* 下拉容器 */
.dropdown {
    display: inline;
    float: left;
    overflow: hidden;
}
/* 下拉按钮 */
.dropdown .dropbtn {
    display: inline;
    border: none;
    outline: none;
    color: white;
    background-color: inherit;
    font-family: inherit; /* 对于手机上的垂直对齐很重要 */
    margin: 0; /* 对于手机上的垂直对齐很重要 */
}
/* 在鼠标悬停时为导航栏链接添加红色背景色 */
.navbar a:hover, .dropdown:hover .dropbtn {
  background-color: #34495e;
}
/* 下拉菜单内容（默认为隐藏） */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: yellow;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}
/* 下拉菜单中的链接 */
.dropdown-content a {
  float: none;
  color: purple;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}
.VideoMoments{
    color: blue;
}
/* 鼠标悬停时给下拉菜单的链接添加灰色背景色 */
.dropdown-content a:hover {
  background-color: cyan;
}
/* 鼠标悬停时显示下拉菜单 */
.dropdown:hover .dropdown-content {
  display: block;
}
main {
    width: 100%;
    min-width:800px ;
    margin: 30px auto;
    padding-left: 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}  
.main-content{
    min-width: 500px;
}
.content-section {
	min-width: 280px;
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.section-title {
    margin-bottom: 20px;
    font-size: 30px;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
} 
/* 百度搜索框样式 */
.search-container {
    background-color: #f1f1f1;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
} 
         /*主要内容区域 */

.baidu-search {
    display: flex;
    max-width: 3840px;
    min-width: 280px;
    margin: 0 auto;
} 
.baidu-search input {
    flex: 1;
    padding: 10px 15px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 4px 0 0 4px;
    outline: none;
}    
.baidu-search button {
    padding: 0 20px;
    background-color: #38f;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}   
.baidu-search button:hover {
    background-color: #317ef3;
}  
     /* 链接列表样式 */
.links-list {
    display: grid;
    grid-template-columns: repeat(3,1fr);
	grid-template-rows: repeat(2,100px);
    grid-column-gap: 15px;
	grid-row-gap: 15px;
}	
.links-School {	   
    display: grid;
    grid-template-columns: repeat(2,1fr);
    grid-template-rows: repeat(2,300px);
    grid-column-gap: 15px;
    grid-row-gap: 15px;
}	
.link-item {
	padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}   
.link-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 55px 55px rgba(0,0,0,0.1);
} 
.link-item a {
    text-decoration: underline;
    color: #3498db;
    text-decoration: none;
    display: block;
}   
.link-item a:hover {
    text-decoration: underline;
}
.link-description {
    color: #7f8c8d;
    font-size: 14px;
    margin-top: 5px;
}
    /* 侧边栏样式 */
.sidebar {
    display: flex;
    flex-direction: column;
    min-width: 360px;
    column-gap: 20px;
} 
.sidebar-widget {
    text-align: center;
    background-color: white;
    padding: 60px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}  
.footer-number{
    
    background-color:white;
    font-style: italic;
    text-shadow: 0.6px 0.6px;
    color: white;
    margin-top: 50px;	
	text-align: left;
	margin-left: 20px;

}
.footer-number > li{
    margin-top: 30px;
    margin-bottom: 30px;
    font-size:25px;
    
}
.photo-name{
    margin-left: 30px;
    font-size: 20px;
    color: blue;
    text-align: center;
    width: 200px;
    background-image: linear-gradient(to right, red , yellow);
    margin-bottom: 50px;
}
.contact{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 10px;	
}
h3{
    margin-left: 20px;
    font-size: 30px;
}
.pic>img{
    width: 200px;
    height: 200px;
    margin-left: 30px;
}
    
.sidebar-widget>p{
    border-left-style: double;
    border-right-style: double;
    border-top-style: dotted;
    border-bottom-style: dotted;
    margin-bottom: 15px; 
    color: pink;
    outline-width:thick ;
    
}
/* 页脚样式 */
footer {
    background-color: #2c3e50;
/*	max-width: 3840px;*/
	width: 100%;
    color: white;
    padding: 40px 20px;
    margin-top: 50px;	
}   
.footer-container {
 /*   max-width: 3840px;
	min-width: 1080pxpx;*/
    margin: auto;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 30px;	
}  
h4 {
    font-size: 30px;
    margin-bottom: 20px;
    position: relative;
    margin-left: 23%;
}    
.footer-column h4::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #3498db;
}
.footer-links {
    list-style: none;
	text-align: left;
	margin-left: 25%;
	margin-top: 40px;
}  
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    font-size: 18px;
    color: #bdc3c7;
    text-decoration: underline;
    transition: color 0.3s ease;
} 
.footer-links a:hover {
    color: white;
}
.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 26px;
    color: #bdc3c7;
}


/* 当屏幕宽度小于 600 像素时，隐藏除第一个链接（"Home"）之外的所有链接。显示包含应打开和关闭顶部导航 (.icon) 的链接 */
@media screen and (max-width: 600px) {
.nav-links .topnav :not(:first-child) {display: none;}
.dropdown:not(:first-child) {display: none;}
.nav-links a.icon {
    float: right;
    display: block;
  }
head{
     margin: 0;
     padding: 0;
     clear: right;
 }
.header{
     height: 60px;
 }
.header-container{
     min-width: 570px;
     height: 60px;
  }
.logo{
      font-size: 10px;
      min-width: 100px;
      
  }
 .login-btn,.register-btn{
     min-width: 80px;
     font-size: 10px;
 }
 .topnav{
     font-size: 4px;
     padding: 1px;
 }
 .nav-links{
     height: 120px;
 }
 .baidu-search{
     width: 100px;
 }
main {
    min-width:370px;
    padding: 0 ;
    margin:0;
    grid-template-columns: repeat(1,1fr);
    }
.main-content{
    min-width: 200px;
}
.sidebar{
    min-width: 200px;
}
    
.links-list {
    grid-template-columns: repeat(1,1fr);
	grid-template-rows: repeat(6,100px);
}	
.links-School {	  
    grid-template-columns: repeat(1,1fr);
	grid-template-rows: repeat(4,100px);
}
.pic > img {
        width: 100px;
        height: 100px;
}
.photo-name{
    width: 100px;
    font-size: 10px;
}
footer{
    min-width: 370px;
    margin: 0;
    }
.footer-links a{
    font-size: 10px;
}
.footer-number > li{
    font-size: 10px;
}
h3,h4{
    font-size: 15px;
    
}

.section-title {
     font-size: 15px;
}
.copyright{
    font-size: 18px;
}
}

/* 当用户点击图标时，JavaScript 会向 topnav 添加 "responsive" 类。这个类使 topnav 在小屏幕上看起来更好（将链接垂直显示而不是水平显示） */

