/* ===== 中间主体：面包屑 / 详情布局 / 画廊 / 摘要 / 选项卡 / 内容 / 侧边栏 / 推广位 / 附赠服务 ===== */

/* ===== 面包屑 ===== */
.crumbs { padding: 15px 0 5px; font-size: 13px; color: #838383; }
.crumbs a:hover { color: var(--biz-blue); }
.crumbs i { margin: 0 5px; font-style: normal; color: #bbb; }

/* ===== 插件详情布局：主栏 + 右侧固定栏（1440px 版式） ===== */
.plugin-detail-layout {
  display: grid; grid-template-columns: minmax(0,1fr) 340px;
  gap: 20px; align-items: start; padding: 12px 0 40px;
}
.plugin-detail-main { min-width: 0; }
@media (max-width: 920px) { .plugin-detail-layout { grid-template-columns: 1fr; } }
@media (min-width: 921px) { .plugin-detail-sidebar { position: sticky; top: 96px; } }

/* ===== Hero：左封面 + 右摘要 ===== */
.plugin-detail-hero {
  display: grid; margin-bottom: 26px;
  grid-template-columns: minmax(0,1.08fr) minmax(340px,.92fr);
  gap: 26px; align-items: stretch;
}
@media (max-width: 780px) { .plugin-detail-hero { grid-template-columns: 1fr; } }
.plugin-detail-cover {
  display: flex; min-width: 0;
  background: #fff; border-radius: 10px;
  box-shadow: 0 0 20px 0 hsla(0,0%,60%,.1); padding: 14px;
}
.product-main-image {
  display: flex; width: 100%; min-height: 0;
  background: var(--biz-soft); border-radius: 6px; padding: 10px;
  align-items: flex-start;
}
/* 多图展示画廊 */
.cover-gallery { width: 100%; }
.gallery-stage {
  position: relative; width: 100%;
  border-radius: 6px; overflow: hidden;
  background: #fff; box-shadow: 0 4px 14px rgba(30,98,236,.08);
}
.gallery-stage img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.g-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border: none; border-radius: 50%;
  background: rgba(16,42,67,.45); color: #fff; font-size: 18px; line-height: 1;
  cursor: pointer; transition: background .2s ease;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.g-nav:hover { background: var(--biz-blue); }
.g-prev { left: 10px; }
.g-next { right: 10px; }
.g-count {
  position: absolute; right: 10px; bottom: 10px;
  color: #fff; background: rgba(16,42,67,.55); border-radius: 12px;
  padding: 1px 10px; font-size: 12px; letter-spacing: 1px;
}
.gallery-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.g-thumb {
  display: block; width: 100%; height: 74px; object-fit: cover; object-position: top center;
  border-radius: 6px; border: 2px solid transparent;
  cursor: pointer; opacity: .6; transition: all .2s ease; padding: 0; background: #fff;
}
.g-thumb:hover { opacity: 1; }
.g-thumb.active { border-color: var(--biz-blue); opacity: 1; }

/* 右侧摘要（美育白卡片） */
.plugin-detail-summary {
  min-width: 0; padding: 24px 26px;
  background: #fff; border-radius: 10px;
  box-shadow: 0 0 20px 0 hsla(0,0%,60%,.1);
}
.plugin-detail-summary h1 {
  color: var(--biz-navy); font-size: 23px; line-height: 1.5; font-weight: 700;
  margin-bottom: 12px;
}
.summary-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.article-tag {
  display: inline-block; padding: 3px 12px;
  color: var(--biz-blue); background: var(--biz-light);
  border-radius: 20px; font-size: 12px; transition: all .2s ease;
}
.article-tag:hover { color: #fff; background: var(--biz-blue); }
.plugin-price-card {
  display: grid; margin: 0 0 16px; padding: 15px 17px;
  background: var(--biz-soft); border: 1px solid #e8e8e8; border-radius: 8px;
  grid-template-columns: minmax(0,1fr) minmax(80px,.5fr);
  gap: 15px; align-items: center;
}
.plugin-price-main span, .plugin-price-meta span { display: block; color: #838383; font-size: 11px; }
.plugin-price-main strong { display: block; color: var(--biz-gold); font-size: 30px; font-weight: 800; line-height: 1.2; }
.plugin-price-main strong em { font-style: normal; font-size: 14px; color: #999; text-decoration: line-through; font-weight: 400; margin-left: 8px; }
.plugin-price-main .sub { display: block; color: #666; font-size: 12px; margin-top: 3px; }
.plugin-price-meta { display: grid; gap: 8px; }
.plugin-price-meta strong { display: block; color: var(--biz-navy); font-size: 13px; font-weight: 600; }
.plugin-detail-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.action {
  display: inline-flex; padding: 10px 22px; border-radius: 20px;
  border: 1px solid transparent; font-size: 14px; align-items: center; gap: 6px;
  cursor: pointer; transition: all .25s ease;
}
.action--primary { color: #fff; background: var(--biz-blue); border-color: var(--biz-blue); font-weight: 700; }
.action--primary:hover { color: #fff; background: #1851c4; border-color: #1851c4; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(30,98,236,.3); }
.action--outline { color: var(--biz-blue); background: transparent; border-color: var(--biz-blue); }
.action--outline:hover { color: #fff; background: var(--biz-blue); border-color: var(--biz-blue); }
.plugin-service-note {
  padding: 11px 14px; border: 1px solid #e8e8e8; border-radius: 8px;
  font-size: 13px; line-height: 1.7; color: #666; background: var(--biz-soft);
}
.plugin-service-note--included { color: var(--biz-blue); background: var(--biz-light); border-color: #d6e4fb; }
.plugin-service-note--included b { color: #1851c4; }

/* ===== 选项卡（下划线式） ===== */
.market-detail-nav {
  display: flex; margin: 0 0 24px;
  border-bottom: 1px solid #e8e8e8; gap: 30px;
  overflow-x: auto; overflow-y: hidden; white-space: nowrap;
}
.market-detail-nav a {
  position: relative; padding: 0 2px 11px;
  color: #838383; font-size: 15px; cursor: pointer;
}
.market-detail-nav a:hover { color: var(--biz-blue); }
.market-detail-nav a.active { color: var(--biz-blue); font-weight: 600; }
.market-detail-nav a.active::after {
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  content: ''; background: linear-gradient(90deg, #1e62ec, #327cfb); border-radius: 2px;
}
.plugin-tab-panel { display: none; scroll-margin-top: 82px; }
.plugin-tab-panel.is-active { display: block; }

/* ===== 详情内容（美育白卡片） ===== */
.plugin-tab-panel.is-active .article-content {
  background: #fff; border-radius: 10px; padding: 30px 34px;
  box-shadow: 0 0 20px 0 hsla(0,0%,60%,.1);
}
.article-content h2, .article-content h3 {
  position: relative; margin: 28px 0 12px; padding-left: 16px;
  color: var(--biz-navy); font-size: 18px; font-weight: 700; line-height: 1.5;
}
.article-content h2::before, .article-content h3::before {
  position: absolute; top: .25em; bottom: .25em; left: 0; width: 4px;
  content: ''; background: linear-gradient(#1e62ec, #327cfb); border-radius: 3px;
}
.article-content > h2:first-child { margin-top: 0; }
.article-content p { color: #4a4a4a; font-size: 14px; margin-bottom: 13px; text-align: justify; }
.bd-callout {
  margin: 14px 0 16px; padding: 16px 18px 14px;
  background: var(--biz-light); border-left: 3px solid var(--biz-blue);
  border-radius: 0 8px 8px 0;
  line-height: 22px; font-size: 14px; color: #333;
}
.bd-callout b { color: var(--biz-blue); }
.bd-callout .lnk { color: var(--biz-blue); word-break: break-all; }

/* 插件属性 dl */
.plugin-attribute-grid {
  display: grid; margin: 0 0 6px;
  border: 1px solid #e8e8e8; border-radius: 8px; overflow: hidden;
  grid-template-columns: repeat(2, minmax(0,1fr));
}
.plugin-attribute-grid > div { padding: 12px 16px; border-bottom: 1px dashed #eee; background: #fff; }
.plugin-attribute-grid > div:nth-child(odd) { border-right: 1px dashed #eee; }
.plugin-attribute-grid > div:nth-last-child(-n+2) { border-bottom: none; }
.plugin-attribute-grid dt { color: #838383; font-size: 12px; line-height: 1.7; }
.plugin-attribute-grid dd { margin: 0; color: var(--biz-navy); font-size: 13px; line-height: 1.7; font-weight: 600; overflow-wrap: anywhere; }

/* 核心功能 8 卡 */
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin: 4px 0 16px; }
@media (max-width: 700px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-grid article {
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px 18px; background: var(--biz-soft);
  border: 1px solid #e8e8e8; border-radius: 10px;
  transition: all .25s ease;
}
.feature-grid article:hover { border-color: #c6d8f9; box-shadow: 0 0 10px 0 rgba(30,98,236,.12); transform: translateY(-2px); }
.feature-grid article > .fa {
  display: flex; width: 40px; height: 40px; margin-bottom: 6px;
  color: #fff; background: linear-gradient(135deg, #1e62ec, #327cfb);
  border-radius: 11px 4px 11px 4px;
  align-items: center; justify-content: center; font-size: 17px; font-style: normal;
}
.feature-grid article b { color: var(--biz-navy); font-size: 15px; }
.feature-grid article span { color: #666; font-size: 13px; line-height: 21px; text-align: justify; }

/* 通用列表 */
.biz-list li {
  position: relative; padding: 9px 0 9px 24px;
  border-bottom: 1px dashed #eee; font-size: 14px; color: #4a4a4a;
}
.biz-list li:last-child { border-bottom: none; }
.biz-list li::before { content: "✔"; position: absolute; left: 2px; color: var(--biz-blue); font-weight: 700; }
.biz-list li b { color: var(--biz-navy); }

/* 适用人群 */
.people-row { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 14px; }
.people-row span {
  padding: 5px 14px; color: var(--biz-blue); background: var(--biz-light);
  border: 1px solid #d6e4fb; border-radius: 20px; font-size: 13px;
}

/* 升级日志 */
.changelog-list li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px dashed #eee; align-items: baseline; }
.changelog-list li:last-child { border-bottom: none; }
.changelog-list .ver {
  flex: 0 0 auto; color: #fff; background: linear-gradient(135deg, #1e62ec, #327cfb);
  border-radius: 20px; padding: 2px 12px; font-weight: 700; font-size: 12.5px;
}
.changelog-list .date { color: #838383; font-size: 12.5px; }
.changelog-list .txt { color: #4a4a4a; font-size: 14px; }

/* 代安装服务 */
.plugin-install-service-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin: 4px 0 18px; }
@media (max-width: 700px) { .plugin-install-service-grid { grid-template-columns: 1fr; } }
.plugin-install-service-grid article {
  padding: 15px 18px; background: var(--biz-soft);
  border: 1px solid #e8e8e8; border-radius: 10px;
}
.plugin-install-service-grid article b { display: block; color: var(--biz-navy); font-size: 14.5px; margin-bottom: 5px; }
.plugin-install-service-grid article span { color: #666; font-size: 13px; line-height: 21px; }
.install-cta { text-align: center; margin-top: 8px; }
.action--block { width: auto; padding: 11px 36px; font-weight: 600; }

/* ===== 侧边栏（右侧固定） ===== */
.plugin-detail-sidebar { min-width: 0; }
.side-card {
  margin-bottom: 18px; padding: 20px 22px;
  background: #fff; border-radius: 10px;
  box-shadow: 0 0 20px 0 hsla(0,0%,60%,.1);
}
.side-card h4 {
  margin: 0 0 14px; padding-bottom: 10px;
  color: var(--biz-navy); font-size: 15px; font-weight: 700;
  border-bottom: 2px solid var(--biz-light);
}
.plugin-author-head { display: flex; margin-bottom: 15px; align-items: center; gap: 11px; }
.plugin-author-head .avatar {
  display: flex; width: 46px; height: 46px; flex: 0 0 auto;
  color: #fff; background: linear-gradient(145deg, var(--biz-cyan), var(--biz-blue));
  border-radius: 12px 4px 12px 4px;
  align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; font-family: Georgia, serif;
}
.plugin-author-head b { display: block; color: var(--biz-navy); font-size: 15px; }
.plugin-author-head small { display: block; color: #838383; font-size: 12px; margin-top: 2px; }
.plugin-side-meta { display: grid; margin: 0; gap: 12px; }
.plugin-side-meta > div { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; border-bottom: 1px dashed #eee; padding-bottom: 9px; }
.plugin-side-meta dt { color: #838383; }
.plugin-side-meta dd { margin: 0; color: var(--biz-navy); font-weight: 600; }
.plugin-hot-card { display: block; padding-bottom: 18px; border-bottom: 1px dashed #eee; margin-bottom: 18px; }
.plugin-hot-card:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.plugin-hot-card h5 { margin: 0 0 5px; font-size: 13.5px; font-weight: 600; line-height: 20px; color: var(--biz-ink); }
.plugin-hot-card:hover h5 { color: var(--biz-blue); }
.plugin-hot-card .hot-foot {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin-top: 6px;
}
.plugin-hot-card .meta { color: #838383; font-size: 12px; }
.plugin-hot-card .price { display: flex; align-items: baseline; color: var(--biz-gold); font-size: 17px; font-weight: 800; font-family: Georgia, serif; line-height: 1; }
.plugin-hot-card .price i { font-style: normal; font-size: 12px; font-weight: 700; margin-right: 1px; }
.plugin-hot-card .price.free { color: var(--biz-blue); font-family: "Microsoft YaHei"; font-size: 14px; font-weight: 600; }

/* ===== 侧边栏推广位（图片卡片，悬停显示联系入口） ===== */
.ad-card {
  position: relative; overflow: hidden;
  margin-top: 14px; padding: 0;
  border-radius: 10px; line-height: 0;
  box-shadow: 0 8px 22px rgba(107,70,229,.28);
}
.ad-card img { display: block; width: 100%; height: auto; }
.ad-card .ad-link { display: block; }
.ad-card .ad-link:hover img { opacity: .92; }
.ad-card .ad-tip {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 16px;
  background: #fff; color: #333; font-size: 12px; font-weight: 600; line-height: 1.4;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
  opacity: 0; transform: translateY(-6px); transition: opacity .25s ease, transform .25s ease, background .2s ease, color .2s ease;
}
.ad-card .ad-badge {
  position: absolute; top: 10px; right: 10px; z-index: 1;
  width: 30px; height: 20px;
  background: rgba(0,0,0,.45); color: #fff;
  border-radius: 4px; text-align: center;
  font-size: 11px; font-weight: 700; line-height: 20px; letter-spacing: 1px;
  transition: opacity .25s ease;
}
.ad-card:hover .ad-badge { opacity: 0; }
.ad-card:hover .ad-tip { opacity: 1; transform: translateY(0); }
.ad-card .ad-tip:hover { background: var(--biz-blue); color: #fff; }

/* 购买附赠服务 */
.gift-service {
  margin-top: 16px; padding: 22px 24px;
  background: #fff; border-radius: 10px;
  box-shadow: hsla(0,0%,60%,.1) 0 2px 3px;
}
.gift-kicker { display: block; margin-bottom: 6px; color: var(--biz-gold); font-size: 12px; font-weight: 600; letter-spacing: 1px; }
.gift-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.gift-head h3 { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--biz-navy); font-size: 20px; }
.gift-head h3 .fa { font-style: normal; font-size: 21px; }
.gift-head .action { flex-shrink: 0; padding: 9px 18px; font-size: 14px; }
.gift-desc { margin: 0 0 16px; color: #667; font-size: 14px; line-height: 1.7; }
.gift-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gift-grid article {
  padding: 18px 16px; background: var(--biz-soft);
  border: 1px solid #e6ecf5; border-radius: 8px;
  transition: box-shadow .25s ease, transform .25s ease;
}
.gift-grid article:hover { box-shadow: 0 8px 20px rgba(30,98,236,.1); transform: translateY(-2px); }
.gift-grid .fa {
  display: flex; width: 34px; height: 34px; margin-bottom: 10px;
  background: var(--biz-light); color: var(--biz-blue); border-radius: 50%;
  align-items: center; justify-content: center; font-size: 15px; font-style: normal;
}
.gift-grid b { display: block; margin-bottom: 6px; color: var(--biz-navy); font-size: 15px; }
.gift-grid span { display: block; color: #667; font-size: 13px; line-height: 1.7; }
@media (max-width: 700px) { .gift-grid { grid-template-columns: 1fr; } }
