/* ===========================================================
   插件星球 · 插件帮助页
   =========================================================== */

.back-home {
  color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap;
  padding: 9px 14px; border-radius: 10px; transition: .2s ease;
}
.back-home:hover { color: var(--primary); background: var(--primary-soft); }

.detail-page { padding: 30px 0 70px; min-height: 70vh; }

/* 面包屑 */
.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  color: var(--muted-2); font-size: 12.5px; margin-bottom: 20px;
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb b { color: var(--text); font-weight: 600; }

/* 头部信息卡 */
.detail-hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 22px;
  padding: 30px 34px; margin-bottom: 24px;
  border: 1px solid var(--line); border-radius: 22px;
  background: linear-gradient(120deg, #fff 0%, #f6f7ff 55%, #fdf5ff 100%);
  box-shadow: var(--shadow);
}
.detail-hero::before {
  content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%;
  right: -70px; top: -160px; background: rgba(99, 102, 241, .09);
}
.detail-hero-icon {
  position: relative; z-index: 1; flex-shrink: 0;
  width: 76px; height: 76px; border-radius: 20px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--icon-from, #6366f1), var(--icon-to, #a855f7));
  color: #fff; font-size: 32px; font-weight: 800;
  box-shadow: 0 12px 26px rgba(99, 102, 241, .22);
}
.detail-hero-copy { position: relative; z-index: 1; min-width: 0; flex: 1; }
.detail-hero-badges { display: flex; gap: 8px; margin-bottom: 6px; }
.detail-cat, .detail-badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary-dark); font-size: 11.5px; font-weight: 700;
}
.detail-badge { background: #fff4e5; color: #d97706; }
.detail-hero h1 { margin: 0; font-size: 28px; letter-spacing: -.6px; line-height: 1.3; }
.detail-hero-copy > p { margin: 7px 0 12px; color: var(--muted); font-size: 14px; max-width: 700px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted-2); font-size: 12px; }
.detail-meta span { display: inline-flex; align-items: center; gap: 6px; }
.detail-meta span::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--primary); }
.detail-hero-action {
  position: relative; z-index: 1; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.download-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 30px; border: 0; border-radius: 13px;
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  color: #fff; font-size: 15px; font-weight: 800; white-space: nowrap;
  box-shadow: 0 12px 26px rgba(99, 102, 241, .28);
  transition: transform .2s ease, box-shadow .2s ease;
}
.download-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(99, 102, 241, .34); }
.download-btn.small { padding: 11px 22px; font-size: 13.5px; }
.download-tip { color: var(--muted-2); font-size: 11px; }

/* 两栏布局 */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.detail-main, .detail-side { display: flex; flex-direction: column; gap: 22px; min-width: 0; }

.help-card, .info-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow-sm);
}
.help-card h2, .info-card h2 {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 20px; font-size: 17px; font-weight: 750;
}
.help-title-mark {
  width: 4px; height: 18px; border-radius: 3px;
  background: linear-gradient(135deg, var(--primary), #a855f7);
}

/* 插件介绍 */
.intro-body { color: #3c4359; font-size: 14px; line-height: 1.9; }
.intro-body p { margin: 0 0 10px; white-space: pre-wrap; word-break: break-word; }
.intro-body p:last-child { margin-bottom: 0; }
.intro-body p.intro-heading {
  margin-top: 16px; color: var(--primary-dark); font-weight: 750; font-size: 14.5px;
}
.intro-body a { color: var(--primary); text-decoration: underline; }

/* 安装步骤 */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.step-no {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary-dark); font-size: 13px; font-weight: 800;
}
.steps b { font-size: 14px; }
.steps p { margin: 3px 0 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.steps code, .faq-list code {
  padding: 2px 6px; border-radius: 5px; background: var(--surface-2);
  color: var(--primary-dark); font-size: 12.5px;
}
.inline-link {
  color: var(--primary-dark); font-weight: 600; text-decoration: underline;
  text-underline-offset: 2px;
}
.inline-link:hover { color: var(--primary); }

/* 常见问题 */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-list details {
  border: 1px solid var(--line); border-radius: 11px;
  background: #fcfcff; overflow: hidden;
}
.faq-list summary {
  padding: 13px 16px; cursor: pointer; list-style: none;
  font-size: 13.5px; font-weight: 650; color: var(--text);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; color: var(--primary); font-size: 18px; line-height: 1; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details[open] { background: #fff; border-color: #dcdfff; }
.faq-list details p { margin: 0; padding: 0 16px 15px; color: var(--muted); font-size: 13px; line-height: 1.8; }

/* 侧栏：详情表 */
.info-card h2 { font-size: 15px; margin-bottom: 16px; }
.info-list { margin: 0; display: flex; flex-direction: column; }
.info-list > div {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 12.5px;
}
.info-list > div:last-child { border-bottom: 0; }
.info-list dt { color: var(--muted-2); flex-shrink: 0; }
.info-list dd { margin: 0; color: var(--text); text-align: right; word-break: break-all; font-weight: 600; }

/* 侧栏：相关推荐 */
.related-list { display: flex; flex-direction: column; gap: 9px; }
.related-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 10px; border: 1px solid transparent; border-radius: 11px;
  background: var(--surface-2); text-align: left; transition: .2s ease;
}
.related-item:hover { background: #fff; border-color: #dcdfff; box-shadow: var(--shadow-sm); transform: translateX(2px); }
.related-icon {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; color: #fff; font-size: 14px; font-weight: 800;
  background: linear-gradient(135deg, var(--icon-from), var(--icon-to));
}
.related-copy { min-width: 0; flex: 1; }
.related-copy b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.related-copy span { color: var(--muted-2); font-size: 11px; }

.note-card p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.8; }

/* 底部下载条 */
.download-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 24px 28px; border-radius: var(--radius);
  background: linear-gradient(110deg, #4f46e5, #7c3aed 60%, #a855f7);
  color: #fff; box-shadow: 0 16px 36px rgba(99, 102, 241, .22);
}
.download-strip b { font-size: 16px; }
.download-strip p { margin: 4px 0 0; color: rgba(255,255,255,.8); font-size: 12.5px; }
.download-strip .download-btn { background: #fff; color: var(--primary-dark); box-shadow: 0 8px 20px rgba(0,0,0,.12); }

/* 未找到插件 */
.not-found {
  padding: 70px 20px; text-align: center; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.not-found h1 { margin: 0 0 8px; font-size: 24px; }
.not-found p { color: var(--muted); margin: 0 0 22px; }

@media (max-width: 980px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-side { display: grid; grid-template-columns: 1fr 1fr; }
  .note-card { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .detail-page { padding-top: 20px; }
  .detail-hero { flex-wrap: wrap; padding: 24px; gap: 16px; }
  .detail-hero-icon { width: 60px; height: 60px; font-size: 26px; }
  .detail-hero h1 { font-size: 23px; }
  .detail-hero-action { width: 100%; }
  .download-btn { width: 100%; }
  .detail-side { display: flex; }
  .help-card, .info-card { padding: 22px; }
  .nav-links { display: none; }
  .back-home { padding: 8px 10px; font-size: 12px; }
}
