/**
 * 办公地点 — office location tabs (shortcode: [fsc_office_locations])
 */
.fsc-office-loc {
  --fsc-ol-max: min(1180px, calc(100% - 32px));
  --fsc-ol-orange: #f3984d;
  --fsc-ol-line: #e8e8e8;
  --fsc-ol-muted: #6b6b6b;
  --fsc-ol-text: #1a1a1a;
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #fff;
  padding: clamp(28px, 4vw, 48px) 0;
  color: var(--fsc-ol-text);
}

.fsc-office-loc__inner {
  width: 100%;
  max-width: var(--fsc-ol-max);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.fsc-office-loc__title {
  margin: 0 0 clamp(20px, 3vw, 28px);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

/* Tab row + baseline */
.fsc-office-loc__tabs-wrap {
  position: relative;
  border-bottom: 1px solid var(--fsc-ol-line);
}

.fsc-office-loc__tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(8px, 2vw, 28px);
  list-style: none;
  margin: 0;
  padding: 0 0 12px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.fsc-office-loc__tabs::-webkit-scrollbar {
  height: 4px;
}

.fsc-office-loc__tab {
  flex: 0 0 auto;
  position: relative;
  padding: 10px 4px 2px;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  font-weight: 400;
  color: #888;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.fsc-office-loc__tab:hover {
  color: #444;
}

.fsc-office-loc__tab:focus-visible {
  outline: 2px solid var(--fsc-ol-orange);
  outline-offset: 4px;
  border-radius: 2px;
}

.fsc-office-loc__tab.is-active {
  color: var(--fsc-ol-text);
  font-weight: 700;
}

/* Orange bar above active tab label */
.fsc-office-loc__tab.is-active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  background: var(--fsc-ol-orange);
  border-radius: 2px;
}

/* Panels */
.fsc-office-loc__panels {
  padding-top: clamp(20px, 3vw, 32px);
}

.fsc-office-loc__panel {
  display: none;
}

.fsc-office-loc__panel.is-active {
  display: block;
  animation: fsc-ol-fade 0.28s ease;
}

@keyframes fsc-ol-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fsc-office-loc__place {
  margin-bottom: clamp(20px, 3vw, 28px);
}

.fsc-office-loc__place:last-child {
  margin-bottom: 0;
}

.fsc-office-loc__name {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.fsc-office-loc__address {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--fsc-ol-muted);
}
