/* Site-wide side dock — China Toolkit + Sourcing Needs */
.voc-side-dock {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 9985;
  transform: translateY(-50%);
  display: flex;
  align-items: stretch;
  font-family: var(--voc-font, "Poppins", system-ui, sans-serif);
  pointer-events: none;
}

.voc-side-dock * {
  pointer-events: auto;
}

.voc-side-dock__tabs {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.35rem 0;
}

.voc-side-dock__tab {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  border: none;
  border-radius: 12px 0 0 12px;
  padding: 1rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  color: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s;
  box-shadow: -4px 4px 20px rgba(15, 23, 42, 0.12);
}

.voc-side-dock__tab--toolkit {
  background: linear-gradient(180deg, #0369a1, #0ea5e9);
}

.voc-side-dock__tab--sourcing {
  background: linear-gradient(180deg, #0c4a6e, #0284c7);
}

.voc-side-dock__tab--logistics {
  background: linear-gradient(180deg, #0f766e, #14b8a6);
}

.voc-side-dock__tab.is-active,
.voc-side-dock__tab:hover {
  transform: rotate(180deg) translateX(-4px);
  box-shadow: -8px 8px 28px rgba(14, 165, 233, 0.35);
}

.voc-side-dock__panel {
  width: 0;
  max-height: min(88vh, 640px);
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-right: none;
  border-radius: 16px 0 0 16px;
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.12);
  opacity: 0;
  visibility: hidden;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s, visibility 0.3s;
  display: flex;
  flex-direction: column;
}

.voc-side-dock__panel.is-open {
  width: min(340px, calc(100vw - 56px));
  opacity: 1;
  visibility: visible;
}

.voc-side-dock__head {
  padding: 1rem 1.1rem;
  background: linear-gradient(135deg, #0c4a6e, #0ea5e9);
  color: #fff;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  flex-shrink: 0;
}

.voc-side-dock__head h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.3;
}

.voc-side-dock__head p {
  margin: 0.25rem 0 0;
  font-size: 0.72rem;
  opacity: 0.9;
}

.voc-side-dock__close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.voc-side-dock__body {
  padding: 1rem 1.1rem 1.25rem;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.voc-side-dock__block {
  margin-bottom: 1.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid #f1f5f9;
}

.voc-side-dock__block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.voc-side-dock__block h4 {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0369a1;
  margin: 0 0 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.voc-side-dock__block h4 i {
  font-size: 0.85rem;
}

.voc-side-dock label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
  display: block;
}

.voc-side-dock .form-control,
.voc-side-dock select,
.voc-side-dock textarea {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  font-family: inherit;
}

.voc-side-dock textarea {
  min-height: 72px;
  resize: vertical;
}

.voc-side-dock__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: none;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.voc-side-dock__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.35);
  color: #fff;
}

.voc-side-dock__btn--ghost {
  background: #f1f5f9;
  color: #334155;
  margin-top: 0.35rem;
}

.voc-side-dock__result {
  font-size: 0.85rem;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  margin-top: 0.35rem;
  min-height: 2.5rem;
  line-height: 1.5;
  color: #0f172a;
}

.voc-side-dock__result.is-loading {
  color: #64748b;
  font-style: italic;
}

.voc-trans-output__text[lang="zh-CN"] {
  font-size: 1.05rem;
  line-height: 1.65;
  letter-spacing: 0.02em;
}

.voc-trans-speak {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #0d9488, #0284c7);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.voc-trans-speak:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}

.voc-trans-speak.is-speaking {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.voc-trans-speak-hint {
  font-size: 0.72rem;
  color: #64748b;
  margin: 0.4rem 0 0;
  line-height: 1.45;
  text-align: center;
}

.voc-side-dock__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.voc-side-dock__links li {
  margin-bottom: 0.35rem;
}

.voc-side-dock__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.voc-side-dock__links a:hover {
  background: #e0f2fe;
  color: #0369a1;
}

.voc-side-dock__hack {
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 0.5rem;
  padding-left: 1rem;
  position: relative;
}

.voc-side-dock__hack::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #0ea5e9;
  font-weight: bold;
}

.voc-side-dock__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.voc-side-dock__cat {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  background: #f1f5f9;
  border-radius: 50px;
  color: #475569;
  text-decoration: none;
  border: 1px solid #e2e8f0;
}

.voc-side-dock__cat:hover {
  background: #0ea5e9;
  color: #fff;
  border-color: #0ea5e9;
}

body.voc-side-dock-open {
  overflow-x: hidden;
}

@media (max-width: 991px) {
  .voc-side-dock {
    top: auto;
    bottom: 5.5rem;
    transform: none;
    flex-direction: column-reverse;
    align-items: flex-end;
  }

  .voc-side-dock__tabs {
    flex-direction: row;
    padding: 0 0.35rem;
  }

  .voc-side-dock__tab {
    writing-mode: horizontal-tb;
    transform: none;
    border-radius: 12px 12px 0 0;
    padding: 0.55rem 0.85rem;
    font-size: 0.68rem;
  }

  .voc-side-dock__tab.is-active,
  .voc-side-dock__tab:hover {
    transform: translateY(-3px);
  }

  .voc-side-dock__panel {
    border-radius: 16px 16px 0 0;
    border-right: 1px solid #e2e8f0;
    max-height: 70vh;
  }

  .voc-side-dock__panel.is-open {
    width: min(340px, calc(100vw - 1rem));
  }
}

/* Travel A→B result */
.voc-travel-result__route {
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.voc-travel-result__dist {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
}

.voc-travel-tips {
  list-style: none;
  padding: 0;
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
}

.voc-travel-tips li {
  margin-bottom: 0.45rem;
  padding-left: 0;
}

.voc-travel-tips strong {
  color: #0369a1;
}

.voc-travel-map-wrap {
  margin: 0.65rem 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #bae6fd;
  background: #f8fafc;
}

.voc-travel-map-wrap[hidden] {
  display: none !important;
}

.voc-travel-map {
  width: 100%;
  height: 180px;
  border: none;
  display: block;
}

.voc-travel-map-wrap .voc-side-dock__btn {
  margin: 0;
  border-radius: 0;
}

/* China city sourcing profile */
.voc-city-profile__card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.75rem;
  margin-top: 0.5rem;
}

.voc-city-profile__card h5 {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0c4a6e;
  margin: 0 0 0.5rem;
}

.voc-city-profile__card p,
.voc-city-profile__card ul {
  font-size: 0.78rem;
  color: #475569;
  margin: 0 0 0.45rem;
  line-height: 1.5;
}

.voc-city-profile__card ul {
  padding-left: 1.1rem;
}

.voc-city-profile__tip {
  font-size: 0.75rem !important;
  background: #f0f9ff;
  border-radius: 8px;
  padding: 0.5rem !important;
  margin-top: 0.5rem !important;
}

/* Dock logistics / transit */
.voc-dock-transit-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.voc-dock-transit-tab {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  color: #64748b;
  transition: all 0.2s;
}

.voc-dock-transit-tab.active {
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
  color: #fff;
  border-color: transparent;
}

.voc-dock-transit-placeholder {
  text-align: center;
  padding: 1rem 0.5rem;
  color: #94a3b8;
  font-size: 0.8rem;
}

.voc-dock-transit-placeholder i {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.35rem;
  opacity: 0.4;
}

.voc-dock-transit-result {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 0.75rem;
  margin-top: 0.5rem;
  animation: vocDockFade 0.35s ease;
}

@keyframes vocDockFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.voc-dock-transit-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  text-align: center;
}

.voc-dock-transit-route span {
  flex: 1;
  line-height: 1.3;
}

.voc-dock-transit-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  text-align: center;
}

.voc-dock-transit-stats strong {
  display: block;
  font-size: 1.25rem;
  color: #0369a1;
  line-height: 1.2;
}

.voc-dock-transit-stats small {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  font-weight: 700;
}

.voc-dock-transit-note {
  font-size: 0.68rem;
  color: #64748b;
  margin: 0.5rem 0 0;
}
