﻿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;
}

.floating-menu {
  position: fixed; /* 固定位置 */
  left: 10px; /* 距离左边界10px */
  top: 50%; /* 在屏幕的垂直中间 */
  transform: translateY(-50%); /* 垂直居中 */
  background-color: #fff; /* 白色背景 */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* 添加阴影效果 */
  border-radius: 10px; /* 边角圆滑 */
  width: 200px; /* 菜单宽度 */
  z-index: 1000; /* 确保在最上层 */
}

.floating-menu ul {
  list-style: none; /* 移除列表点 */
  padding: 0; /* 移除内边距 */
  margin: 0; /* 移除外边距 */
}

.floating-menu ul li {
  border-bottom: 1px solid #f1f1f1; /* 列表项之间的分隔线 */
  transition: background-color 0.3s; /* 背景色变化的过渡效果 */
}

.floating-menu ul li:last-child {
  border-bottom: none; /* 移除最后一项的分隔线 */
}

.floating-menu ul li a {
  display: block; /* 占满整个列表项 */
  padding: 15px 20px; /* 内边距 */
  color: #333; /* 文字颜色 */
  text-decoration: none; /* 移除下划线 */
  transition: color 0.3s; /* 文字颜色变化的过渡效果 */
}

.floating-menu ul li:hover,
.floating-menu ul li:focus {
  background-color: #f8f9fa; /* 鼠标悬浮时的背景色 */
}

.floating-menu ul li a:hover,
.floating-menu ul li a:focus {
  color: #007bff; /* 鼠标悬浮时的文字颜色 */
}
.custom-dropdown-link {
  color: #007bff !important; /* 设置字体颜色为Bootstrap的蓝色 */
  background-color: transparent !important; /* 背景透明 */
}

.custom-dropdown-link:hover,
.custom-dropdown-link:focus {
  background-color: #f8f9fa !important; /* 鼠标悬浮时的背景颜色 */
  color: #0056b3 !important; /* 鼠标悬浮时的字体颜色 */
}

main[role="main"] {
  padding-top: 10px; /* 或者根据导航栏的实际高度进行调整 */
}

.breadcrumb-nav {
  margin-top: 70px; /* 假设导航栏高度为56px */
}

/*.custom-btn {
    padding: 1rem 1.5rem;*/ /* 增加填充来增大按钮 */
/*font-size: 1.25rem;*/ /* 增加字体大小 */
/* 可以添加其他样式，如边框大小、圆角等 */
/*}*/

/* 自定义按钮样式 */
.custom-button {
  background-color: #007bff; /* Bootstrap 主题蓝色 */
  color: white;
  border: none; /* 移除边框 */
  border-radius: 5px; /* 轻微的圆角效果 */
  padding: 10px 20px; /* 内填充，第一个值是垂直方向，第二个值是水平方向 */
  font-size: 18px; /* 字体大小 */
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* 轻微的阴影 */
  transition: background-color 0.3s, box-shadow 0.3s; /* 平滑过渡效果 */
}

/* 鼠标悬浮时的样式 */
.custom-button:hover {
  background-color: #0056b3; /* 按钮的悬浮色 */
  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15); /* 鼠标悬浮时的阴影 */
  text-decoration: none; /* 移除超链接的下划线 */
}

/* 按钮按下时的样式 */
.custom-button:active {
  background-color: #004085; /* 按钮的按下色 */
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1); /* 按钮按下时的阴影 */
}

.user-menu {
  position: relative;
  display: inline-block;
}

.user-button {
  background-color: #4caf50;
  color: white;
  padding: 10px;
  border: none;
  cursor: pointer;
}

.user-dropdown {
  display: none;
  position: absolute;
  background-color: white;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  min-width: 160px;
  z-index: 1;
}

.user-dropdown a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.user-dropdown a:hover {
  background-color: #f1f1f1;
}

@media (max-width: 576px) {
  .mobile-full-width {
    width: 100%;
    margin-bottom: 1rem;
  }

  .form-control {
    font-size: 1.2rem;
  }

  .btn {
    font-size: 1.2rem;
  }
}

.user-info {
    display: inline-block;
    padding: 10px 20px;
    margin: 10px;
    background-color: #f1f1f1; /* Light grey background */
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15); /* Subtle shadow */
    font-size: 16px;
    font-weight: bold;
    color: #333; /* Dark text color */
    text-align: center;
}

    .user-info:hover {
        background-color: #f0f0f0;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        border-color: #ccc;
    }
    .user-info .user-img {
        width: 80%;
        height: auto;
        display: block;
        margin: 0 auto 10px; /* Center the image and add some space below it */
    }

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

    .dropdown-content a {
        color: black;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
    }

        .dropdown-content a:hover {
            background-color: #f1f1f1;
        }

.show {
    display: block;
}


