.contaienr {
  /* margin-top: 55px !important; */
  max-width: var(--max-container);
  margin: 0 auto;
}

.Disable-Button {
  cursor: not-allowed !important;
  opacity: 0.5;
}

/* 暂无数据  */

.no-data {
  text-align: center;
  padding: 50px 0;
  color: #999;
  font-size: 16px;
}

/* 置顶 */

.topji {
  padding: 0;
}

.top-ary {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 12px 0;
  border-bottom: 1px solid #eff0f2;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.top-ary .flex-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.top-ary .icon-te {
  color: #0958d9;
  background: #e6f4ff;
  border: 1px solid #91caff;
  padding: 0px 4px;
  font-size: 0.78rem;
  font-weight: 480;
  line-height: 20px;
  color: var(--logo);
  border-radius: 3px;
  letter-spacing: 0.3px;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.top-ary .textle {
  flex: 1;
  line-height: 1.5;
  color: #1f2328;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.top-ary:hover {
  background-color: #fafbfc;
}

.top-ary:hover .textle {
  color: #165dff;
}

.top-ary:hover .icon-te {
  color: var(--logo);
  background: #eef3fe;
}

/* 左侧内容 */

.left-contaienr {
  width: 75%;
  margin-right: 10px;
  background-color: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/*快速导航 */
/* =========================================================
 * 1. PC 端基础样式
 * ========================================================= */
.min-header-wrapper {
  width: 100%;
  position: relative;
  background: #fff;
}

.mobile-search-container,
.head-search-icon {
  display: none;
}

.min-head {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 20px;
  font-size: 16px;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}

.min-head ul.tab-container {
  display: flex;
  gap: 36px;
  position: relative;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.min-head ul.tab-container li {
  position: relative;
  cursor: pointer;
  line-height: 55px;
  font-size: 17px;
  color: #333;
  white-space: nowrap;
  transition: color 0.3s var(--ease-spring);
}

.min-head ul.tab-container li:hover {
  color: var(--logo);
}

.min-head .bar {
  width: 32px;
  left: 0;
  height: 2px;
  overflow: hidden;
  transition:
    left 0.3s var(--ease-spring),
    width 0.3s var(--ease-spring),
    opacity 0.2s ease;
  position: absolute;
  bottom: 0;
  background-color: var(--logo);
}

.min-head .bar.pulse {
  opacity: 0.5;
}

.min-head ul.tab-container .index-active {
  color: var(--logo) !important;
}

/* =========================================================
 * 2. 移动端适配
 * ========================================================= */
@media (max-width: 768px) { 

  body.search-collapsed {
    padding-top: calc(44px + env(safe-area-inset-top)) !important;
  }
  
  .min-header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding-top: env(safe-area-inset-top);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    display: flex;
    flex-direction: column;
  }

  /* ---------- 搜索区 ---------- */
  .mobile-search-container {
    display: flex;
    padding: 8px 16px;
    max-height: 60px; /* 44 + 8×2，精确容纳，不裁切 */
    overflow: hidden;
    transition:
      max-height 0.35s var(--ease-spring),
      padding 0.35s var(--ease-spring),
      opacity 0.25s ease;
  }

  .mobile-search-container.hidden {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    pointer-events: none;
  }

  /* 用 inset 阴影代替 border，不占布局空间，圆角完美跟随 */
  .mobile-search-bar {
    flex: 1;
    height: var(--search-h);
    background: #fff;
    border: none;
    border-radius: var(--search-r);
    box-shadow: inset 0 0 0 1.5px var(--logo);
    display: flex;
    align-items: center;
    padding: var(--search-pad) var(--search-pad) var(--search-pad) 16px;
  }

  .mobile-search-input-wrapper {
    flex: 1;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    min-width: 0;
  }

  .mobile-search-input-wrapper input {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
    position: relative;
    z-index: 2;
    padding: 0;
    min-width: 0;
  }

  .mobile-placeholder-text {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: #8e8e93;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s ease;
  }

  .mobile-search-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .mobile-icon-mic {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #8e8e93;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
  }

  /* 36px 高 / 18px 圆角 = 22 − 4，完美同心胶囊 */
  .mobile-btn-search {
    background: rgba(0, 122, 255, 0.1);
    color: var(--logo);
    border: none;
    font-size: 13px;
    font-weight: 600;
    width: 56px;
    height: var(--btn-h);
    border-radius: var(--btn-r);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    transition:
      background 0.2s ease,
      transform 0.1s ease;
  }

  .mobile-btn-search:active {
    background: rgba(0, 122, 255, 0.22);
    transform: scale(0.96);
  }

  /* ---------- Tab 区 ---------- */
  .min-head {
    padding: 0;
    border-bottom: none;
    height: var(--tab-h);
    overflow: hidden;
  }

  .min-head ul.tab-container {
    display: flex;
    gap: 0;
    height: 100%;
    padding: 0 8px;
    padding-right: 50px; /* 给右侧搜索图标留空间 */
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-x;
  }

  .min-head ul.tab-container::-webkit-scrollbar {
    display: none;
  }

  .min-head ul.tab-container li {
    flex: 0 0 auto;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 500;
    line-height: var(--tab-h);
    transition: color 0.25s var(--ease-spring);
  }

  .min-head .bar {
    height: 3px;
    border-radius: 2px;
    bottom: 2px;
    background-color:#000 !important;
  }
.min-head ul.tab-container .index-active{
  color: #000 !important;
  font-weight: 700;
}
  /* ---------- 右侧固定搜索图标 ---------- */
  .head-search-icon {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 50px;
    padding-right: 14px;
    z-index: 999;
    background: linear-gradient(
      to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.95) 40%
    );
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateX(100%);
    transition:
      opacity 0.35s var(--ease-spring),
      transform 0.35s var(--ease-spring);
    -webkit-tap-highlight-color: transparent;


    height:100%;
    
  }

  body.search-collapsed .head-search-icon {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }

  .head-search-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #1d1d1f;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}

/* =========================================================
 * 3. 深色模式
 * ========================================================= */
@media (max-width: 768px) and (prefers-color-scheme: dark) {
  .min-header-wrapper {
    background: rgba(30, 30, 32, 0.92);
  }

  /* 苹果深色模式标准填充色，比 0.5 透蓝更干净 */
  .mobile-search-bar {
    background: rgba(118, 118, 128, 0.24);
    box-shadow: inset 0 0 0 1.5px #0a84ff;
  }

  .mobile-search-input-wrapper input {
    color: #fff;
  }

  .mobile-placeholder-text {
    color: #8e8e93;
  }

  .mobile-icon-mic {
    stroke: #8e8e93;
  }

  .mobile-btn-search {
    background: rgba(10, 132, 255, 0.2);
    color: #0a84ff;
  }

  .mobile-btn-search:active {
    background: rgba(10, 132, 255, 0.32);
  }

  .min-head ul.tab-container li {
    color: #ccc;
  }

  .min-head ul.tab-container .index-active {
    color: #0a84ff !important;
  }

  .min-head .bar {
    background-color: #0a84ff;
  }

  .head-search-icon {
    background: linear-gradient(
      to right,
      rgba(30, 30, 32, 0) 0%,
      rgba(30, 30, 32, 0.95) 40%
    );
  }

  .head-search-icon svg {
    stroke: #ccc;
  }
}
/* end */

/* 主内容 */

.getData {
  padding: 0 20px 20px 20px;
}

/* 文章卡片 */

.article-Text {
  width: 100%;
  height: auto;
  padding: 17px 0;
  border-bottom: 1px solid #f0f0f0;
  /* background-color: #a7a2a2; */
}

.article-Text .graplist {
  padding-top: 5px;
  word-break: break-word;
}

/* 帖子操作栏话题+打卡   */

.le-doem {
  margin-top: 13px;
}

.le-doem a {
  padding: 4px 8px;
  color: #898989;
  font-size: 14px;
  background: #f5f5f5;
  border-radius: 10px;
  margin-right: 10px;
}

/* 帖子定位信息 */

.le-doem > .post-location {
  /* 必须加：让鼠标移上去变成小手 */
  transition: opacity 0.2s;
  background: transparent;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 13px;
  color: #1e80ff;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.le-doem > .post-location:hover {
  opacity: 0.8;
  text-decoration: underline;
  /* 保留悬浮下划线，增加可点击感 */
}

.le-doem > .post-location svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

/* 折叠内容 */

.post-content-text {
}

.post-content-text.expanded {
  -webkit-line-clamp: unset;
  max-height: none;
}

.post-expand-btn {
  background: none;
  border: none;
  color: #0072ff;
  cursor: pointer;
  font-size: 14px;
  padding: 5px 0;
  display: inline-block;
}

.post-expand-btn:hover {
  text-decoration: underline;
}

.article-Text .graplist p a {
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  font-size: 17px;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  line-height: 1.75;
  /* max-height: 4.5em; */
  transition: max-height 0.3s ease;
}

.expanded {
  -webkit-line-clamp: unset !important;
  /* 取消行数限制 */
  max-height: none !important;
  /* 同时移除最大高度限制（如果之前设置了） */
}

/* ================= 帖子风格：一行排布，干净无圆角 ================= */

/* 1. 父容器：允许换行，处理间距 */
.article-Text .graplist .grid {
  display: flex;
  flex-wrap: wrap; /* 超过 4 张图自动换行 */
  gap: 4px;
  width: 100%;
  margin-top: 10px;
  box-sizing: border-box;
}

/* 2. 子元素：固定 25% 宽度（扣除 gap 的宽度保证 4 张刚好 100%） */
.article-Text .graplist .grid .lsit-box {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  border-radius: 0;
  background-color: #f0f0f0;
  box-sizing: border-box;

  /* 核心：使用 calc 减去间距，确保 4 张图刚好铺满一行 */
  width: calc(25% - 3px);
  flex: 0 0 calc(25% - 3px);

  /* 强制正方形 */
  aspect-ratio: 1 / 1;
}

/* 3. 内部图片填满 */
.article-Text .graplist .grid .lsit-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: none;
}

.article-Text .graplist .grid .lsit-box img:hover {
  transform: none;
}

/* 数量提示蒙层（如 +2） */

.article-Text .graplist .grid .grid-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  font-weight: 500;
  pointer-events: none;
}

