/* ==========================================================================
   星网数科 TOP 30 商业工具与经营宝典样式系统
   Apple 极简美学 · 翡翠绿主色 (#0F766E) · 精密可视化仪表
   ========================================================================== */

body.page-tools {
  background: #f5f5f7;
}

.tools-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.tools-kicker,
.tf-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0f766e;
  margin-bottom: 4px;
}

/* ---------- /tools 中心 Hero ---------- */
.tools-hero {
  background: radial-gradient(90% 80% at 50% 0%, rgba(15, 118, 110, 0.08), transparent 65%), #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  padding: 46px 0 38px;
  text-align: center;
}

.tools-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: #0f766e;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.tools-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);
}

.tools-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -0.03em;
  color: #1d1d1f;
  line-height: 1.15;
}

.tools-hero-sub {
  max-width: 740px;
  margin: 0 auto 24px;
  font-size: 15.5px;
  line-height: 1.68;
  color: #6e6e73;
}

.tools-search-bar {
  max-width: 660px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f5f5f7;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 999px;
  padding: 6px 8px 6px 18px;
}

.tools-search-bar input {
  flex: 1;
  border: 0;
  background: transparent;
  font-size: 14px;
  color: #1d1d1f;
  outline: none;
  min-width: 0;
}

.tools-count-pill {
  flex: none;
  padding: 6px 14px;
  border-radius: 999px;
  background: #ffffff;
  font-size: 12px;
  color: #6e6e73;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.tools-count-pill b {
  color: #0f766e;
}

/* ---------- 两大旗舰焦点横幅 ---------- */
.tools-spotlight-section {
  padding-top: 26px;
}

.tools-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tools-spotlight {
  display: flex;
  flex-direction: column;
  padding: 24px 26px;
  border-radius: 20px;
  text-decoration: none;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.tools-spotlight:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.16);
}

.tools-spotlight.is-amber {
  background: linear-gradient(135deg, #1b1f26 0%, #2b231d 55%, #4a2d15 100%);
  border: 1px solid rgba(251, 191, 36, 0.28);
}

.tools-spotlight.is-teal {
  background: linear-gradient(135deg, #0d1b20 0%, #0d3b38 55%, #0f766e 100%);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.tools-spot-kicker {
  font-size: 11.5px;
  font-weight: 700;
  color: #fcd34d;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.tools-spotlight.is-teal .tools-spot-kicker {
  color: #6ee7b7;
}

.tools-spotlight h2 {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.3;
  color: #ffffff;
}

.tools-spotlight p {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.tools-spot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.tools-spot-chips span {
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
}

.tools-spot-go {
  margin-top: auto;
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
}

/* ---------- 分类条与 30 工具网格 ---------- */
.tools-catalog-section {
  padding-top: 26px;
  padding-bottom: 24px;
}

.tools-cat-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tools-cat-btn {
  border: 1px solid rgba(0, 0, 0, 0.09);
  background: #ffffff;
  color: #3a3a3c;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.tools-cat-btn span {
  font-size: 11px;
  opacity: 0.7;
  margin-left: 3px;
}

.tools-cat-btn:hover {
  border-color: #0f766e;
  color: #0f766e;
}

.tools-cat-btn.is-active {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tool-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tool-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.tool-card.is-flagship {
  border-color: rgba(15, 118, 110, 0.38);
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.09);
}

.tool-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.tool-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #1d1d1f;
  overflow: hidden;
}

.tool-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.tool-card:hover .tool-card-media img {
  transform: scale(1.03);
}

.tool-rank-pill,
.tool-badge-pill {
  position: absolute;
  top: 10px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.tool-rank-pill {
  left: 10px;
  background: rgba(15, 23, 42, 0.72);
  color: #f8fafc;
}

.tool-badge-pill {
  right: 10px;
  background: rgba(15, 118, 110, 0.88);
  color: #ffffff;
}

.tool-badge-pill.is-gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
}

.tool-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tool-card-body h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #1d1d1f;
  line-height: 1.35;
}

.tool-card-body p {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.58;
  color: #6e6e73;
  flex: 1;
}

.tool-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.tool-media-tags {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tool-media-tags i {
  font-style: normal;
  font-size: 11px;
  color: #6e6e73;
  background: #f5f5f7;
  padding: 2px 7px;
  border-radius: 6px;
}

.tool-card-cta {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f766e;
  white-space: nowrap;
}

/* ---------- 底部导流卡 ---------- */
.tools-bridge-cta {
  padding: 12px 24px 56px;
}

.tools-bridge-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.tools-bridge-card h2 {
  margin: 4px 0 8px;
  font-size: 22px;
  color: #1d1d1f;
}

.tools-bridge-card p {
  margin: 0;
  color: #6e6e73;
  font-size: 14px;
  max-width: 640px;
}

.tools-bridge-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ==========================================================================
   工具详情页 (/tools/:slug)
   ========================================================================== */
.tool-detail-page {
  padding: 22px 0 64px;
}

.tool-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #6e6e73;
  margin-bottom: 14px;
}

.tool-crumb a {
  color: #0f766e;
  text-decoration: none;
}

.tool-detail-hero {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  padding: 24px 28px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.9fr);
  gap: 22px;
  align-items: center;
}

