/* 行业流量大盘 */
.td-root {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 32px;
}

.td-page-head {
  margin-bottom: 4px;
}

.td-page-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1d26;
  margin: 0 0 6px;
}

.td-page-desc {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 8px;
  line-height: 1.5;
}

.td-page-meta {
  font-size: 12px;
  color: #9ca3af;
}

.td-filters {
  background: #fff;
  border: 1px solid #eef0f5;
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.td-filter-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.td-filter-label {
  font-size: 13px;
  color: #6b7280;
  min-width: 72px;
  padding-top: 6px;
  flex-shrink: 0;
}

.td-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

.td-chip {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s;
}

.td-chip:hover {
  border-color: #7c5cff;
  color: #7c5cff;
}

.td-chip.is-active {
  background: #7c5cff;
  border-color: #7c5cff;
  color: #fff;
}

.td-overview {
  background: #fff;
  border: 1px solid #eef0f5;
  border-radius: 12px;
  padding: 16px 18px;
}

.td-overview-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.td-overview-head h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}

.td-overview-cat {
  margin-left: auto;
  font-size: 13px;
  color: #7c5cff;
  font-weight: 500;
}

.td-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 1100px) {
  .td-metrics { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .td-metrics { grid-template-columns: 1fr; }
}

.td-metric {
  border: 1px solid #f0f2f7;
  border-radius: 10px;
  padding: 14px 16px;
  background: #fafbfc;
}

.td-metric-label {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 6px;
}

.td-metric-value-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.td-metric-value {
  font-size: 22px;
  font-weight: 700;
  color: #1a1d26;
}

.td-metric-trend {
  font-size: 12px;
  font-weight: 500;
}

.td-metric-trend.is-up { color: #ef4444; }
.td-metric-trend.is-down { color: #22c55e; }

.td-metric-foot {
  margin-top: 8px;
  font-size: 12px;
  color: #9ca3af;
  display: flex;
  gap: 6px;
}

.td-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #eef0f5;
  background: #fff;
  border-radius: 12px 12px 0 0;
  padding: 0 16px;
  overflow-x: auto;
}

.td-tab {
  border: none;
  background: none;
  padding: 14px 18px;
  font-size: 14px;
  color: #6b7280;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.td-tab.is-active {
  color: #7c5cff;
  font-weight: 600;
  border-bottom-color: #7c5cff;
}

.td-tab-panel {
  background: #fff;
  border: 1px solid #eef0f5;
  border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 18px;
}

.td-panel-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 14px;
}

.td-funnel-wrap {
  display: grid;
  grid-template-columns: 280px 1fr 200px;
  gap: 16px;
  align-items: start;
}

@media (max-width: 960px) {
  .td-funnel-wrap { grid-template-columns: 1fr; }
}

.td-funnel {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.td-funnel-layer {
  position: relative;
  padding: 10px 14px;
  color: #fff;
  text-align: center;
  clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%);
}

.td-funnel-layer:nth-child(1) { background: #7c5cff; width: 100%; }
.td-funnel-layer:nth-child(2) { background: #f472b6; width: 88%; margin: 0 auto; }
.td-funnel-layer:nth-child(3) { background: #38bdf8; width: 76%; margin: 0 auto; }
.td-funnel-layer:nth-child(4) { background: #4ade80; width: 64%; margin: 0 auto; }

.td-funnel-layer-name { font-size: 12px; opacity: 0.95; }
.td-funnel-layer-val { font-size: 16px; font-weight: 700; }

.td-funnel-rates {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.td-funnel-rate {
  background: #f9fafb;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
}

.td-funnel-rate strong {
  display: block;
  font-size: 18px;
  color: #7c5cff;
  margin-top: 4px;
}

.td-funnel-metrics {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.td-funnel-metric-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed #eef0f5;
}

.td-funnel-leads {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.td-funnel-lead {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  overflow: hidden;
  background: #f3f4f6;
}

.td-funnel-lead img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.td-trend-chart {
  width: 100%;
  min-height: 260px;
  margin-top: 20px;
}

.td-trend-chart svg {
  width: 100%;
  height: auto;
  display: block;
}

.td-trend-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
  font-size: 12px;
  color: #6b7280;
}

.td-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}

.td-publish-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .td-publish-grid { grid-template-columns: 1fr; }
}

.td-bar-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.td-bar-item {
  display: grid;
  grid-template-columns: 48px 1fr 40px;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.td-bar-track {
  height: 8px;
  background: #f0f2f7;
  border-radius: 4px;
  overflow: hidden;
}

.td-bar-fill {
  height: 100%;
  background: #7c5cff;
  border-radius: 4px;
}

.td-category-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 960px) {
  .td-category-split { grid-template-columns: 1fr; }
}

.td-sort-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.td-sort-tab {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}

.td-sort-tab.is-active {
  border-color: #7c5cff;
  color: #7c5cff;
  background: #f5f0ff;
}

.td-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.td-table th,
.td-table td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid #f0f2f7;
}

.td-table th {
  color: #6b7280;
  font-weight: 500;
  font-size: 12px;
}

.td-table tr.is-selected {
  background: #f5f0ff;
}

.td-table tr.is-selected td:first-child {
  box-shadow: inset 3px 0 0 #7c5cff;
}

.td-radio {
  accent-color: #7c5cff;
}

.td-num {
  color: #7c5cff;
  font-weight: 600;
}

.td-placeholder {
  text-align: center;
  padding: 48px 24px;
  color: #9ca3af;
  font-size: 14px;
}

.td-sub-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.td-sub-tab {
  border: none;
  background: #f3f4f6;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
}

.td-sub-tab.is-active {
  background: #7c5cff;
  color: #fff;
}

.td-audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .td-audience-grid { grid-template-columns: 1fr; }
}

.td-audience-card {
  border: 1px solid #f0f2f7;
  border-radius: 10px;
  padding: 14px;
}

.td-audience-card h4 {
  margin: 0 0 12px;
  font-size: 14px;
}

.td-audience-note {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 16px;
}

.td-gender-bar {
  display: flex;
  height: 24px;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 8px;
}

.td-gender-male { background: #38bdf8; }
.td-gender-female { background: #f472b6; }

.td-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.td-tag {
  background: #f5f0ff;
  color: #7c5cff;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 12px;
}

.td-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
}

.td-loading {
  text-align: center;
  padding: 32px;
  color: #9ca3af;
}