/* 帖子图片显示剩余数量 */

.grid-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  opacity: 1;
  color: var(--white);
}

.article-Text .userdata,
.flex-s {
  /* width: 100%; */
  display: flex;
  gap: 10px;
  /* height: 34px; */
  align-items: center;
}

.article-Text .userdata .userimg {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
}

.article-Text .userdata .userimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.user-span .user-name {
  font-size: 16px;
  gap: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.user-span .user-name .ali a {
  color: #262626;
}

.user-span .user-name .ali a:hover {
  color: var(--logo);
  transition: all 0.3s ease;
}

/* 徽章 */

.user-span .user-name .boloi {
  width: 32px;
  height: 100%;
}

.user-span .user-name .boloi img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.user-span span {
  display: flex;
  gap: 4px;
  font-size: 0.77rem;
  color: #9ca3af;
}

/* 侧边栏 */

.right-contaienr {
  /* background-color: #fff; */
  width: 25%;
  height: 100%;
}

/* 文章卡片 */

.article-content {
  width: 100%;
  height: 100%;
}

.article-content .flex-left {
  flex: 1;
  width: 100%;
  height: 100%;
}

.article-content .article-title h3 {
  color: #262626;
  line-height: 1.6;
}

.article-content .article-title h3:hover {
  color: var(--hover-color);
}

.article-content .contnet {
  color: #595959;
  font-size: 15px;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
  text-overflow: ellipsis;
  white-space: normal;
}

.article-content .img-article {
  height: 128px;
  width: 213px;
  overflow: hidden;
}

.article-content .img-article img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 文章标签 */

.article-content .Label .ant-space-item {
  display: flex;
}

.best-comment-user-name {
  font-weight: 700;
  /* margin-left: 4px; */
  color: #999;
}

.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
  text-overflow: ellipsis;
  flex: 1;
  white-space: normal;
}

