/* ===== 工具 0：工具集使用指南 ===== */

/* --- Overlay & Wizard --- */
#overlayToolGuide {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
  overflow-y: auto;
}
#overlayToolGuide .wizard {
  width: 100%;
  max-width: 800px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  padding: 0;
  animation: pop .18s ease-out;
  margin: auto 0;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}
#overlayToolGuide .w-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}
#toolGuideContent {
  overflow-y: auto;
  padding: 20px;
  flex: 1;
}

/* --- Hero --- */
.tg-hero {
  text-align: center;
  padding: 24px 16px 20px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 40%, #f0f9ff 100%);
  border-radius: 16px;
  margin-bottom: 20px;
  border: 1px solid #bae6fd;
}
.tg-hero-icon { font-size: 40px; margin-bottom: 8px; }
.tg-hero-title { font-size: 20px; font-weight: 700; color: #0f172a; margin: 0 0 8px; }
.tg-hero-desc { font-size: 14px; color: #475569; line-height: 1.7; margin: 0; }
.tg-hero-actions { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }

/* --- Quick Flow --- */
.tg-quick-flow {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #f0fdf4 100%);
  border: 1px solid #86efac;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 20px;
  text-align: center;
}
.tg-quick-flow-title { font-size: 14px; font-weight: 700; color: #15803d; margin-bottom: 12px; }
.tg-quick-flow-steps { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.tg-qf-step {
  display: flex; align-items: center; gap: 6px;
  background: #fff; border-radius: 10px; padding: 8px 14px;
  cursor: pointer; transition: transform .12s, box-shadow .12s;
  border: 1px solid #e5e7eb;
}
.tg-qf-step:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.tg-qf-num {
  display: inline-flex; width: 22px; height: 22px; border-radius: 999px;
  align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 700;
}
.tg-qf-label { font-size: 13px; font-weight: 600; color: #0f172a; }
.tg-qf-arrow { font-size: 16px; color: #16a34a; font-weight: 700; }

/* --- Zone Groups --- */
.tg-zone { margin-bottom: 18px; }
.tg-zone-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.tg-zone-name { font-size: 14px; font-weight: 700; color: #0f172a; }
.tg-zone-note { font-size: 12px; color: #6b7280; }

.tg-zone-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }

/* --- Tool Card --- */
.tg-card {
  position: relative;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: 14px; cursor: pointer;
  transition: transform .12s, box-shadow .12s, border-color .12s;
}
.tg-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  border-color: var(--card-color, #0ea5e9);
}
.tg-card-head { display: flex; align-items: center; gap: 8px; }
.tg-card-num {
  display: inline-flex; width: 24px; height: 24px; border-radius: 999px;
  align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.tg-card-icon { font-size: 16px; }
.tg-card-name { font-size: 13px; font-weight: 700; color: #0f172a; line-height: 1.3; }
.tg-card-subtitle { font-size: 12px; color: #6b7280; margin-top: 6px; padding-left: 32px; }
.tg-card-arrow { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #d1d5db; font-size: 16px; transition: color .12s; }
.tg-card:hover .tg-card-arrow { color: var(--card-color, #0ea5e9); }

/* --- Breadcrumb --- */
.tg-breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 13px; }
.tg-breadcrumb-link { color: #0ea5e9; cursor: pointer; font-weight: 500; }
.tg-breadcrumb-link:hover { text-decoration: underline; }
.tg-breadcrumb-sep { color: #d1d5db; }
.tg-breadcrumb-current { color: #6b7280; }

/* --- Tool Detail --- */
.tg-detail-header {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px; border-radius: 14px; margin-bottom: 20px;
  background: var(--card-bg, #f0f9ff);
  border: 1px solid #e5e7eb;
}
.tg-detail-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; flex-shrink: 0;
}
.tg-detail-info { flex: 1; }
.tg-detail-name { font-size: 18px; font-weight: 700; color: #0f172a; margin: 0 0 4px; }
.tg-detail-subtitle { font-size: 13px; color: #6b7280; }
.tg-detail-zone { margin-top: 8px; }
.tg-tag {
  display: inline-block; font-size: 11px; font-weight: 600;
  padding: 2px 10px; border-radius: 999px;
}

/* --- Sections --- */
.tg-section { margin-bottom: 18px; }
.tg-section-title { font-size: 15px; font-weight: 700; color: #0f172a; margin-bottom: 8px; }
.tg-section-body { font-size: 14px; color: #374151; line-height: 1.7; }

/* --- Features --- */
.tg-features { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tg-feature {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: #374151; line-height: 1.5;
  background: #f9fafb; border-radius: 10px; padding: 10px 12px;
}
.tg-feature-check { color: #16a34a; font-weight: 700; flex-shrink: 0; }

/* --- Steps --- */
.tg-steps { display: flex; flex-direction: column; gap: 0; }
.tg-step {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid #f3f4f6;
  position: relative;
}
.tg-step:last-child { border-bottom: none; }
.tg-step-num {
  display: inline-flex; width: 28px; height: 28px; border-radius: 999px;
  align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.tg-step-text { font-size: 14px; color: #374151; line-height: 1.6; padding-top: 3px; }

/* --- Tip Box --- */
.tg-tip-box {
  font-size: 14px; color: #374151; line-height: 1.7;
  padding: 14px 16px; border-radius: 12px;
  border-left: 4px solid;
}

/* --- Nav Buttons --- */
.tg-nav-buttons {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 24px; padding-top: 16px; border-top: 1px solid #e5e7eb;
}

/* --- Buttons --- */
.tg-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: 10px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .12s; border: 1px solid transparent;
  white-space: nowrap;
}
.tg-btn-primary { background: #0ea5e9; color: #fff; border-color: #0ea5e9; }
.tg-btn-primary:hover { background: #0284c7; }
.tg-btn-outline { background: #fff; color: #374151; border-color: #d1d5db; }
.tg-btn-outline:hover { background: #f9fafb; border-color: #9ca3af; }

/* --- Workflow Page --- */
.tg-wf-intro { text-align: center; margin-bottom: 24px; }
.tg-wf-intro h2 { font-size: 20px; margin: 0 0 6px; color: #0f172a; }
.tg-wf-intro p { font-size: 14px; color: #6b7280; margin: 0; }

.tg-wf-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 16px;
  padding: 20px; margin-bottom: 20px;
  transition: box-shadow .15s;
}
.tg-wf-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.tg-wf-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.tg-wf-name { font-size: 17px; font-weight: 700; color: #0f172a; margin: 0; }
.tg-wf-badge {
  font-size: 11px; font-weight: 600; color: #fff;
  padding: 3px 10px; border-radius: 999px;
}
.tg-wf-desc { font-size: 13px; color: #6b7280; margin: 0 0 16px; }

.tg-wf-steps { margin-bottom: 16px; }
.tg-wf-step {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px; cursor: pointer;
  transition: background .12s;
}
.tg-wf-step:hover { background: #f9fafb; }
.tg-wf-step-num {
  display: inline-flex; width: 26px; height: 26px; border-radius: 999px;
  align-items: center; justify-content: center;
  background: #0ea5e9; color: #fff; font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.tg-wf-step-body { flex: 1; }
.tg-wf-step-action { font-size: 14px; font-weight: 600; color: #0f172a; }
.tg-wf-step-desc { font-size: 12px; color: #6b7280; margin-top: 2px; }
.tg-wf-step-arrow { color: #d1d5db; font-size: 18px; }
.tg-wf-step:hover .tg-wf-step-arrow { color: #0ea5e9; }
.tg-wf-connector {
  width: 2px; height: 12px; background: #e5e7eb; margin-left: 23px;
}

.tg-wf-pros { margin-bottom: 12px; }
.tg-wf-pros-title { font-size: 13px; font-weight: 700; color: #16a34a; margin-bottom: 6px; }
.tg-wf-pro { font-size: 13px; color: #374151; line-height: 1.6; }
.tg-wf-bestfor {
  font-size: 13px; color: #374151; background: #f9fafb;
  padding: 10px 14px; border-radius: 10px;
}

/* --- FAQ Page --- */
.tg-faq-title { font-size: 20px; color: #0f172a; margin: 0 0 16px; }
.tg-faq-item {
  border: 1px solid #e5e7eb; border-radius: 12px;
  margin-bottom: 10px; overflow: hidden;
  transition: border-color .12s;
}
.tg-faq-item:hover { border-color: #bae6fd; }
.tg-faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; cursor: pointer; font-size: 14px; font-weight: 600; color: #0f172a;
  user-select: none;
}
.tg-faq-toggle { color: #9ca3af; transition: transform .2s; font-size: 14px; }
.tg-faq-item.open .tg-faq-toggle { transform: rotate(90deg); }
.tg-faq-a {
  padding: 0 16px; max-height: 0; overflow: hidden;
  font-size: 13px; color: #374151; line-height: 1.7;
  transition: max-height .25s ease, padding .25s ease;
}
.tg-faq-item.open .tg-faq-a {
  max-height: 300px; padding: 0 16px 14px;
}

/* --- Responsive --- */
@media (max-width: 640px) {
  #overlayToolGuide .wizard { max-width: 100%; }
  .tg-zone-cards { grid-template-columns: 1fr; }
  .tg-features { grid-template-columns: 1fr; }
  .tg-detail-header { flex-direction: column; gap: 12px; }
  .tg-quick-flow-steps { flex-direction: column; gap: 6px; }
  .tg-qf-arrow { transform: rotate(90deg); }
  .tg-hero-actions { flex-direction: column; align-items: center; }
  .tg-nav-buttons { flex-direction: column; gap: 10px; }
}
