/*
 Theme Name:   Blogsy Child
 Theme URI:    https://ctrlving.com/
 Description:  Blogsy子主题
 Author:       Ctrlving.com
 Author URI:   https://ctrlving.com
 Template:     blogsy
 Version:      1.0.2
 Text Domain:  blogsy-child
*/
a {
    color: var(--pt-headings-color);
    text-decoration: none;
}
.single-content-inner {
    line-height: 3.2rem;
}
.woocommerce div.product .product_title {
    font-size: 2.8rem !important;
}

/* 首页插件产品 */
.plugin-card {
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 16px;
  height: 100%;
  background: #fff;
box-shadow: 0 2px 20px #0e0e130d;
}

.plugin-icon {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #eee;
}
.plugin-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.4;
}
.plugin-desc {
  font-size: 13px;
  color: #6c757d;
  margin-bottom: 6px;
  line-height:1.4;
}
.plugin-price {
  font-size: 1em;
  color: var(--pt-headings-color);
  font-weight: bold;
}

.product-box .woocommerce ul.products li.product .woocommerce-loop-product__title{
  font-size: 1.6rem;
}

.woocommerce ul.products li.product>.button{
  display: none; 
}

/* === 代码块核心美化样式（深色主题，推荐） === */
/* 基础容器样式 */
pre {
    position: relative; /* 为复制提示/行号定位 */
    padding: 20px !important; /* 左侧留出行号空间 */
    margin: 25px 0 !important;
    border-radius: 12px !important;
    background: #1e1e2f !important; /* 深色背景（高级灰紫调） */
    overflow-x: auto !important; /* 移动端横向滚动 */
    font-family: Consolas, Monaco, 'Courier New', monospace !important; /* 等宽字体 */
    font-size: 14px !important;
    line-height: 1.8 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important; /* 轻微阴影增加层次感 */
    border: none !important; /* 去掉默认边框 */
}

/* 代码文字基础样式 */
pre code {
    color: #e0e0e0 !important; /* 基础文字色 */
    background: transparent !important; /* 取消 code 标签默认背景 */
    padding: 0 !important;
    border: none !important;
}



/* === 移动端适配 === */
@media (max-width: 768px) {
    pre {
        padding: 16px !important;
        font-size: 13px !important;
        line-height: 1.7 !important;
    }

}


/* === 代码块复制按钮样式 === */
pre {
    padding-top: 50px !important; /* 顶部留出按钮空间（原20px改为50px） */
}

/* 复制按钮容器 */
.code-copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 12px;
    background: #007cba;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

/* 按钮hover效果 */
.code-copy-btn:hover {
    background: #00669b;
}

/* 复制成功提示 */
.code-copy-toast {
    position: absolute;
    top: 10px;
    right: 90px;
    padding: 4px 12px;
    background: #28a745;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

/* 提示显示状态 */
.code-copy-toast.show {
    opacity: 1;
}

/* 临时textarea样式（避免闪屏） */
textarea[style*="opacity: 0"] {
    pointer-events: none !important;
    z-index: -9999 !important;
}



/* 悬浮栏主体 */
.float-service {
  position: fixed;
  right: 15px;
  bottom: 70px;
  z-index: 9999;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 8px;
}

/* 悬浮按钮 —— 核心：hover 不改变宽度 */
.float-item {
  width: 50px !important;
  height: 50px;
  background: #ffffff;
  border-radius: 10px;
  -webkit-box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.25s ease;
  overflow: visible !important;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

/* 悬浮时：宽度不变 + 变色 */
.float-item:hover,
.float-item.active {
  width: 50px !important;
  padding: 0;
  background: var(--pt-accent-color); /* 悬浮背景变蓝色 */
}

/* 图标悬浮时变色 */
.float-item:hover .float-icon,
.float-item.active .float-icon {
  color: #ffffff; /* 图标变成白色 */
}

/* 图标固定大小，永远不变形 */
.float-icon {
  font-size: 24px;
  color: var(--pt-accent-color);
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  transition: color 0.25s ease;
}

/* 文字悬浮显示 */
.float-content {
  position: absolute;
  left: -130px;
  top: 50%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  white-space: nowrap;
  font-size: 14px;
  color: #333;
  background: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: none;
  z-index: 9999;
}
.float-item:hover .float-content,
.float-item.active .float-content {
  display: block;
}

/* 二维码面板 */
.float-qrcode {
  position: absolute;
  right: 60px;
  bottom: 0;
  width: 150px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.1);
  padding: 12px;
  text-align: center;
  display: none;
  z-index: 9999;
}
.float-item:hover .float-qrcode,
.float-item.active .float-qrcode {
  display: block;
}

/* 二维码图片 */
.float-qrcode img {
  width: 125px;
  height: 125px;
  display: block;
  border: 0;
  object-fit: cover;
  border-radius: 6px;
}
.float-qrcode p {
  font-size: 12px;
  color: #666;
  margin: 6px 0 0 0;
}

/* 返回顶部 */
#backTop {
  display: none;
}

/* 移动端适配 —— 允许显示弹出层 */
@media (max-width: 768px) {
  .float-service {
    right: 10px;
    bottom: 60px;
  }
  .float-item {
    width: 44px !important;
    height: 44px;
  }
  .float-icon {
    font-size: 20px;
  }
}


.wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
    padding: 0 !important;
}