:root {
  --b:#6ed89a; --b-d:#22b86f; --b-s:#11844c;
  --ink:#1f2937; --ink-s:#4b5563; --ink-m:#9ca3af;
  --line:rgba(110,216,154,0.18);
  --bg:#f6f8f7;
  --code-bg:#f8faf9;
}
body { background:var(--bg); min-height:100vh; }

/* ===== 紧凑标题栏 ===== */
.detail-bar {
  padding: 20px 0 16px;
  border-bottom: 1px solid var(--line);
}
.breadcrumb {
  font-size: 12px; color: var(--ink-m); margin-bottom: 10px;
}
.breadcrumb a { color: var(--ink-m); text-decoration: none; }
.breadcrumb a:hover { color: var(--b-s); }
.detail-bar__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.detail-bar__left {
  display: flex; align-items: center; gap: 12px;
}
.detail-bar__back {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: #fff; border: 1px solid var(--line);
  color: var(--ink-s); text-decoration: none; font-size: 16px;
  transition: all .2s;
}
.detail-bar__back:hover { background: var(--b); color: #fff; }
.detail-bar__title {
  margin: 0; font-size: 20px; font-weight: 800; color: var(--ink);
  display: flex; align-items: center; gap: 10px;
}
.detail-bar__title .emoji { font-size: 24px; }
.detail-bar__copy {
  padding: 8px 20px; border-radius: 10px;
  background: linear-gradient(135deg, var(--b-d), var(--b));
  color: #fff; border: none; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all .2s;
  box-shadow: 0 4px 12px rgba(110,216,154,.25);
}
.detail-bar__copy:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(110,216,154,.35);
}
.detail-bar__copy.copied { background: var(--b-s); }
.detail-bar__copy:disabled {
  cursor: not-allowed;
  opacity: .62;
  transform: none;
  box-shadow: none;
}

/* ===== 主体双栏 ===== */
.detail-main {
  display: grid; grid-template-columns: 1fr 300px; gap: 28px;
  padding: 24px 0 60px;
}

/* 标签 */
.tag-bar {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 20px;
}
.tag-pill {
  padding: 4px 12px; border-radius: 999px;
  background: rgba(110,216,154,.08);
  border: 1px solid rgba(110,216,154,.15);
  font-size: 12px; color: var(--b-s); font-weight: 500;
}

/* 内容卡片通用 */
.content-card {
  background: #fff; border-radius: 18px;
  border: 1px solid var(--line);
  padding: 24px; margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.03);
}
.content-card h3 {
  margin: 0 0 14px; font-size: 16px; font-weight: 800; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.content-card h3::before {
  content: ""; width: 4px; height: 18px;
  background: linear-gradient(180deg, var(--b-d), var(--b));
  border-radius: 2px;
}
.content-card p {
  margin: 0; font-size: 14px; color: var(--ink-s); line-height: 1.8;
}

/* 代码块 */
.code-block {
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  overflow-x: auto;
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
  font-size: 13px; line-height: 1.7;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}

/* 提示词区域 */
.prompt-box {
  background: #fff; border-radius: 18px;
  border: 1px solid var(--line);
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.03);
}
.prompt-box__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, #f0fdf4, #e6f7ef);
  border-bottom: 1px solid var(--line);
}
.prompt-box__head h2 {
  margin: 0; font-size: 16px; font-weight: 800; color: var(--ink);
}
.prompt-box__body {
  padding: 20px;
}
.prompt-access-message {
  margin: 18px 20px 0;
  padding: 14px 16px;
  border: 1px solid rgba(110,216,154,.35);
  border-radius: 14px;
  background: #f0fdf4;
  color: #166534;
  font-size: 14px;
  line-height: 1.7;
}
.prompt-access-message__link {
  color: var(--b-s);
  font-weight: 800;
  text-decoration: none;
}
.prompt-access-message__link:hover {
  text-decoration: underline;
}
.prompt-box__body pre {
  margin: 0;
  background: var(--code-bg);
  border-radius: 12px;
  padding: 18px;
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
  font-size: 13px; line-height: 1.7;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 400px;
  overflow-y: auto;
}

/* 关键词 */
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 5px 14px; border-radius: 999px;
  background: rgba(110,216,154,.08);
  border: 1px solid rgba(110,216,154,.15);
  font-size: 13px; color: var(--b-s); font-weight: 500;
}

/* 技巧列表 */
.tip-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.tip-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--ink-s); line-height: 1.7;
}
.tip-list li::before {
  content: "✓"; flex-shrink: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(135deg, var(--b-d), var(--b));
  color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
  margin-top: 2px;
}

/* ===== 右侧 sidebar ===== */
.side-panel {
  display: flex; flex-direction: column; gap: 20px;
  position: sticky; top: 20px; align-self: start;
}

/* 广告占位 */
.ad-slot {
  background: linear-gradient(135deg, #f0fdf4, #e6f7ef);
  border: 2px dashed var(--line);
  border-radius: 18px;
  padding: 40px 20px;
  text-align: center;
  color: var(--ink-m);
  font-size: 13px;
  min-height: 200px;
  display: grid; place-items: center;
}
.ad-slot__label {
  font-size: 11px; font-weight: 700; color: var(--b-s);
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 8px;
}

/* 相关推荐 */
.side-box {
  background: #fff; border-radius: 18px;
  border: 1px solid var(--line);
  padding: 20px;
}
.side-box h3 {
  margin: 0 0 14px; font-size: 15px; font-weight: 800; color: var(--ink);
}
.related-list { display: flex; flex-direction: column; gap: 10px; }
.related-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border-radius: 12px;
  text-decoration: none; color: inherit;
  transition: all .2s;
}
.related-item:hover {
  background: rgba(110,216,154,.06);
}
.related-item__icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, #e6f7ef, #f0fdf4);
  color: var(--b-s); display: grid; place-items: center;
  font-size: 16px; flex-shrink: 0;
}
.related-item__text h4 {
  margin: 0 0 2px; font-size: 13px; font-weight: 700; color: var(--ink);
}
.related-item__text span {
  font-size: 11px; color: var(--ink-m);
}

@media (max-width: 920px) {
  .detail-main { grid-template-columns: 1fr; }
  .side-panel { position: static; }
}