.best-comment .best-comment-content {
  flex: 1;
  color: #999;
}

.met-tuop {
  display: flex;
  align-items: center;
  gap: 5px;
}

.met-tuop svg {
  display: flex;
  height: 100%;
}

.Label-tag {
  width: 100%;
  display: flex;
  gap: 9px;
  margin-top: 0.5rem;
}

.Label-tag a {
  padding: 4px 8px;
  color: #8c8c8c;
  font-size: 14px;
  background: #f5f5f5;
  border-radius: 10px;
  margin-right: 10px;
}

.Commentinformation {
  width: 100%;
  display: flex;
  gap: 26px;
  height: 100%;
  padding-top: 16px;
}

.Commentinformation li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.Commentinformation li:hover {
  color: var(--logo);
}

.Commentinformation li.hover-bgc {
  border-radius: 4px;
  padding: 2px 6px;
}

/* .Commentinformation li.hover-bgc:hover {
    background-color: #f0f0f0;
} */

/* 二级菜单 */

.more-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: -11px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 120px;
  z-index: 1000;
  /* 延迟隐藏效果 */
  visibility: hidden;
  opacity: 0;
  transition:
    visibility 0s linear 0.2s,
    opacity 0.2s ease;
}

/* 鼠标悬停在 li 上时立即显示菜单 */