.tool-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.tool-cat-pill,
.tool-badge-inline,
.tool-free-pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.tool-cat-pill {
  background: rgba(15, 118, 110, 0.1);
  color: #0f766e;
}

.tool-badge-inline {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}

.tool-free-pill {
  background: #f5f5f7;
  color: #3a3a3c;
}

.tool-detail-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.5vw, 30px);
  letter-spacing: -0.02em;
  color: #1d1d1f;
}

.tool-detail-sub {
  margin: 0;
  font-size: 14.5px;
  color: #6e6e73;
  line-height: 1.6;
}

.tool-audio-dock {
  background: linear-gradient(145deg, #f8faf9, #eef7f5);
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tool-audio-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tool-audio-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #0f766e;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex: none;
}

.tool-audio-meta strong {
  display: block;
  font-size: 13px;
  color: #1d1d1f;
}

.tool-audio-meta small {
  display: block;
  font-size: 11px;
  color: #6e6e73;
}

.tool-audio-dock audio {
  width: 100%;
  height: 36px;
}

/* ---------- 交互工作台组件 (tools-flagship + tools-engine) ---------- */
.tool-workbench-section {
  margin-bottom: 24px;
}

.tf-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: 18px;
  align-items: start;
}

.tf-panel {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.04);
}

.tf-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.tf-head-row h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #1d1d1f;
}

.tf-type-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.tf-pill {
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #f5f5f7;
  color: #3a3a3c;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.tf-pill.is-active {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
}

.tf-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 20px 16px;
  border: 1.5px dashed rgba(15, 118, 110, 0.36);
  border-radius: 14px;
  background: rgba(15, 118, 110, 0.035);
  cursor: pointer;
  margin-bottom: 14px;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.tf-dropzone:hover,
.tf-dropzone.is-over {
  background: rgba(15, 118, 110, 0.08);
  border-color: #0f766e;
}

.tf-dropzone input[type="file"] {
  display: none;
}

.tf-drop-ico {
  font-size: 24px;
}

.tf-dropzone strong {
  font-size: 14px;
  color: #1d1d1f;
}

.tf-dropzone span {
  font-size: 12px;
  color: #6e6e73;
  max-width: 460px;
}

.tf-img-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f5f5f7;
  margin-bottom: 14px;
}

.tf-img-preview img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.tf-img-preview strong {
  display: block;
  font-size: 13px;
}

.tf-img-preview small {
  display: block;
  font-size: 11.5px;
  color: #0f766e;
}

.tf-field {
  margin-bottom: 14px;
}

