@font-face {
  font-family: "Emblem";
  src: url("/static/fonts/emblem/Emblem.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

.portal-brand-en {
  font-family: "Emblem", "Trebuchet MS", "Arial Black", Arial, sans-serif;
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 2.5rem;
  font-weight: 200;
  line-height: 1;
}

.portal-service-about-logo {
  max-height: 4.5rem;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* 网站设置 → 灰色模式（www Header.twig: html.remember-theme.gray-mode） */
html.gray-mode {
  filter: grayscale(100%);
  -webkit-filter: grayscale(100%);
}

/* 首页横幅：Slick 脚本初始化前仅展示首张，避免刷新时多图叠闪 */
.portal-home-banner.js-slider:not(.slick-initialized) {
  overflow: hidden;
}

.portal-home-banner.js-slider:not(.slick-initialized) > div:not(:first-child) {
  display: none !important;
}

/* 关于我们：Planetary.js 旋转地球（无国界，自定义配色） */
.portal-about-globe-shell {
  cursor: move;
  touch-action: none;
  background: #f5f6f8;
}

html.dark .portal-about-globe-shell {
  background: #1b2634;
}

.portal-about-globe-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.portal-about-globe-label-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.portal-about-globe-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  padding: 0.12rem 0.4rem;
  border-radius: 0.25rem;
  color: var(--bs-primary);
  background-color: rgba(255, 255, 255, 0.78);
  box-shadow: 0 1px 4px rgba(20, 50, 90, 0.12);
  transition: opacity 0.15s ease;
}

html.dark .portal-about-globe-label {
  background-color: rgba(27, 38, 52, 0.82);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.portal-about-globe-recenter-btn {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background-color: rgba(41, 41, 41, 0.88);
  color: #fff;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease;
}

.portal-about-globe-recenter-btn:hover {
  background-color: rgba(41, 41, 41, 1);
}

html.dark .portal-about-globe-recenter-btn {
  background-color: rgba(255, 255, 255, 0.14);
}

html.dark .portal-about-globe-recenter-btn:hover {
  background-color: rgba(255, 255, 255, 0.22);
}