.more-dropdown:hover .dropdown-menu {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

/* 菜单内列表样式 */

.dropdown-menu .ul-ol {
  list-style: none;
  margin: 0;
}

.dropdown-menu li {
  padding: 5px;
}

.dropdown-menu span {
  display: block;
  /* 使整个区域可点击 */
  /* padding: 5px 20px;       设置合适字体大小 */
  line-height: 1.5;
  text-decoration: none;
  transition:
    background-color 0.2s,
    color 0.2s;
  padding: 8px 2px;
  font-size: 14px;
  color: #2c3e50;
  cursor: pointer;
  width: 100%;
  text-align: center;
  transition: background 0.2s;
}

/* 悬停效果：背景色变浅，文字颜色变深 */

.dropdown-menu span:hover {
  background-color: rgba(0, 114, 255, 0.05);
  color: var(--logo);
}

/* 可选：添加小箭头（位于菜单右上角） */

.more-dropdown .dropdown-menu::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 16px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #fff;
  filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.05));
}

.Commentinformation li svg {
  display: flex;
}

/* 精选文章 */

.Selected {
  padding: 0 3px;
  border-radius: 3px 0 0 13px;
  position: relative;
  display: flex;
  border: 1px solid #4510e6;
  color: #000000;
  box-shadow: 1px 1px 10px 2px #4610e651;
  align-items: center;
  font-size: 1rem;
  background-color: var(--white);
}

/* 问答 */

.post {
  width: 100%;
  padding: 17px 0;
  border-bottom: 1px solid #f0f0f0;
}

.post .post-title {
  color: #000000;
  line-height: 1.6;
}

.post .post-title:hover {
  color: var(--hover-color);
}

.post .post-content {
  color: rgba(0, 0, 0, 0.7);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
  text-overflow: ellipsis;
  white-space: normal;
  font-size: 15px;
  line-height: 1.75;
}

.post .tag-post a {
  font-size: 13px;
  padding: 2px 8px;
  border-radius: 3px;
  background-color: #00000011;
  color: #999;
  flex-shrink: 0;
}

.user-Commentinformation {
  column-gap: 8px;
  color: #000000;
  display: flex;
  align-items: center;
}

.user-Commentinformation .user-avaimg {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
}

.user-Commentinformation .user-avaimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.date-item span {
  font-size: 0.9rem;
  color: #999;
}

/* 侧边栏通用卡片 */

/* ================= 热门文章轮播图 ================= */

.ant-card-slider {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}

.slider-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  /* 允许垂直滚动，接管水平拖拽 */
  cursor: grab;
}

.slider-wrap:active {
  cursor: grabbing;
  /* 拖拽时变成抓取手势 */
}

.slider-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.35s ease-out;
  will-change: transform;
}

.slide-item {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
}

/* 确保链接占满整个滑块，并禁用原生拖拽 */

.slide-link {
  display: block;
  width: 100%;
  height: 100%;
  -webkit-user-drag: none;
  /* 禁用 Webkit 原生拖拽 */
  user-drag: none;
  -webkit-user-select: none;
  text-decoration: none;
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
  pointer-events: none;
  /* 事件穿透给父级 */
  -webkit-user-drag: none;
  /* 禁用图片原生拖拽 */
}

.slide-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 30%,
    rgba(0, 0, 0, 0.85) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
}

.slide-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.slide-rank {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 22px;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.8);
  letter-spacing: 1px;
  flex: none;
}

