.grid-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 720px;
    overflow: auto;
    float: left;
    width: 100%;
}

.grid-item {
    width: 100%;
    background: #333;
    /*box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);*/
}

.web-container {
    padding: 0px;
    width: 1050px;
    position: relative;
    margin: 0 auto;
    box-sizing: border-box;
}


@media screen and (max-width: 768px) {
    .web-container {
        padding: 0px;
        width: auto;
    }
  
  
  
}

.media-grid {
    display: grid;
    gap: 2px;
    border-radius: 8px;
    overflow: hidden;
    margin: 8px 32px 12px 82px;

}

.media-grid.one {
    grid-template-columns: 1fr;
}



.media-grid.one img {
    aspect-ratio: auto;
    max-height: 600px;
    width: auto;
    max-width: 100%;
    border-radius: 8px;
    min-height: 256px;
}


.media-grid.two {
    grid-template-columns: 1fr 1fr;
}

.media-grid.three {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
}

.media-grid.three img:nth-child(3),
.media-grid.three video:nth-child(3) {
    grid-column: 1 / 3;
    justify-self: center;
    width: 100%;
}

.media-grid.four {
    grid-template-columns: 1fr 1fr;
}



.loading {
    text-align: center;
    padding: 20px;
    color: #999;
    display: none;
}

.media-grid img,
.media-grid video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 关键点 */
    display: block;

    aspect-ratio: 1 / 1;
    /* 强制每张图为正方形区域 */
}


.media-grid video {
    object-fit: contain; /* 保持比例，完整显示 */
    background: black;
}


.posts .post-info {
    padding: 12px 12px 0px;
}


.posts .post-info .avatar {
    border-radius: 999px;
    width: 56px;
    height: 56px;
}


.posts .post-info .fullname {
    position: relative;
    top: -54px;
    left: 68px;
    font-size: 18px;
    font-weight: 700;
    height: 30px;
    margin-bottom: -30px;
    /*background: #ff000054;*/
    width: max-content;
    max-width: 255px;
    word-wrap: break-word;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.posts .post-info .post_time {
    position: relative;
    top: -30px;
    left: 68px;
    font-size: 14px;
    font-weight: 700;
    height: 26px;
    width: 200px;
    margin-bottom: -26px;
    /*background: #ff000054;*/
}


.posts .post-info .post_time2 {
    font-size: 14px;
    font-weight: 700;
    height: 26px;
    /*background: #ff000054;*/
    display: inline-block;
    margin-left: 8px;

}


.posts .post-msg {
    padding: 0px 12px 0px;
}

.posts .post-msg .content {
    /*background: #ff000054;*/
    font-size: 14px;
    font-weight: 400;
    margin-top: 8px;
}



/**/
.post-actions {
    display: flex;
    width: 100%;
    gap: 0;

}

.action-btn {
    flex: 1;
    /*background-color: #fff;*/
    border: none;
    padding: 10px 0;
    font-size: 14px;
    cursor: pointer;
    /*border-right: 1px solid #eee;*/
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s ease;
}

.action-btn:last-child {
    border-right: none;
}

.action-btn:hover {
    /*background-color: #f5f5f5;*/
}

.cursor_pointer{
    cursor: pointer;
}

/* 看图强制隐藏工具栏*/
.layui-layer-photos-toolbar,
.layui-layer-photos-header {
  display: none !important;
}

.layui-layer-photos {
    width: 100% !important;
    height: 100% !important;
}

.layui-layer-photos .layer-layer-photos-main {
    /*background: red;*/
    width: 100%;
    height: 100%;
}

.layui-layer-photos-next, .layui-layer-photos-prev {
    opacity: 0.5; 
    animation: fadeOpacity 1s forwards; 
}

/* hover 时立马变回 0.5 */
.layui-layer-photos-next:hover, .layui-layer-photos-prev:hover {
  animation-play-state: paused; /* 暂停动画，防止冲突 */
  opacity: 0.5 !important;
  transition: opacity 0.1s;
}

@keyframes fadeOpacity {
  0%, 40% {
    opacity: 0.5;  /* 0秒到2秒保持0.5透明度 */
  }
  100% {
    opacity: 0.05;  /* 慢慢变到0.2 */
  }
}





.layui-layer-photos img {
  height: 100% !important;
  object-fit: contain; 
}

.center-text {
  text-align: center;
}

.center-text-title {
  display: flex;
  justify-content: center; /* 水平居中 */
  align-items: center;     /* 垂直居中 */
}

nav.top-header{
    height: 54px;
}

nav .mobile-header {
    width: 100%;
    height: 54px;
    background: black;
    position: fixed;
    z-index: 100;
}

nav .mobile-scroll {
    position: fixed;
    top: 0;
    z-index: 100;
}


nav .mobile-header h1 {
    width: 100%;
    height: 54px;
    font-size: 28px;
}


.profile-card {
    width: 310px;
    display: inline-block;
    float: left;
    background: #333;
    float: inline-end;
    position: relative;
    top: 0px;
}


.profile-card-avatar {
    width: 100%;
    height: 100%;
}

.profile-card-info {
    overflow: hidden;
    overflow-wrap: break-word;
    width: 100%;
}

.profile-card-fullname {
    overflow: hidden;
    overflow-wrap: break-word;
    font-size: 18px;
    font-weight: bold;
    text-shadow: none;
    max-width: 100%;
}

img {
  -webkit-user-drag: none; /* Chrome、Safari */
  user-drag: none;         /* 标准草案，部分浏览器支持 */

  user-select: none;
  -webkit-user-select: none; /* Chrome / Safari */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* IE / Edge */
}



@keyframes blink-bg {
  0%, 100% {
    background-color: #eeeeee00;
  }
  50% {
    background-color: #eeeeee0d;
  }
}

.img-loading {
  display: inline-block;
  background-color: #eee;
  animation: blink-bg 1s infinite;
  /* 预设宽高，避免布局跳动 */
  width: 200px;
  height: 150px;
  /* 让图片填满占位区域 */
  object-fit: cover;
}

.display-none {
  display: none;
}

.post-page-wrapper{
    max-width:100%;
}


.transition-all {
  transition: all 0.5s ease;
}

.transition-all-1 {
  transition: all 1s ease;
}

.transition-all-2 {
  transition: all 2s ease;
}

nav .return-btn {
    cursor: pointer;
    font-size: 20px;
    padding: 8px 11px;
    display: inline-block;
    /*color: #1E9FFF;*/
    z-index: 200;
    position: absolute;
    top: 0;
}
nav .return-btn .layui-icon {
    font-size: 24px;
}
nav .return-btn:hover {
      color: #ffffff;
}