/* AI工具列表+无图即是文章列表 */
.geek-tool-list {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    width: 100%;
    padding: 0px 7px 0px 7px;
}
@media (min-width: 768px) and (max-width: 1024px) {
    .geek-tool-list {
      grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
    .geek-tool-list {
      grid-template-columns: repeat(4, 1fr);
  }
}

.geek-tool-item {
    display: flex;
    align-items: center;
    background-color: #ffffff90;
    box-shadow: 0 2px 5px rgba(69, 69, 69, 0.139);
    transition: box-shadow 0.3s ease;
    padding: 10px;
    border-radius: 8px;
    width: 100%; /* 确保不会超出父容器 */
    box-sizing: border-box; /* 确保 padding 不会撑大尺寸 */
    overflow: hidden;

}
.geek-tool-item:hover {
    box-shadow: 0 4px 10px rgba(98, 98, 98, 0.2);
}
.geek-tool-item:hover h3 {
    color: #1e90ff;
}


.geek-tool-left-link {
    display: block;
}
/* 左侧图标样式 */
.geek-tool-left {
    width: 40px;
    height: 40px;
    background-color: #ffffff;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}
/* 左侧图标仅在 PC 端时可点击 */
@media (max-width: 767px) {
    .geek-tool-left-link {
      pointer-events: none;
  }
}
/* 默认隐藏蒙层 */
.geek-tool-left::after {
    content: "点此\A直达";
    white-space: pre; /* 文字换行 */
    line-height: 1.1;  /* 设置行间距 */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(107, 85, 66); /* 半透明黑色 */
    color: white;
    font-size: 11px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
}
/* PC 端（大于 768px）才显示蒙层 */
@media (min-width: 768px) {
    .geek-tool-item:hover .geek-tool-left::after {
      opacity: 1;
  }
}
/* 小屏幕（小于 768px）强制隐藏蒙层 */
@media (max-width: 767px) {
    .geek-tool-left::after {
      opacity: 0 !important;
  }
}

.geek-tool-center {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    max-width: 100%; /* 防止超出父容器 */
    overflow: hidden;
}
.geek-tool-center h3 {
    margin: 0;
    font-weight: normal;
    font-size: 14px;
    color: #484b4f;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; /* 仍然保持单行，防止过长 */
    max-width: 100%;

}
.geek-tool-center p {
    margin: 1px 0 0 0;
    font-size: 12px;
    color: #909090;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; /* 仍然保持单行，防止过长 */
    max-width: 100%;
}

.geek-tool-right {
  width: 20px;
  height: 20px;
  background-color: #ccc;
  border-radius: 50%;
  align-self: center;
  position: relative;
}

.geek-tool-right:hover {
  cursor: pointer;
}

.geek-tool-right:hover::after {
  content: "点击直达";
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #000;
  color: #fff;
  padding: 3px 6px;
  font-size: 12px;
  border-radius: 4px;
  white-space: nowrap;
}

/* 二维码弹窗样式 */
.qr_popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}
.qr_popup-content {
    position: relative;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 300px;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.qr_image {
    width: 230px;
    margin-bottom: 10px;
}
.qr_text {
    margin: 0;
    font-size: 16px;
    color: #333;
}
.qr_close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #999;
    cursor: pointer;
}
.qr_close:hover {
    color: #333;
}



/* banner专用 */
.banner-geekone {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 220px;
    background-color: #535353;
}
.banner-seo_img {
    height: 80px;
}
.banner-seo_tt1 {
    color: aliceblue;
    font-size: 23px;
}
.banner-seo_tt2 {
    color: aliceblue;
    margin-top: 0px;
    font-size: 15px;
}
.banner-bt {
    display: flex;
    flex-direction: row;
    text-align: center;
}
.banner-button {
    width: 105px;
    height: 33px;
    margin: 10px 5px 15px 5px;
    background-color: #ffeca9;
    color: rgb(36, 36, 36);
    font-size: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}
.banner-button:hover {
    background-color: #fff5d1;
    color: black;
    transform: scale(1.05);
}

/* 根据宽度控制元素显隐 */
.size-pc {
    display: none; /* 默认不显示 */
}
@media (min-width: 768px) { /* 大于768px宽时 */
    .size-pc {
        display: block; /* 显示 */
    }
}
.size-mb {
    display: block; /* 默认显示 */
}
@media (min-width: 768px) { /* 大于768px宽时 */
    .size-mb {
        display: none; /* 隐藏 */
    }
}
