/* 全站目录和列表页共用的固定标题区。页面不得单独改写宽高或返回键尺寸。 */
.directory-page-shell {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 36px 34px 64px;
}

.directory-hero {
  position: relative;
  display: flex;
  align-items: center;
  height: 200px;
  min-height: 200px;
  max-height: 200px;
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(128deg, #152b4c 0%, #0d1b31 58%, #14253a 100%);
}

.directory-hero::before {
  position: absolute;
  inset: 0;
  content: '';
  pointer-events: none;
  background: radial-gradient(circle at 78% 24%, rgba(59, 130, 246, .30), transparent 30%);
}

.directory-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-start;
  width: 100%;
  padding: 0 32px;
}

.directory-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: auto;
  min-width: 0;
}

.directory-hero .directory-hero__kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: 55px;
  margin-bottom: 12px;
  color: #fff !important;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 1.7px;
}

.directory-hero__kicker::before {
  display: block;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  content: '';
}

.directory-hero__heading-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
}

.directory-hero__title-stack { min-width: 0; text-align: left; }

.directory-hero .directory-hero__title {
  margin: 0;
  color: #fff !important;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 1px;
  text-shadow: 0 1px 5px rgba(4, 18, 40, .24);
}

html[data-ru-theme="light"] .directory-hero .directory-hero__title {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.directory-hero .directory-hero__subtitle {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, .85) !important;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 1px;
  text-shadow: 0 1px 5px rgba(4, 18, 40, .24);
}

html[data-ru-theme="light"] .directory-hero .directory-hero__subtitle {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.directory-hero__back {
  display: flex;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 11px;
  background: #fff;
  color: #0d1b31;
  text-decoration: none;
  transition: background .18s, color .18s, transform .18s;
}

.directory-hero__back svg {
  display: block;
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.directory-hero__back:hover { background: var(--brand-wash,#E9EFFC); color: #1E4CBB; transform: translateX(-2px); }
.directory-hero__back:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media (max-width: 900px) {
  .directory-page-shell { padding: 36px 18px 44px; }
  .directory-hero__content { padding: 0 20px; }
  .directory-hero__title { font-size: 24px; }
}

@media (max-width: 700px) {
  .directory-page-shell { padding: 14px 12px 44px; }
  .directory-hero { height: 190px; min-height: 190px; max-height: 190px; }
  .directory-hero__kicker { margin-left: 46px; }
  .directory-hero__heading-row { gap: 10px; }
  .directory-hero__back { flex-basis: 36px; width: 36px; min-width: 36px; max-width: 36px; height: 36px; min-height: 36px; max-height: 36px; }
  .directory-hero__back svg { width: 21px; height: 21px; }
  .directory-hero__subtitle { font-size: 12px; letter-spacing: 0; }
  .directory-hero__kicker { margin-bottom: 9px; font-size: 10px; letter-spacing: 1.2px; }
}
