/* extra css */
[aria-hidden="true"] {
    display: none!important;
    visibility: hidden;
    opacity: 0;
}

.w25 {
    width:25%!important;
}

.w33 {
    width:33%!important;
}

.lang-item a {
    display: block;
    width: 100%;
    padding: var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);
    clear: both;
    font-weight: 500;
    color: var(--bs-dropdown-link-color);
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    border-radius: var(--bs-dropdown-item-border-radius, 0);
    letter-spacing: normal;
    font-weight: 700;
}

.resource-title {
    margin: 0;
    padding: 0;
    text-overflow: ellipsis;
    display: block;
    width: 80%;
    overflow-x: hidden;
    white-space: nowrap;
}

.home .card-img-top,
.blog .card-img-top {
    position: relative;
    width: 100%;
    padding-top: 62.5%;
    overflow: hidden;
}

.home .card-img-top img,
.blog .card-img-top img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

.home .overlay,
.blog .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.blog-grid-view-title {
    display: block;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.infinitescroll-loading {
    display: none;
    text-align: center;
}

.infi-loader {
    width: 120px;
    height: 22px;
    border-radius: 20px;
    color: var(--bs-navy);
    border: 2px solid;
    position: relative;
    margin: 0 auto;
}

.infi-loader::before {
    content: "";
    position: absolute;
    margin: 2px;
    inset: 0 100% 0 0;
    border-radius: inherit;
    background: currentColor;
    animation: infi 2s infinite;
}

@keyframes infi {
    100% {
        inset: 0
    }
}

.likes.processing {
    opacity: 0.7;
    pointer-events: none;
}
.likes.pulse {
    animation: pulse 0.6s ease-in-out;
}
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* 动画元素样式 */
.floating-elements1 {
  opacity: 0;
  animation: 
    Blur .5s ease-in .5s forwards,
    float 6s ease-in-out 1.5s infinite;
}

.floating-elements2 {
  opacity: 0;
  animation: 
    Blur .5s ease-in .5s forwards,
    float 9s ease-in-out 1.5s infinite;
}

.floating-elements3 {
  opacity: 0;
  animation: 
    Blur .5s ease-in .5s forwards,
    float 8s ease-in-out 1.5s infinite;
}

.floating-elements4 {
  opacity: 0;
  animation: 
    Blur .5s ease-in .5s forwards,
    float 7.5s ease-in-out 1.5s infinite;
}

.floating-elements5 {
  opacity: 0;
  animation: 
    Blur .5s ease-in .5s forwards,
    float 8.5s ease-in-out 1.5s infinite;
}

.floating-elements6 {
  opacity: 0;
  animation: 
    Blur .5s ease-in .5s forwards,
    float 6.5s ease-in-out 1.5s infinite;
}

.floating-elements7 {
  opacity: 0;
  animation: 
    Blur .5s ease-in .5s forwards,
    float 7s ease-in-out 1.5s infinite;
}

.blurIn {
  opacity: 0;
  animation: BlurIn .5s ease-in .5s forwards;
}

@keyframes Blur {
  from {
    opacity: 0.5;
    filter: blur(10px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes BlurIn {
  from {
    opacity: 0.6;
    filter: blur(10px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-30px);
  }
}

.project-meta li {
    align-items: center;
    display: flex;
    justify-content: flex-start;
    column-gap: .25rem;
}

.project-meta li .likes {
    align-items: center;
    display: flex;
    column-gap: .25rem;
}

.project-meta li .likes:hover {
    opacity: 0.7;
}

.project-gallery {
    max-height:600px;
}

/* 懒加载容器 */
.elegant-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

/* 占位符 */
.elegant-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    z-index: 1;
}

/* 进度条容器 */
.elegant-progress-container {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    position: relative;
}

/* 加载文字 */
.elegant-loading-text {
    color: #666;
    font-size: 14px;
    margin: 0;
    text-align: center;
    direction: ltr !important;
    unicode-bidi: normal !important;
}

/* 图片样式 */
.elegant-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

/* 缩放效果 */
.elegant-blur-effect {
    filter:blur(10px);
}

.elegant-blur-loaded {
    filter:blur(0);
    transition: .3s all;
}

/* 错误状态 */
.elegant-error {
    background: #ffe6e6 !important;
    color: #d32f2f;
}

.elegant-error-content {
    text-align: center;
}

.elegant-error-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.elegant-error-message {
    color: #d32f2f;
    font-size: 14px;
    margin: 0 0 5px 0;
}

.elegant-error-url {
    color: #999;
    font-size: 12px;
    word-break: break-all;
}

.card-img-top .elegant-image-container {
    overflow: hidden;
    border-radius: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.card-img-top .elegant-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    z-index: 3;
}

.card-img-top .elegant-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    z-index: 2;
}

figure.overlay .elegant-image-container img {
    height:100%!important;
}

.post-meta li:before {
    margin:0 0.4rem 0;
}