.tf-field-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  font-weight: 600;
  color: #3a3a3c;
  margin-bottom: 6px;
}

.tf-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 12px;
  font: inherit;
  font-size: 13px;
  line-height: 1.6;
  background: #fafafa;
  color: #1d1d1f;
  resize: vertical;
}

.tf-textarea:focus {
  outline: none;
  border-color: #0f766e;
  background: #ffffff;
}

.tf-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tf-note,
.tf-hint-txt {
  font-size: 12px;
  color: #6e6e73;
  line-height: 1.55;
  margin: 10px 0 0;
  display: block;
}

/* 合同体检结果 */
.tf-empty-guide {
  padding: 18px 20px;
  border-radius: 14px;
  background: #f8faf9;
  border: 1px solid rgba(15, 118, 110, 0.15);
}

.tf-empty-guide h4 {
  margin: 0 0 8px;
  font-size: 15.5px;
  color: #1d1d1f;
}

.tf-empty-guide ul {
  margin: 10px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: #3a3a3c;
}

.tf-score-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.07);
  margin-bottom: 14px;
}

.tf-score-ring {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  flex: none;
  background: conic-gradient(var(--ring-color) calc(var(--ring-pct) * 1%), rgba(0, 0, 0, 0.08) 0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.tf-score-ring::before {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #ffffff;
}

.tf-score-ring strong,
.tf-score-ring small {
  position: relative;
  z-index: 1;
}

.tf-score-ring strong {
  font-size: 24px;
  line-height: 1;
  color: #1d1d1f;
}

.tf-score-ring small {
  font-size: 10.5px;
  color: #6e6e73;
  margin-top: 2px;
}

.tf-grade {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
}

.tf-grade.is-ok { background: #d1fae5; color: #047857; }
.tf-grade.is-warn { background: #fef3c7; color: #b45309; }
.tf-grade.is-danger { background: #fee2e2; color: #b91c1c; }

.tf-score-kpis {
  display: flex;
  gap: 18px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.tf-score-kpis span {
  display: block;
  font-size: 11px;
  color: #6e6e73;
}

.tf-score-kpis strong {
  font-size: 15px;
}

.tf-risk-list {
  display: grid;
  gap: 10px;
}

.tf-risk-card {
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
}

.tf-risk-high {
  border-left: 4px solid #dc2626;
  background: #fffafa;
}

.tf-risk-medium {
  border-left: 4px solid #d97706;
  background: #fffdf6;
}

.tf-risk-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.tf-lv {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.tf-lv.is-danger { background: #fee2e2; color: #b91c1c; }
.tf-lv.is-warn { background: #fef3c7; color: #b45309; }

.tf-risk-cat {
  margin-left: auto;
  font-size: 11px;
  color: #6e6e73;
}

.tf-risk-quote {
  font-size: 12.5px;
  background: rgba(0, 0, 0, 0.04);
  padding: 7px 10px;
  border-radius: 8px;
  color: #3a3a3c;
  margin-bottom: 7px;
}

.tf-hl {
  background: #fecaca;
  color: #991b1b;
  padding: 0 3px;
  border-radius: 3px;
  font-weight: 700;
}

.tf-risk-why {
  margin: 0 0 6px;
  font-size: 12.5px;
  color: #3a3a3c;
  line-height: 1.55;
}

.tf-risk-fix {
  font-size: 12.5px;
  color: #065f46;
  background: #ecfdf5;
  padding: 8px 10px;
  border-radius: 8px;
  line-height: 1.55;
}

.tf-missing-box {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.tf-missing-box h4 {
  margin: 0 0 8px;
  font-size: 13.5px;
  color: #1e40af;
}

.tf-missing-box ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  font-size: 12.5px;
}

.tf-missing-box p {
  margin: 2px 0 0;
  color: #3b4b64;
}

.tf-ok-box {
  padding: 12px 14px;
  border-radius: 12px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 13px;
}

.tf-ai-box {
  margin-top: 14px;
  border-radius: 14px;
  border: 1px solid rgba(15, 118, 110, 0.25);
  background: #f8faf9;
  padding: 14px 16px;
}

.tf-ai-head {
  font-size: 13px;
  font-weight: 700;
  color: #0f766e;
  margin-bottom: 8px;
}

.tf-ai-pre {
  white-space: pre-wrap;
  font: inherit;
  font-size: 13px;
  line-height: 1.65;
  margin: 0;
  color: #1d1d1f;
  max-height: 360px;
  overflow-y: auto;
}

/* ---------- 人流 24h 曲线与人群定位 ---------- */
.tf-sample-box {
  background: #f5f5f7;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
}

.tf-sample-head strong {
  display: block;
  font-size: 13px;
  color: #1d1d1f;
}

.tf-sample-head small {
  display: block;
  font-size: 11.5px;
  color: #6e6e73;
  margin-bottom: 10px;
}

.tf-sample-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.tf-sample-grid label {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tf-sample-grid span {
  font-size: 11px;
  font-weight: 700;
  color: #3a3a3c;
}

.tf-sample-grid input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  padding: 5px 6px;
  font-size: 14px;
  font-weight: 700;
  color: #0f766e;
}

.tf-sample-grid em {
  font-style: normal;
  font-size: 10px;
  color: #86868b;
}

.tf-grid-3,
.te-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.tf-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tf-inp {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tf-inp span {
  font-size: 12px;
  font-weight: 600;
  color: #3a3a3c;
}

.tf-inp em {
  font-style: normal;
  color: #86868b;
  font-weight: 500;
}

.tf-inp input,
.tf-inp select {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fafafa;
  font-size: 13.5px;
  color: #1d1d1f;
}

.tf-inp input:focus,
.tf-inp select:focus {
  outline: none;
  border-color: #0f766e;
  background: #ffffff;
}

.tf-formula-card {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8faf9;
  border: 1px solid rgba(15, 118, 110, 0.16);
  margin-bottom: 12px;
}

.tf-formula-card strong {
  display: block;
  font-size: 12px;
  color: #0f766e;
  margin-bottom: 4px;
}

.tf-formula-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: #4b5563;
}

.tf-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.tf-kpi {
  background: #f5f5f7;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 11px 12px;
}

.tf-kpi.is-em {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.11), rgba(16, 185, 129, 0.06));
  border-color: rgba(15, 118, 110, 0.25);
}

.tf-kpi span {
  display: block;
  font-size: 11px;
  color: #6e6e73;
}

.tf-kpi strong {
  display: block;
  font-size: 18px;
  color: #1d1d1f;
  margin-top: 3px;
  font-variant-numeric: tabular-nums;
}

.tf-kpi strong em {
  font-style: normal;
  font-size: 11px;
  color: #6e6e73;
  margin-left: 2px;
}

.tf-kpi small {
  display: block;
  font-size: 11px;
  color: #0f766e;
  margin-top: 2px;
}

.tf-chart-dark {
  background: linear-gradient(160deg, #121821 0%, #0d131a 100%);
  border-radius: 16px;
  padding: 16px;
  color: #f8fafc;
  margin-bottom: 16px;
}

.tf-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.tf-chart-head strong {
  display: block;
  font-size: 13.5px;
}

.tf-chart-head small {
  display: block;
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 2px;
}

.tf-chart-head small b {
  color: #34d399;
}

.tf-legend {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: #cbd5e1;
}

.tf-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.tf-legend i {
  width: 10px;
  height: 3px;
  border-radius: 2px;
  display: inline-block;
}

.tf-curve-svg {
  width: 100%;
  height: auto;
  display: block;
}

.tf-curve-hit {
  cursor: crosshair;
}

.tf-crowd-section {
  padding-top: 4px;
}

.tf-crowd-layout {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
}

.tf-donut-svg {
  width: 176px;
  height: 176px;
  display: block;
}

.tf-crowd-bars,
.te-bars {
  display: grid;
  gap: 9px;
}

.tf-cbar-top,
.te-bar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 4px;
}

.tf-cbar-top i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.tf-cbar-top em,
.te-bar-top em {
  font-style: normal;
  color: #86868b;
  font-size: 11px;
  margin-left: 4px;
}

.tf-cbar-track,
.te-bar-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.tf-cbar-track i,
.te-bar-track i {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.tf-persona-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tf-persona-card {
  background: #f8faf9;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 13px;
  padding: 13px 15px;
}

.tf-persona-badge {
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 4px;
}

.tf-persona-card h4 {
  margin: 0 0 6px;
  font-size: 14.5px;
  color: #1d1d1f;
}

.tf-persona-card p {
  margin: 0 0 4px;
  font-size: 12.5px;
  color: #4b5563;
  line-height: 1.5;
}

/* ---------- 通用引擎辅助元素 ---------- */
.te-alert {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 14px;
}

.te-alert.is-ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.te-alert.is-warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.te-alert.is-danger { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

.te-check-list {
  display: grid;
  gap: 8px;
}

.te-check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f5f5f7;
  border: 1px solid transparent;
  cursor: pointer;
}

.te-check-item.is-on {
  background: rgba(15, 118, 110, 0.08);
  border-color: rgba(15, 118, 110, 0.3);
}

.te-check-item input {
  margin-top: 3px;
  accent-color: #0f766e;
}

.te-check-item strong {
  display: block;
  font-size: 13px;
  color: #1d1d1f;
}

.te-check-item small {
  display: block;
  font-size: 11.5px;
  color: #6e6e73;
  margin-top: 2px;
}

.te-weight {
  margin-left: auto;
  flex: none;
  font-size: 11px;
  font-weight: 700;
  color: #0f766e;
  background: rgba(15, 118, 110, 0.1);
  padding: 3px 8px;
  border-radius: 999px;
}

.te-flag-box h4 {
  margin: 0 0 8px;
  font-size: 13.5px;
}

.te-flag-box ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  font-size: 12.5px;
}

.te-flag-box li span {
  display: block;
  color: #6e6e73;
  margin-top: 2px;
}

.te-gantt-ctrl {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
}

.te-gantt-ctrl input {
  margin-left: 6px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.14);
}

.te-gantt-list {
  display: grid;
  gap: 10px;
}

.te-gantt-row {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.te-gantt-info strong {
  display: block;
  font-size: 13px;
}

.te-gantt-info small {
  display: block;
  font-size: 11px;
  color: #6e6e73;
}

.te-gantt-track {
  position: relative;
  height: 28px;
  border-radius: 8px;
  background: #f1f5f9;
  overflow: hidden;
}

.te-gantt-bar {
  position: absolute;
  top: 3px;
  bottom: 3px;
  border-radius: 6px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  white-space: nowrap;
}

.te-table-wrap {
  overflow-x: auto;
}

.te-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.te-table th,
.te-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  text-align: left;
}

.te-table th {
  font-size: 12px;
  color: #6e6e73;
  background: #f8fafc;
}

.te-steps {
  display: grid;
  gap: 10px;
}

.te-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.te-step-no {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #0f766e;
  color: #ffffff;
  font-weight: 800;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.te-step p {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: #6e6e73;
}

.te-play-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.te-play-card {
  background: #f8faf9;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 13px;
  padding: 14px;
}

.te-play-tag {
  font-size: 11px;
  font-weight: 700;
  color: #0f766e;
}

.te-play-card h4 {
  margin: 5px 0 6px;
  font-size: 14.5px;
  color: #1d1d1f;
}

.te-play-card p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: #4b5563;
}

/* ---------- 下半区：深度图文经营宝典 + 音视频侧栏 ---------- */
.tool-vault-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.85fr);
  gap: 20px;
  align-items: start;
}

.tool-vault-main,
.tool-side-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  padding: 24px 26px;
}

.tool-vault-side {
  display: grid;
  gap: 16px;
}

.tool-section-head h2 {
  margin: 4px 0 16px;
  font-size: 21px;
  color: #1d1d1f;
}

.tool-keypoints {
  background: #f8faf9;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 20px;
}

.tool-keypoints h3 {
  margin: 0 0 10px;
  font-size: 14.5px;
  color: #0f766e;
}

.tool-keypoints ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.tool-keypoints li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  color: #1d1d1f;
}

.tool-keypoints li span {
  flex: none;
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  background: #0f766e;
  border-radius: 6px;
  padding: 2px 6px;
  margin-top: 2px;
}

.tool-keypoints li p {
  margin: 0;
  line-height: 1.55;
}

.tool-markdown-body h3 {
  font-size: 17px;
  color: #1d1d1f;
  margin: 22px 0 10px;
  padding-left: 10px;
  border-left: 3px solid #0f766e;
}

.tool-markdown-body h4 {
  font-size: 15px;
  margin: 16px 0 8px;
}

.tool-markdown-body p,
.tool-markdown-body li {
  font-size: 14px;
  line-height: 1.75;
  color: #3a3a3c;
}

.tool-markdown-body ul {
  padding-left: 20px;
}

.tool-faq-section {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.tool-faq-section h3 {
  margin: 0 0 12px;
  font-size: 17px;
}

.tool-faq-list {
  display: grid;
  gap: 10px;
}

.tool-faq-item {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 12px 15px;
  background: #fafafa;
}

.tool-faq-item summary {
  font-size: 14px;
  font-weight: 700;
  color: #1d1d1f;
  cursor: pointer;
}

.tool-faq-item p {
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: #4b5563;
}

.tool-side-card h3 {
  margin: 4px 0 12px;
  font-size: 16px;
  color: #1d1d1f;
}

.tool-side-cover {
  margin: 0 0 14px;
}

.tool-side-cover img {
  width: 100%;
  border-radius: 12px;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.tool-side-cover figcaption,
.tool-side-video small {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  color: #6e6e73;
}

.tool-side-video video {
  width: 100%;
  border-radius: 12px;
  display: block;
  background: #0f172a;
}

.tool-side-cta p {
  font-size: 13px;
  color: #6e6e73;
  line-height: 1.6;
  margin: 0 0 14px;
}

.tool-side-btns {
  display: grid;
  gap: 8px;
}

.tool-peer-list {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.tool-peer-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  background: #f5f5f7;
  text-decoration: none;
  color: inherit;
  transition: background 0.16s ease;
}

.tool-peer-card:hover {
  background: rgba(15, 118, 110, 0.1);
}

.tool-peer-card span {
  font-size: 11px;
  font-weight: 800;
  color: #0f766e;
  flex: none;
}

.tool-peer-card strong {
  display: block;
  font-size: 13px;
  color: #1d1d1f;
}

.tool-peer-card small {
  display: block;
  font-size: 11px;
  color: #6e6e73;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 210px;
}

.tool-peer-card i {
  margin-left: auto;
  font-style: normal;
  color: #0f766e;
}

.tool-back-all {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #0f766e;
  text-decoration: none;
}

.tool-compliance-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
  color: #6e6e73;
}

@media (max-width: 1024px) {
  .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-detail-hero,
  .tf-shell,
  .tool-vault-grid { grid-template-columns: 1fr; }
  .te-play-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .tools-spotlight-grid,
  .tools-grid,
  .tf-kpi-strip,
  .tf-grid-3,
  .te-form-grid,
  .tf-crowd-layout,
  .tf-persona-cards,
  .te-gantt-row,
  .te-play-grid { grid-template-columns: 1fr; }
  .tf-sample-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
