:root {
  --header-brand-text: #172B4D;
  --header-page-text: #315B8A;
  --header-divider: #D7E0EA;
}

/* 首次自适应完成前隐藏固定画布，避免页面先按 1920×1080 闪现后再缩放。 */
html,
body {
  min-width: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.canvas {
  visibility: hidden !important;
}

.canvas.viewport-fit-ready {
  visibility: visible !important;
}

.global-titlebar {
  position: absolute !important;
  inset: auto !important;
  left: 18px !important;
  top: 6px !important;
  width: 1884px !important;
  height: 70px !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 24px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, .94) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  overflow: hidden !important;
}

.global-titlebar::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 480px;
  bottom: 0;
  width: 310px;
  height: 58px;
  background: url("./文旅集团-统一标题栏装饰.svg") center bottom / contain no-repeat;
  opacity: .42;
  pointer-events: none;
}

.global-titlebar .brand,
.global-titlebar .brand-lockup {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
  min-width: 0 !important;
  height: 100% !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

.global-titlebar .brand::before,
.global-titlebar .brand-lockup::before {
  content: "";
  width: 52px;
  height: 52px;
  margin-right: 12px;
  flex: 0 0 auto;
  background: url("./文旅集团-统一Logo.svg") center / contain no-repeat;
}

.global-titlebar .brand > .logo,
.global-titlebar .brand > .brand-logo,
.global-titlebar .brand > .brand-mark,
.global-titlebar .brand > .finance-brand-logo,
.global-titlebar .brand-lockup > .logo,
.global-titlebar .brand-lockup > .brand-logo,
.global-titlebar .brand-lockup > .brand-mark,
.global-titlebar .brand-lockup > .finance-brand-logo {
  display: none !important;
}

.global-titlebar .brand-name {
  margin: 0 !important;
  color: var(--header-brand-text) !important;
  font-size: 26px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
}

.global-titlebar .divider,
.global-titlebar .brand-divider {
  display: none !important;
}

.global-titlebar .page-title {
  position: relative !important;
  margin: 0 0 0 41px !important;
  padding-left: 0 !important;
  border-left: 0 !important;
  color: var(--header-page-text) !important;
  font-size: 22px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
}

.global-titlebar .page-title::before {
  content: "";
  position: absolute;
  left: -21px;
  top: 50%;
  width: 1px;
  height: 24px;
  background: var(--header-divider);
  transform: translateY(-50%);
}

.global-titlebar > .skyline,
.global-titlebar > .header-decoration {
  display: none !important;
}

.global-titlebar .filters,
.global-titlebar .header-controls {
  position: absolute !important;
  z-index: 4 !important;
  left: auto !important;
  right: 24px !important;
  top: 13px !important;
  width: 1048px !important;
  height: 44px !important;
  margin: 0 !important;
  display: grid !important;
  grid-template-columns: 330px 140px 130px 190px 92px 86px !important;
  gap: 16px !important;
  align-items: center !important;
  color: #273A55 !important;
  font-size: 14px !important;
  white-space: nowrap !important;
}

.global-titlebar:has(#data-filter) .filters {
  grid-template-columns: 330px 180px 150px 150px 72px 86px !important;
}

.global-titlebar:has(.brand-lockup) .filters,
.global-titlebar:has(.filter-control[aria-label="选择单位口径"]) .filters {
  grid-template-columns: 330px 130px 120px 160px 142px 86px !important;
}

.global-titlebar .filter-label,
.global-titlebar .control-label {
  height: 44px !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  min-width: 0 !important;
  font-weight: 500 !important;
}

.global-titlebar select {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  height: 42px !important;
  box-sizing: border-box !important;
}

.global-titlebar select[aria-label="期间"] {
  padding-right: 30px !important;
}

.global-titlebar .filter-control {
  width: 100% !important;
  height: 42px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.global-titlebar .unit-label,
.global-titlebar .header-unit {
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* 部分高密度单文件页面把原样式写在 link 之后，用更高 specificity 保证统一规范生效。 */
html body .global-titlebar {
  left: 18px !important;
  top: 6px !important;
  width: 1884px !important;
  height: 70px !important;
  padding: 0 24px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, .94) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html body .global-titlebar .filters,
html body .global-titlebar .header-controls {
  top: 13px !important;
  grid-template-columns: 330px 140px 130px 190px 92px 86px !important;
}

html body .global-titlebar:has(#data-filter) .filters {
  grid-template-columns: 330px 180px 150px 150px 72px 86px !important;
}

html body .global-titlebar:has(.brand-lockup) .filters,
html body .global-titlebar:has(.filter-control[aria-label="选择单位口径"]) .filters {
  grid-template-columns: 330px 130px 120px 160px 142px 86px !important;
}

html body .global-titlebar .filter-label,
html body .global-titlebar .control-label {
  height: 44px !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  min-width: 0 !important;
}

html body .global-titlebar select {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  height: 42px !important;
}

html body .global-titlebar .unit-label,
html body .global-titlebar .header-unit {
  height: 44px !important;
}