.slide-tag {
  padding: 3px 10px;
  font-size: 11px;
  color: #fff;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.slide-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slide-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.meta-views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  width: max-content;
  flex: none;
}

.slider-indicators {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  gap: 6px;
  z-index: 10;
}

.indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.3s;
  cursor: pointer;
}

.indicator-dot.active {
  width: 16px;
  border-radius: 3px;
  background: #fff;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10;
  cursor: pointer;
}

.slider-wrap:hover .slider-btn {
  opacity: 1;
}

.slider-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.slider-btn.prev {
  left: 12px;
}

.slider-btn.next {
  right: 12px;
}

/* 问答/话题/打卡 */
/* 基础重置，防止外部样式污染 */
.qa-card *,
.qa-card *::before,
.qa-card *::after {
  box-sizing: border-box;
}

/* ================= 统一卡片外壳 ================= */
.qa-card {
  background: var(--white);
  overflow: hidden;
  margin-bottom: 16px;

  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ================= 卡片头部  ================= */
.qa-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--qa-border, #f0f2f5);
}

/* 标题容器 */
.qa-card-head .head-title {
  display: flex;
  align-items: center;
}

/* 热面问答渐变短竖线 */
.head-qa .head-title::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 14px;
  background: linear-gradient(to bottom, #0072ff, #69c0ff);
  border-radius: 2px;
  margin-right: 8px; /* 竖线与文字的间距 */
}
/* 热门话题胶囊微标签 */
.head-style-c .head-title::after {
  content: "HOT";
  font-size: 9px;
  font-weight: 800;
  font-style: italic;
  color: var(--qa-primary);
  background: #e6f0ff;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 8px;
  border: 1px solid #cce0ff;
}
/* 学习排行榜 */
.head-rank-progress .head-title::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border-radius: 50%;
  background: conic-gradient(var(--logo) 75%, #e6f0ff 0);

  /* 挖空中间，形成极细的圆环 */
  mask: radial-gradient(transparent 55%, #000 56%);
  -webkit-mask: radial-gradient(transparent 55%, #000 56%);
  position: relative;
  top: 0.5px;
  /* 旋转动画 */
  animation: spin-progress 4s linear infinite;
  transform-origin: center center; /* 确保围绕中心旋转 */
}
/* 进度旋转动画 */
@keyframes spin-progress {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* 标题文字排版 */
.qa-card-head .head-title span {
  font-size: 15px;
  font-weight: 700;
  color: var(--qa-text-main, #121212);
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.qa-card-more {
  font-size: 12px;
  color: var(--qa-text-sub);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 2px;
  transition: color 0.2s;
}
.qa-card-more:hover {
  color: var(--qa-primary);
}
.qa-card-more i {
  font-size: 10px;
  transition: transform 0.2s;
}
.qa-card-more:hover i {
  transform: translateX(2px);
}

/* ================= 列表主体 (普通单行版) ================= */
.qa-card-body {
  padding: 4px 0;
  display: flex;
  flex-direction: column;
}

.qa-link {
  display: flex;
  align-items: center;
  height: 52px; /* 字节系最爱的高度，紧凑但不拥挤 */
  padding: 0 16px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
  -webkit-user-drag: none;
  user-drag: none;
}
.qa-link:hover {
  background: var(--qa-hover);
}

/* 极细分割线 */
.qa-link + .qa-link {
  border-top: 1px solid var(--qa-border);
}

/* ================= 排名数字 ================= */
.qa-rank-num {
  width: 24px;
  font-size: 15px;
  font-weight: 800;
  font-style: italic;
  text-align: center;
  flex: none;
  margin-right: 8px;
  color: #c2c8d1; /* 默认四名后的浅灰 */
  font-family: "SFMono-Regular", Consolas, monospace;
}

/* 🌟 前三名自动高亮，红橙黄渐变 */
.qa-card-body .qa-link:nth-child(1) .qa-rank-num {
  color: #ff4d4f;
}
.qa-card-body .qa-link:nth-child(2) .qa-rank-num {
  color: #fa8c16;
}
.qa-card-body .qa-link:nth-child(3) .qa-rank-num {
  color: #faad14;
}

/* ================= 标题与右侧数据 ================= */
.qa-title {
  flex: 1;
  font-size: 14px;
  color: var(--qa-text-main);
  font-weight: 500;
  line-height: 1.4;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}
.qa-link:hover .qa-title {
  color: var(--qa-primary);
}

.qa-meta {
  display: flex;
  align-items: center;
  flex: none;
  margin-left: 12px;
  font-size: 12px;
  color: var(--qa-text-sub);
}

/* 🌟 修复图标与数字挤在一起的问题 */
.qa-heat {
  display: flex;
  align-items: center;
  gap: 4px;
}
.qa-heat i {
  font-size: 12px;
  color: var(--qa-text-sub);
  transition: color 0.2s;
}
.qa-link:hover .qa-heat i {
  color: #ff4d4f;
}

/* ================= 热门话题专属细节 ================= */
.topic-hash {
  color: var(--size);
  font-weight: 400;
  margin-right: 2px;
}

/* 前三名话题的显眼讨论数 */
.topic-heat-tag {
  background: #fff2e8;
  color: #fa541c;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

/* ================= 学习排行榜专属细节 ================= */
.qa-user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 10px;
  flex: none;
  border: 1px solid var(--qa-border);
  background: var(--qa-border); /* 兜底占位色 */
}
.qa-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 前三名蓝色徽章 */
.qa-badge {
  background: #e8f3ff;
  color: var(--qa-primary);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}
/* 四名后灰色徽章降级 */
.qa-badge.badge-gray {
  background: var(--qa-border);
  color: var(--qa-text-sub);
}

/* ================= 热门问答垂直滚动容器 ================= */
.vertical-wrap {
  position: relative;
  height: 108px; /* 精确 2 条的高度 (54px * 2) */
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none; /* 阻止浏览器接管触摸滚动 */
}

.vertical-track {
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}

.qa-item {
  height: 54px;
  flex: none;
}

/* 问答列表项的特殊布局（上下两行） */
.vertical-track .qa-link {
  height: 100%;
  padding: 0 16px;
  border-top: none; /* 避免和滚动容器的边界冲突 */
}
.vertical-track .qa-link + .qa-link {
  border-top: 1px solid var(--qa-border);
}
.vertical-track .qa-title {
  width: 100%;
  margin-bottom: 2px;
}

/* 第一条的“热”字标签 */
.qa-tag {
  font-size: 11px;
  color: #ff4d4f;
  border: 1px solid #ff4d4f;
  padding: 0 4px;
  border-radius: 2px;
  margin-right: 6px;
  line-height: 14px;
  transform: scale(0.9);
  transform-origin: left center;
}

/* ================= 空状态 ================= */
.qa-empty {
  text-align: center;
  padding: 24px;
  font-size: 13px;
  color: var(--qa-text-sub);
}
/* end */

/* 主内容骨架屏代码 */

/* 骨架屏容器 */

.skeleton-container {
  background-color: #ffffff;
  border-radius: 12px;
  padding-top: 20px;
}

/* 4条横线骨架样式 */

.skeleton-line {
  height: 16px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  border-radius: 5px;
  margin-bottom: 20px;
  animation: loading 1.5s infinite;
}

/* 4条横线，不同宽度和高度 */

.skeleton-line:nth-child(1) {
  width: 70%;
  height: 24px;
  margin-bottom: 25px;
}

.skeleton-line:nth-child(2) {
  width: 100%;
}

.skeleton-line:nth-child(3) {
  width: 90%;
}

.skeleton-line:nth-child(4) {
  width: 60%;
  margin-bottom: 0;
}

/* 加载动画 */

@keyframes loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* 加载按钮 */

.load-more {
  margin: 10px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

#load-more-btn {
  color: #fff;
  height: 100%;
  padding: 7px 5px;
  width: 120px;
  border-radius: 3px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid rgba(30, 128, 255, 0.3);
  background: rgba(41, 151, 247, 0.1);
  color: var(--logo);
}

/* 



*/

/*footer  */

.footer-r {
  background-color: transparent !important;
}

.footer-r .ant-card-body {
  padding: 24px 20px;
  text-align: left;
}

.footer-r p {
  margin: 8px 0;
  font-size: 13px;
  color: var(--size);
  line-height: 1.6;
}

.footer-r p a {
  color: var(--size);
}

.footer-r p a:hover {
  color: var(--hover-color);
}
