html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    margin-bottom: 60px;
    /*cursor:none;*/
}

header {
    background-color: rgba(0, 0, 0, 1);
    position: relative;
    
    /*opacity: 0.5; */ /* 整个 header 的透明度为 50% */
}
.text-dark {
    color: white !important;
}

.navbar-light .navbar-brand {
    color: white !important;
}

nav.navbar {
    background-color: rgba(255, 255, 255, 0) !important; /* 半透明白色背景 */
    
}

.footer {
    position: static; /* 恢复默认流式布局 */
    width: 10%; /* 页脚占满整行 */
    white-space: normal !important; /* 允许换行 */
    line-height: 1.8 !important; /* 合适的行距 */
    font-size: 12px;
    text-align: center; /* 内容居中 */
    margin-top: 20px;
    padding: 10px 0;
    background-color: rgba(0, 0, 0, 1);
}

.container1 {
    display: grid; /* 设置为 grid 布局 */
    grid-template-columns: 8% 1fr 18% 8%; /* 分为两列，第一列占据剩余空间，第二列为 250px 宽度 */
    gap: 20px; /* 设置列之间的间距 */
    padding: 20px; /* 给容器添加一些内边距 */
    box-sizing: border-box; /* 确保 padding 不影响整体宽度 */

}

main {
    align-self: start;
}

/*侧边栏*/
.sideber {
    background-color: #3498db;
    color: white;
    padding: 20px;
    top:0;
    position: sticky;
    align-self: start;
}

.container2 {
    display: grid; /* 设置为 grid 布局 */
    grid-template-rows: auto auto auto auto; /* 分为两列，第一列占据剩余空间，第二列为 250px 宽度 */
    gap: 20px; /* 设置列之间的间距 */
    padding: 20px; /* 给容器添加一些内边距 */
    box-sizing: border-box; /* 确保 padding 不影响整体宽度 */
}

/*鼠标交互放大*/
.avatar:hover {
    transform: scale(1.1) rotate(360deg);
}

.avatar {
    width: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s ease; /* 动效过渡 */
    
}
