/* =========================================================
   回收匠 —— 品类回收说明页专用样式
   ========================================================= */

/* ---------------- 说明页 Banner ---------------- */
.page-hero {
  position: relative;
  background: linear-gradient(160deg, #0f3d24 0%, #14532d 45%, #166534 100%);
  color: #fff;
  padding: 52px 0 56px;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  width: 380px; height: 380px;
  right: -120px; top: -160px;
  background: radial-gradient(circle, rgba(34, 197, 94, .35), transparent 70%);
  pointer-events: none;
}
.crumb { position: relative; font-size: 13px; color: #a7f3d0; margin-bottom: 18px; }
.crumb a { color: #86efac; }
.crumb a:hover { color: #fff; text-decoration: underline; }
.crumb span { color: #fdba74; }
.page-hero h1 { position: relative; font-size: clamp(28px, 4vw, 40px); font-weight: 900; letter-spacing: 1px; margin-bottom: 14px; }
.page-hero-sub { position: relative; max-width: 820px; font-size: 15px; color: #d1fae5; line-height: 1.9; margin-bottom: 26px; }
.page-hero-actions { position: relative; display: flex; gap: 14px; flex-wrap: wrap; }
.page-hero-tags { position: relative; margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.page-hero-tags span {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #dcfce7;
}

/* ---------------- 正文版式 ---------------- */
.doc-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.doc-toc { position: sticky; top: 92px; }
.doc-toc nav {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: var(--shadow);
}
.doc-toc h3 { font-size: 15px; color: var(--ink-2); margin-bottom: 10px; padding-left: 6px; }
.doc-toc a {
  display: block;
  padding: 9px 12px;
  font-size: 14px;
  color: var(--ink-2);
  border-radius: 8px;
  border-left: 3px solid transparent;
  transition: .2s;
}
.doc-toc a:hover { color: var(--green); background: var(--green-light); }
.doc-body { display: flex; flex-direction: column; gap: 22px; min-width: 0; }

.doc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 32px;
  box-shadow: var(--shadow);
  scroll-margin-top: 92px;
}
.doc-card > h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.doc-card > h2::before {
  content: "";
  width: 6px; height: 22px;
  background: linear-gradient(180deg, var(--green), var(--green-dark));
  border-radius: 3px;
}
.doc-card > h2 + p { color: var(--ink-3); font-size: 13px; margin-bottom: 18px; }
.doc-card h3 { font-size: 16px; font-weight: 700; color: var(--ink); margin: 22px 0 10px; }
.doc-card p { font-size: 14px; color: var(--ink-2); line-height: 1.9; margin-bottom: 10px; }
.doc-card ul, .doc-card ol { margin: 8px 0 14px; }
.doc-card li {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.9;
  margin-bottom: 6px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.doc-card li::before { content: "▸"; color: var(--green); font-weight: 700; flex-shrink: 0; }

/* 表格 */
.doc-table-wrap { overflow-x: auto; margin: 14px 0 6px; border: 1px solid var(--line); border-radius: 12px; }
.doc-table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 14px; }
.doc-table th, .doc-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-table thead th { background: #14532d; color: #fff; font-weight: 700; }
.doc-table tbody tr:nth-child(even) { background: #fafdfb; }
.doc-table tbody tr:last-child td { border-bottom: 0; }
.doc-table td strong { color: var(--ink); }
.doc-table .row-hl td { background: #fffbeb; }

/* 标签 chips */
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--green-light);
  color: var(--green-dark);
  font-weight: 600;
}
.chip.off { background: #fee2e2; color: #b91c1c; }
a.chip { display: inline-block; text-decoration: none; cursor: pointer; transition: .2s; }
a.chip:hover { background: var(--green); color: #fff; }

/* 提示条 */
.note-tip, .note-warn {
  border-radius: 12px;
  padding: 16px 18px 16px 46px;
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.9;
  position: relative;
}
.note-tip::before, .note-warn::before {
  content: "!";
  position: absolute;
  left: 16px; top: 16px;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-weight: 800;
  font-size: 13px;
}
.note-tip { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.note-tip::before { background: #10b981; color: #fff; }
.note-warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.note-warn::before { background: #f59e0b; color: #fff; }

/* 流程步骤（横排） */
.step-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: 18px 0 8px; }
.step-box {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 14px;
  text-align: center;
}
.step-box b {
  width: 34px; height: 34px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  font-size: 16px;
  display: grid; place-items: center;
}
.step-box span { font-size: 14px; font-weight: 700; display: block; margin-bottom: 4px; }
.step-box small { font-size: 12px; color: var(--ink-3); line-height: 1.6; }

/* FAQ */
.faq-list details {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-list details[open] { border-color: #bbf7d0; background: #fff; }
.faq-list summary {
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.faq-list summary::before {
  content: "+";
  width: 22px; height: 22px;
  flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--green-light);
  color: var(--green);
  border-radius: 50%;
  font-weight: 700;
  transition: transform .3s;
}
.faq-list details[open] summary::before { transform: rotate(45deg); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list details p { padding: 0 18px 16px 50px; font-size: 14px; color: var(--ink-2); line-height: 1.9; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 900px) {
  .doc-layout { grid-template-columns: 1fr; }
  .doc-toc { position: static; }
  .doc-toc nav { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 12px; }
  .doc-toc h3 { margin: 0 6px 0 0; }
  .doc-toc a { padding: 6px 12px; border-left: 0; }
  .step-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .page-hero { padding: 38px 0 40px; }
  .doc-card { padding: 22px 18px; }
  .step-row { grid-template-columns: repeat(2, 1fr); }
}
