/* Traffic map demo - big-screen layout (demo14: crisp panels, no glass blur) */
.traffic-demo-page {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #201e28 0%, #181620 100%);
  color: #faf6f0;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- top toolbar ---- */
.traffic-demo-header {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 8px 18px;
  border-bottom: 1px solid #4e485c;
  background: #242030;
}

.traffic-toolbar-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #c8c0b6;
}

.traffic-toolbar-meta #dataDate {
  font-variant-numeric: tabular-nums;
}

/* ---- hero title band ---- */
.traffic-hero {
  flex-shrink: 0;
  text-align: center;
  padding: 10px 16px 8px;
  border-bottom: 1px solid #4e485c;
  background: linear-gradient(180deg, #262230 0%, #201e28 100%);
}

.traffic-main-title {
  margin: 0;
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #f5d278;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
  line-height: 1.25;
}

.traffic-main-desc {
  margin: 6px 0 0;
  font-size: 12px;
  color: #a89e94;
  letter-spacing: 0.06em;
}

.traffic-main-desc #dataSourceTag {
  color: #7ec8ff;
  font-weight: 700;
}

.traffic-main-desc #personaWho {
  color: #f0c060;
  font-weight: 700;
}

.traffic-scene-bar {
  position: absolute;
  top: 8px;
  left: 36px;
  right: 36px;
  z-index: 5;
  display: flex;
  align-items: stretch;
  gap: 8px;
  pointer-events: none;
}

.traffic-scene-badge {
  flex-shrink: 0;
  align-self: center;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #14121a;
  background: linear-gradient(180deg, #f0c868, #d89830);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.traffic-event-ticker {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  background: rgba(32, 30, 40, 0.92);
  border: 1px solid #4e485c;
  border-radius: 6px;
}

.traffic-ticker-headline {
  flex-shrink: 0;
  max-width: 42%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  color: #f0c868;
  padding-left: 2px;
  transition: opacity 0.28s ease;
}

.traffic-ticker-headline.is-changing {
  opacity: 0.72;
}

.traffic-ticker-headline::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: #f0c868;
  vertical-align: middle;
  opacity: 0.95;
}

.traffic-event-ticker-track {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 96%, transparent);
}

.traffic-event-ticker-inner {
  display: flex;
  gap: 28px;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 500;
  color: #c8c0b6;
  will-change: transform;
}

.traffic-event-ticker-inner span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.traffic-event-ticker-inner .ticker-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7ec8ff;
  opacity: 0.85;
}

.traffic-map-wrap.is-burst {
  box-shadow: inset 0 0 24px rgba(240, 160, 80, 0.12);
  transition: box-shadow 0.45s ease;
}

.traffic-day-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #c8c0b6;
  white-space: nowrap;
}

.traffic-day-picker select {
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid #4e485c;
  background: #221e2a;
  color: #f0c868;
  font-size: 12px;
  cursor: pointer;
}

.traffic-live-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
  background: #163322;
  border: 1px solid #2d6b42;
  color: #6ee7a0;
  letter-spacing: 0.08em;
}

.traffic-demo-back {
  color: #f0c868;
  text-decoration: none;
  font-size: 12px;
  padding: 6px 12px;
  border: 1px solid #4e485c;
  border-radius: 6px;
  background: #221e2a;
  white-space: nowrap;
}

.traffic-demo-back:hover {
  border-color: #f0c868;
  background: #2a2434;
}

.traffic-demo-layout {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 8px 10px 4px;
  gap: 8px;
}

.traffic-stage {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(200px, 16vw) minmax(0, 1fr) minmax(196px, 16vw);
  gap: 8px;
  min-height: 0;
}

.traffic-panel {
  background: #1a1620;
  border: 1px solid #322c3c;
  border-radius: 8px;
  overflow: hidden;
}

