/*
Theme Name: CeoDocsChild
Template: ceodocs
Author: yishan
Description: CeoDocs 子主题样式优化（结构化精简版）
Version: 1.1.2
*/

/* ===========================
全局样式
=========================== */

/* 容器圆角改成8 */
.b-r-4 {
    border-radius: 8px !important;
}


/* 页脚提示隐藏 */
.ceo-footer-ctrl {
  display: none !important;
}

/* 顶部导航线条 */
.navBar .fat {
  background: linear-gradient(to right, #e5e5e5 0%, #e5e5e5 100%);
  height: 0;
}

/* 公共网格边距优化 */
.ceo-grid-ceosmls > *,
.ceo-grid-column-ceosmls > * {
  padding: 0 0 24px 20px;
}

/* ===========================
卡片区域（资源/文章通用）
=========================== */

/* 去除 hover 暗化与下载按钮 */
.loop-1-box-img .thumb::before,
.loop-1-box-img .down,
.loop-1-box-img:hover .thumb::before,
.loop-1-box-img:hover .down,
.loop-2-box-img .thumb::before,
.loop-3-box-img .thumb::before {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* VIP 标签常驻显示 */
.loop-1 .loop-1-box-img .vip {
  position: absolute !important;
  z-index: 3 !important;
  left: 6px !important;
  top: 6px !important;
  height: 16px !important;
  width: 30px !important;
  background: url("https://3dblender.cn/wp-content/themes/ceodocs/static/images/ceo-vip-tag.svg")
    no-repeat 0 0 / 100% 100% !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

/* 图片圆角 */
.loop-1 .loop-1-box-img .thumb {
  height: 0;
  overflow: hidden;
  border-radius: 8px;
}

/* 去除卡片阴影与边框 */
.loop-1 .loop-1-box,
.loop-1 .loop-1-box:hover {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: none;
  padding: 0;
}

/* ===========================
标题与标签（通用）
=========================== */

/* 标题容器布局 */
.title-container {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
}

/* 标签样式 */
.loop-1 .content .tips {
  flex-shrink: 0;
  display: inline-block;
  padding: 2px 3px;
  border-radius: 2px;
  font-size: 12px;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 0;
}

/* 标签颜色 */
.badge-original   { background: #4e83ff; }
.badge-exclusive  { background: #ff8800; }
.badge-recommend  { background: #28a745; }
.badge-commercial { background: #6f42c1; }
.badge-pro        { background: #dc3545; }
.badge-free       { background: #79c900; }

/* 标题样式 */
.loop-1 .content h2 {
  flex: 1;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.loop-1 .content h2 a {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #131313 !important;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 16px;
  line-height: 1.6;
}

.loop-1 .content h2 a:hover {
  color: #131313;
}

/* 确保标题正常显示 */
.loop-1 .content h2,
.loop-1 .content h2 a {
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  min-height: auto !important;
}

/* 内容区边距 */
.loop-1 .content {
  padding: 0;
}

/* ===========================
作者信息（卡片底部）
=========================== */
.loop-1 .info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: #666;
  width: 100%;
  clear: both;
}

.loop-1 .info .avatarimg {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 6px;
  vertical-align: middle;
}

.loop-1 .info .avatarimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.loop-1 .info .author-name {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.loop-1 .info .author-name:hover {
  color: #631aff;
}

.loop-1 .info .views {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #999;
}

.loop-1 .info .views i {
  font-size: 13px;
}

/* ===========================
个人主页（author 页面）
=========================== */
.author .loop-1-box,
.author .loop-1-box-img {
  border-radius: 12px !important;
  overflow: hidden !important;
}

.author .loop-1-box-img .thumb {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px !important;
  transition: transform 0.3s ease;
}

.author .loop-1-box:hover .loop-1-box-img .thumb {
  transform: scale(1.03);
}

.author .vip {
  display: block !important;
}

.author .ceo-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #666;
  margin-top: 6px;
  border-top: 1px solid #eee;
  padding-top: 6px;
}

.author .ceo-card-meta .author-info {
  display: none !important;
}



/* ===========================
🍠资源页-核心修订页面
=========================== */
.ceo-sidebar-shop1 {
  padding: 32px;
}

.ceo-sidebar-shop1 ul.list {

  padding: 14px;
  border-radius: 4px;
}

.ceo-sidebar-shop1 .download-btn a {
  border-radius: 6px;
}

.ceo-sidebar-shop1 .download-btn a.download {
  background: #98fe00;border-radius: 8px;
}
.ceo-sidebar-shop1 .download-btn a{color:#131313}
.ceo-sidebar-shop-more .thumb {
  height: 0;
  overflow: hidden;
  border-radius: 4px;
  padding-bottom: 75%;
}
/* 作者其他作品按钮 */
.ceo-sidebar-shop-more .quick .btns {
    text-align: center;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px ;
    border-radius: 8px;
}
/* 隐藏主标题前的图片标签 */
.ceo-single-content .content-box .header .title .s{display:none}

/* FAQ 整体框 */
.faq-section {
  margin-top: 60px;
  background: #fafafa;
  border-radius: 8px;
  padding: 24px;
}

/* 标题 */
.faq-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #222;
}

/* 每一项 */
.faq-item {
  border-bottom: 1px solid #eee;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

/* 问题部分（按钮） */
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  padding: 14px 0;
  color: #131313;
  cursor: pointer;
  transition: color 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* hover 变绿色 */
.faq-question:hover {
  color: #81B640;
}

/* 箭头图标 */
.faq-question::after {
  content: "+"; /* 向下箭头 */
  font-size: 16px;
	font-weight:200;
  color: #999;
  transition: transform 0.3s ease, color 0.3s ease;
}

/* 展开状态箭头旋转并变色 */
.faq-item.active .faq-question::after {
  transform: rotate(180deg);
  color: #29b200;
}

/* 答案部分 */
.faq-answer {
  display: none;
  padding: 0 0 12px;
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  display: block;
}