.card-img-top {
  padding: 10px;
  height: 100%;
  width: auto;
}

.single-line-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 10px;
}

.navbar-nav .nav-link {
  transition: all 0.3s;
  color: var(--bs-heading-color);
}

/* 激活项文字颜色为 danger */

.navbar-nav .nav-link.active {
  color: var(--bs-primary);
}

/* 鼠标悬停时背景为 danger，文字为 text-light */

.single-line-text:hover {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
.navbar-nav .nav-link:hover {
  background-color: var(--bs-primary);
  color: var(--bs-light) !important;
  border-radius: 0.375rem;
}

/* 二级菜单项 hover 效果 */

.dropdown-menu .dropdown-item:hover {
  background-color: var(--bs-primary);
  color: var(--bs-light) !important;
}

.navbar {
  transition: all 0.3s ease;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background-color: #ffffff;
}

.navbar.scrolled {
  background-color: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body {
  padding-top: 80px;
}

.qy-abuot-top {
  overflow: hidden;
  max-height: 20rem;
}

.card a{
    all: unset;           /* 先清除所有继承样式 */
  height: 300px;
  background-color: ffffff;
  display: flex;      /* 可选：使内部内容对齐 */
  align-items: center; /* 可选：垂直居中 */
  justify-content: center; /* 可选：水平居中 */
  text-decoration: none;
}
.nav-link .card{
    height: 300px;
  
}
.nav-link img{
    height:260px;
  
}

.card-img-index {
  padding: 10px;
  height: auto;
  width: auto;
  max-width: 100%;
  max-height: 100%;
}
a img .card-img-width{
  padding: 10px;
  height: auto;
  width: 100%;
}
.card-index {
    --bs-card-spacer-y: 1rem;
    --bs-card-spacer-x: 1rem;
    --bs-card-title-spacer-y: 0.5rem;
    --bs-card-title-color: ;
    --bs-card-subtitle-color: ;
    --bs-card-border-width: var(--bs-border-width);
    --bs-card-border-color: var(--bs-border-color-translucent);
    --bs-card-border-radius: var(--bs-border-radius);
    --bs-card-box-shadow: ;
    --bs-card-inner-border-radius: calc(var(--bs-border-radius) - (var(--bs-border-width)));
    --bs-card-cap-padding-y: 0.5rem;
    --bs-card-cap-padding-x: 1rem;
    --bs-card-cap-bg: rgba(var(--bs-body-color-rgb), 0.03);
    --bs-card-cap-color: ;
    --bs-card-height: ;
    --bs-card-color: ;
    --bs-card-bg: var(--bs-body-bg);
    --bs-card-img-overlay-padding: 1rem;
    --bs-card-group-margin: 0.75rem;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: var(--bs-card-height);
    color: var(--bs-body-color);
    word-wrap: break-word;
    background-color: var(--bs-card-bg);
    background-clip: border-box;
    border: var(--bs-card-border-width) solid var(--bs-card-border-color);
    border-radius: var(--bs-card-border-radius);
    width:auto;
    height:auto;
    max-width: 100%;
    max-height: 100%;
}
.py-4 img :not(.card-img-top){
  width: 100%;
  height:auto;
}
p img :not(.card-img-top){
  width: 80%;
  border-radius: var(--bs-border-radius)!important;
    display: block; /* 将img转换为块级元素 */
  margin-left: auto;
  margin-right: auto;
  max-height: 60vh;
}

.p-text img {
  width:80%;
  height:auto;
}
.card img{
  height: auto;
  max-height: 100%;
  width:auto;
  max-width: 100%;
}
.w-80 {
width: 80%;
}