.traffic-side-left,
.traffic-side-right {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.traffic-side-left {
  overflow-y: auto;
  scrollbar-width: thin;
}

.traffic-metric-toggle {
  display: flex;
  gap: 4px;
  padding: 6px 8px;
  border-top: 1px solid #2a2434;
}
.traffic-metric-toggle button {
  flex: 1;
  padding: 5px 6px;
  border-radius: 5px;
  border: 1px solid #4e485c;
  background: #221e2a;
  color: #a89e94;
  font-size: 11px;
  cursor: pointer;
}
.traffic-metric-toggle button.is-active {
  color: #14121a;
  background: linear-gradient(180deg, #f0c868, #d89830);
  border-color: transparent;
  font-weight: 700;
}

.traffic-sub-block {
  padding: 6px 8px 8px;
  border-top: 1px solid #2a2434;
}
.traffic-sub-title {
  font-size: 11px;
  font-weight: 700;
  color: #c8b898;
  margin-bottom: 6px;
  letter-spacing: 0.08em;
}
.traffic-sub-title #liveFeedSync {
  font-weight: 400;
  color: #7a7268;
  font-size: 10px;
}

.traffic-live-feed-block {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.traffic-live-feed {
  flex: 1;
  min-height: 100px;
  max-height: 240px;
  overflow-y: auto;
  padding: 0 6px 6px;
  scrollbar-width: thin;
}
.traffic-live-feed-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 5px 6px;
  margin-bottom: 3px;
  border-radius: 5px;
  border-left: 2px solid #4e485c;
  background: #221e2a;
  font-size: 11px;
  line-height: 1.5;
  animation: feed-in 0.4s ease;
}
.traffic-live-feed-item.is-clickable {
  cursor: pointer;
}
.traffic-live-feed-item.is-clickable:hover {
  background: #2a2434;
  border-left-color: #f0c868;
}
.traffic-live-feed-item.is-live {
  border-left-color: #4caf78;
}
.traffic-live-feed-item.is-warn {
  border-left-color: #d89830;
}
.traffic-live-feed-item .feed-tag {
  flex-shrink: 0;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 700;
  color: #14121a;
  background: #f0c868;
}
.traffic-live-feed-item .feed-tag.tag-edit {
  background: #7ec8ff;
}
.traffic-live-feed-item .feed-tag.tag-heat {
  background: #d89830;
  color: #fff;
}
.traffic-live-feed-item .feed-text {
  flex: 1;
  color: #e8e0d6;
}
.traffic-live-feed-item .feed-time {
  flex-shrink: 0;
  font-size: 10px;
  color: #8a8278;
  font-variant-numeric: tabular-nums;
}
@keyframes feed-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.traffic-live-tag {
  display: inline-block;
  padding: 1px 6px;
  margin-right: 4px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  vertical-align: middle;
}
.traffic-live-tag.snap {
  color: #14121a;
  background: #7ec8ff;
}
.traffic-live-tag.live {
  color: #14121a;
  background: #6ee7a0;
}
.traffic-live-note {
  font-size: 10px;
  color: #8a8278;
  margin-left: 4px;
}
.traffic-live-board-line {
  margin-top: 0;
  font-size: 11px;
}
.traffic-live-board-line strong {
  color: #f0c868;
}

.traffic-live-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
}

.traffic-live-metric {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 6px;
  white-space: nowrap;
}

.traffic-live-metric-label {
  font-size: 11px;
  color: #c8c0b6;
}

.traffic-live-metric-sep {
  width: 1px;
  height: 18px;
  margin: 0 12px;
  background: rgba(126, 200, 255, 0.22);
  flex-shrink: 0;
}

.traffic-live-metric strong {
  color: #f0c868;
  font-size: 17px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1;
}

.traffic-live-delta {
  font-style: normal;
  font-weight: 700;
  color: #6ee7a0;
}

.traffic-prov-block,
.traffic-prov-grid,
.traffic-prov-chip {
  display: none;
}

.traffic-kw-empty {
  font-size: 11px;
  color: #7a7268;
  padding: 8px;
}

.traffic-side-extra {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-top: 1px solid #2a2434;
}

