/* Lazada 式：圆形国旗 + 下方站点名（display_name 去平台前缀），选中行浅灰底 */

.site-tabs-panel {
  position: fixed;
  top: 50%;
  right: 12px;
  width: 76px;
  max-height: calc(100vh - 120px);
  overflow: auto;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  z-index: 950;
  transform: translateY(-50%);
}

.site-tabs-title,
.site-tabs-subtitle {
  display: none;
}

.site-tablist {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.site-tab-btn {
  width: 100%;
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 8px 4px 6px;
  margin: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-primary, #0f172a);
  cursor: pointer;
  font: inherit;
  text-align: center;
  transition: background 0.15s ease;
  position: relative;
  box-shadow: none;
}

.site-tab-btn:hover {
  background: rgba(241, 245, 249, 0.9);
}

.site-tab-btn:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.55);
  outline-offset: 1px;
}

/* 选中：整行浅灰底（参考 Lazada 卖家后台侧栏） */
.site-tab-btn[aria-selected='true'] {
  background: rgba(241, 245, 249, 1);
  box-shadow: none;
  transform: none;
  z-index: 1;
}

.site-tab-flag {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  background: #f1f5f9;
}

.site-tab-flag-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-tab-flag-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  background: #e2e8f0;
}

.site-tab-label {
  width: 100%;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
  color: #64748b;
  word-break: break-word;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  max-height: 3.75em;
}

.site-tab-btn[aria-selected='true'] .site-tab-label {
  color: #334155;
  font-weight: 600;
}

.site-tab-dot {
  display: none;
}

.site-tabs-empty {
  padding: 10px 8px;
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text-secondary, #64748b);
  font-size: 12px;
}

@media (max-width: 980px) {
  .site-tabs-panel {
    display: none;
  }
}