.traffic-hour-block,
.traffic-owner-block {
  flex-shrink: 0;
}

.traffic-hour-compare {
  padding: 0 8px 6px;
  font-size: 11px;
  line-height: 1.55;
  color: #e8e0d6;
}

.traffic-hour-compare .hc-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 0;
}

.traffic-hour-compare .hc-row strong {
  color: #f0c868;
  font-variant-numeric: tabular-nums;
}

.traffic-hour-compare .hc-delta.up strong {
  color: #6ee7a0;
}

.traffic-hour-compare .hc-delta.down strong {
  color: #f08078;
}

.traffic-hour-compare .hc-note {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px dashed #4e485c;
  color: #8a8278;
  font-size: 10px;
}

.traffic-owner-scroll {
  height: 108px;
  overflow: hidden;
  padding: 0 8px 6px;
  mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
}

.traffic-owner-scroll-inner {
  animation: owner-scroll 22s linear infinite;
}

.traffic-owner-scroll:hover .traffic-owner-scroll-inner {
  animation-play-state: paused;
}

@keyframes owner-scroll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

.traffic-owner-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 5px;
  margin-bottom: 2px;
  border-radius: 4px;
  background: #221e2a;
  font-size: 10px;
  line-height: 1.45;
}

.traffic-owner-item .site-tag {
  flex-shrink: 0;
  padding: 1px 5px;
  border-radius: 3px;
  background: #2a4060;
  color: #7ec8ff;
  font-weight: 700;
  font-size: 9px;
}

.traffic-owner-item .site-text {
  flex: 1;
  color: #e8e0d6;
}

.traffic-owner-item .site-delta {
  flex-shrink: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.traffic-owner-item .site-delta.up {
  color: #6ee7a0;
}

.traffic-owner-item .site-delta.down {
  color: #f08078;
}

.traffic-prov-insight {
  flex-shrink: 0;
  padding: 8px 10px;
  font-size: 11px;
  line-height: 1.55;
  border-top: 1px solid #2a2434;
  background: #201e28;
  color: #c8c0b6;
  min-height: 72px;
}
.traffic-prov-insight.is-visible strong {
  color: #f0c868;
}
.traffic-spark-row {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  margin-top: 4px;
  height: 14px;
}
.traffic-spark-row .spark-bar {
  display: inline-block;
  width: 4px;
  background: #4a7a9a;
  border-radius: 1px;
}
.traffic-spark-row .spark-bar.is-last {
  background: #f0c868;
}

.traffic-trend-mini {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.traffic-panel-title {
  flex-shrink: 0;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  background: linear-gradient(180deg, #2a4060, #1e3048);
  color: #f2ece4;
  letter-spacing: 0.12em;
  border-bottom: 1px solid #3a5080;
}

.traffic-summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.traffic-summary-table td {
  padding: 9px 8px;
  border-bottom: 1px solid #2a2434;
}
.traffic-summary-table td:first-child {
  color: #a89e94;
  font-size: 11px;
}
.traffic-summary-table td:last-child {
  text-align: right;
  font-weight: 700;
  color: #f0c868;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.traffic-rank-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.traffic-rank-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.traffic-rank-table th,
.traffic-rank-table td {
  padding: 5px 4px;
  border-bottom: 1px solid #2a2434;
  text-align: center;
  color: #e8e0d6;
}
.traffic-rank-table th {
  background: #221e2a;
  position: sticky;
  top: 0;
  z-index: 1;
  color: #c8c0b6;
  font-weight: 600;
}
.traffic-rank-table tbody tr {
  cursor: pointer;
}
.traffic-rank-table tbody tr:hover,
.traffic-rank-table tbody tr.is-active {
  background: #2a3040;
}

.traffic-map-wrap {
  position: relative;
  min-height: 0;
  min-width: 0;
  background: #121018;
}

#trafficMap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.traffic-map-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.22);
}

.traffic-hud-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  z-index: 3;
  pointer-events: none;
  border-color: #5a5068;
  border-style: solid;
}
.traffic-hud-corner.tl { top: 10px; left: 10px; border-width: 2px 0 0 2px; }
.traffic-hud-corner.tr { top: 10px; right: 10px; border-width: 2px 2px 0 0; }
.traffic-hud-corner.bl { bottom: 10px; left: 10px; border-width: 0 0 2px 2px; }
.traffic-hud-corner.br { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }

.traffic-map-overlay {
  position: absolute;
  left: 12px;
  right: auto;
  bottom: 10px;
  top: auto;
  max-width: calc(100% - 24px);
  height: auto;
  pointer-events: none;
  z-index: 4;
}

.traffic-live-bar {
  pointer-events: auto;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 12px 5px;
  border-radius: 8px;
  background: rgba(32, 30, 40, 0.9);
  border: 1px solid rgba(126, 200, 255, 0.18);
  font-size: 11px;
  line-height: 1.35;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}
.traffic-live-bar strong {
  color: #f0c868;
  font-size: 17px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.traffic-live-sub {
  color: #8a8278;
  font-size: 10px;
  padding-left: 2px;
}

.traffic-focus-delta.up,
.traffic-trend-mini.up,
.traffic-prov-insight .up {
  color: #6ee7a0;
}
.traffic-focus-delta.down,
.traffic-trend-mini.down,
.traffic-prov-insight .down {
  color: #f08078;
}

.traffic-detail-panel {
  position: absolute;
  top: 46px;
  left: 14px;
  width: 268px;
  overflow: hidden;
  padding: 0;
  border-radius: 8px;
  background: #1a1620;
  border: 1px solid #4a6080;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
  font-size: 11px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(-12px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 7;
}
.traffic-detail-panel.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.traffic-detail-panel.is-scanning::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #7ec8ff, #f0c868, transparent);
  z-index: 2;
  pointer-events: none;
  opacity: 0;
}
.traffic-detail-panel[data-anim="radar"].is-scanning::before {
  opacity: 1;
  animation: detail-scan-beam 1.1s ease-in-out infinite;
}
.traffic-detail-panel[data-anim="glitch"].is-scanning {
  animation: detail-panel-glitch 0.55s steps(2) 3;
}
@keyframes detail-panel-glitch {
  0%, 100% { filter: none; transform: translateY(0) scale(1); }
  50% { filter: hue-rotate(18deg) brightness(1.12); transform: translateY(-1px) scale(1.01); }
}
@keyframes detail-scan-beam {
  0% { top: 36px; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { top: calc(100% - 40px); opacity: 0; }
}
.traffic-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px 6px;
  border-bottom: 1px solid #2a2434;
  background: linear-gradient(180deg, #2a4060, transparent);
}
.traffic-detail-head .title {
  font-size: 12px;
  font-weight: 700;
  color: #f0c868;
  letter-spacing: 0.1em;
}
.traffic-detail-close {
  width: 24px;
  height: 24px;
  border: 1px solid #4e485c;
  border-radius: 6px;
  background: #221e2a;
  color: #f0c868;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}
.traffic-detail-close:hover {
  background: #3a3040;
}
.traffic-detail-scan {
  padding: 4px 8px 2px;
  overflow: visible;
}
.traffic-detail-line {
  display: flex;
  gap: 6px;
  padding: 4px 5px;
  margin-bottom: 1px;
  border-radius: 4px;
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 0.22s ease, transform 0.28s ease, background 0.22s;
}
.traffic-detail-line.is-lit {
  opacity: 1;
  transform: translateX(0);
}
.traffic-detail-line.is-active {
  background: #2a3040;
  box-shadow: inset 3px 0 #f0c868;
}
.traffic-detail-panel[data-anim="wave"] .traffic-detail-line.is-wave {
  animation: detail-wave-pop 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}
.traffic-detail-panel[data-anim="flip"] .traffic-detail-line.is-lit {
  animation: detail-flip-in 0.42s ease;
}
@keyframes detail-wave-pop {
  from { transform: scale(0.88) translateX(8px); opacity: 0; }
  to { transform: scale(1) translateX(0); opacity: 1; }
}
@keyframes detail-flip-in {
  from { transform: perspective(400px) rotateX(-72deg); opacity: 0; }
  to { transform: perspective(400px) rotateX(0); opacity: 1; }
}
.traffic-detail-line .k {
  flex-shrink: 0;
  width: 32px;
  color: #8a8278;
  font-size: 10px;
}
.traffic-detail-line .v {
  flex: 1;
  color: #f2ece4;
  word-break: break-all;
  font-size: 11px;
}
.traffic-detail-line .v.target {
  color: #7ec8ff;
  font-weight: 700;
  font-size: 12px;
}
.traffic-detail-go {
  display: block;
  margin: 4px 8px 8px;
  padding: 8px 12px;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #14121a;
  background: linear-gradient(180deg, #f0c868, #d89830);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s, transform 0.35s;
}
.traffic-detail-panel.is-done .traffic-detail-go {
  opacity: 1;
  transform: translateY(0);
}
.traffic-detail-go:hover {
  filter: brightness(1.08);
}
.traffic-tag-cdn {
  font-size: 10px;
  color: #d89830;
  margin-left: 4px;
}

.traffic-ads-dock {
  flex-shrink: 0;
  padding: 6px 10px 8px;
}

.traffic-ads-hint {
  font-size: 11px;
  color: #8a8278;
  margin: 0;
}

.traffic-ads-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
}

.traffic-ads-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.traffic-ads-filters {
  display: flex;
  align-items: center;
  gap: 8px;
}
.traffic-site-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #c8c0b6;
}
.traffic-site-filter select {
  padding: 4px 8px;
  border-radius: 5px;
  border: 1px solid #4e485c;
  background: #221e2a;
  color: #f0c868;
  font-size: 11px;
  cursor: pointer;
  max-width: 120px;
}
.traffic-shuffle-btn {
  padding: 4px 10px;
  border-radius: 5px;
  border: 1px solid #4e485c;
  background: #221e2a;
  color: #f0c868;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
}
.traffic-shuffle-btn:hover {
  border-color: #f0c868;
  background: #2a2434;
}

.traffic-ads-chips {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 6px;
  padding-bottom: 0;
  scrollbar-width: none;
  animation: ad-marquee 50s linear infinite;
  width: max-content;
}
.traffic-ads-chips::-webkit-scrollbar {
  display: none;
}
.traffic-ads-marquee:hover .traffic-ads-chips {
  animation-play-state: paused;
}

@keyframes ad-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.traffic-ad-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #4e485c;
  background: #221e2a;
  color: #e8e0d6;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s;
}
.traffic-ad-chip:hover,
.traffic-ad-chip.is-active {
  border-color: #f0c868;
  background: #2a3040;
}
.traffic-ad-chip .site {
  font-size: 9px;
  padding: 1px 4px;
  border-radius: 3px;
  background: #2a4060;
  color: #7ec8ff;
  font-weight: 700;
}
.traffic-ad-chip .name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.traffic-ad-chip .type {
  font-size: 9px;
  padding: 1px 4px;
  border-radius: 3px;
  background: #1e3048;
  color: #7ec8ff;
}
.traffic-ad-chip .wt {
  font-size: 9px;
  color: #a89e94;
}
.traffic-ad-chip .prov {
  font-size: 9px;
  padding: 1px 4px;
  border-radius: 3px;
  background: #2a2434;
  color: #f0c868;
}

.traffic-foot {
  flex-shrink: 0;
  padding: 4px 12px 8px;
  font-size: 11px;
  color: #6a6258;
  text-align: center;
}

@media (max-width: 960px) {
  .traffic-demo-page { height: auto; overflow: auto; }
  .traffic-stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(360px, 50vh) auto;
  }
  .traffic-map-wrap { min-height: 360px; }
  .traffic-main-title { font-size: 20px; letter-spacing: 0.08em; }
}
