.site-shell{
  overflow: visible;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0) 34%), linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.84) 100%);
}
.dictionary-replica,
.dictionary-detail-page {
  color: #1b2c50;
}

.dictionary-bg,
.dictionary-detail-bg {
  position: relative;
  overflow: hidden;
  min-height: 860px;
  padding: 136px 0 132px;
}

.dictionary-replica--index .dictionary-bg {
  overflow: visible;
}

.dictionary-detail-page .dictionary-detail-bg {
  overflow: visible;
}

.dictionary-index-shell,
.dictionary-detail-bg .container {
  position: relative;
  z-index: 1;
}

.dictionary-title {
  margin: 0;
  font-size: 48px;
  line-height: 1.5;
  font-weight: 800;
  color: #1b2c50;
  letter-spacing: 2px;
  text-align: center;
}

.dictionary-search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(760px, 64%);
  min-height: 60px;
  margin: 58px auto 0;
  padding: 5px 5px 5px 24px;
  border: 1px solid rgba(225, 236, 248, 0.8);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(45, 90, 255, 0.08);
}

.dictionary-search__icon {
  display: flex;
  width: 22px;
  height: 22px;
  color: #8892af;
  flex: 0 0 auto;
}

.dictionary-search__icon svg {
  width: 100%;
  height: 100%;
}

.dictionary-search input {
  min-width: 0;
  flex: 1;
  height: 48px;
  margin: 0 12px;
  border: 0;
  outline: 0;
  color: #1b2c50;
  font-size: 16px;
  background: transparent;
}

.dictionary-search input::placeholder {
  color: #9aa4bd;
}

.dictionary-search .submit {
  width: 150px;
  min-height: 50px;
  border: 1px solid rgba(10, 99, 230, 0.08);
  border-radius: 54px;
  background: linear-gradient(135deg, #1768ff, #0f48c7 68%, #133891);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  box-shadow:
    0 18px 34px rgba(23, 104, 255, 0.22),
    0 0 0 1px rgba(105, 227, 255, 0.16) inset;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dictionary-search .submit:hover {
  transform: translateY(-1px);
  box-shadow:
    0 22px 38px rgba(23, 104, 255, 0.28),
    0 0 22px rgba(105, 227, 255, 0.22),
    0 0 0 1px rgba(105, 227, 255, 0.2) inset;
}

.dictionary-search .search-result {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  display: none;
  width: 100%;
  padding: 28px 0;
  border: 1px solid #eaecf6;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 30px rgba(27, 44, 80, 0.12);
  z-index: 5;
}

.dictionary-search .search-result.is-open {
  display: block;
}

.dictionary-search .result-title {
  margin: 0;
  padding: 0 22px;
  color: #1b2c50;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 800;
}

.dictionary-search .result-title span {
  color: #2d5aff;
}

.dictionary-search .scroll-box {
  max-height: 420px;
  margin-top: 18px;
  padding: 0 22px;
  overflow: auto;
}

.dictionary-search .result-item {
  display: block;
  padding: 15px 18px;
  border-radius: 8px;
  background: #f5f7fa;
  transition: background 0.18s ease, transform 0.18s ease;
}

.dictionary-search .result-item:hover {
  background: #eef3ff;
}

.dictionary-search .result-item + .result-item {
  margin-top: 6px;
}

.dictionary-search .result-item-title {
  margin: 0;
  color: #2d5aff;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 800;
}

.dictionary-search .result-item-anchor,
.dictionary-search .result-item-content {
  margin: 8px 0 0;
  color: #48536b;
  font-size: 14px;
  line-height: 1.55;
}

.dictionary-search .result-item-content {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.dictionary-search .no-result {
  display: none;
  padding: 16px 20px 2px;
  color: #48536b;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.dictionary-search .search-result.is-empty .result-title,
.dictionary-search .search-result.is-empty .scroll-box {
  display: none;
}

.dictionary-search .search-result.is-empty .no-result {
  display: block;
}

.dictionary-list {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 40px;
  max-width: 1080px;
  margin: 98px auto 0;
}

.dictionary-list .anchor-box {
  position: sticky;
  top: calc(var(--header-height, 96px) + 28px);
  align-self: start;
}

.dictionary-list .anchor {
  display: grid;
  grid-template-columns: repeat(2, 28px);
  gap: 4px 10px;
  color: #8892af;
  text-align: center;
}

.dictionary-list .item-a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #8892af;
  font-size: 14px;
  line-height: 28px;
  transition: color 0.18s ease, background 0.18s ease;
}

.dictionary-list .item-a:hover,
.dictionary-list .item-a.active {
  color: #2d5aff;
  background: rgba(45, 90, 255, 0.08);
  font-weight: 800;
}

.dictionary-list .list {
  flex: 1;
  min-width: 0;
}

.dictionary-item {
  scroll-margin-top: 148px;
}

.dictionary-item + .dictionary-item {
  margin-top: 40px;
}

.dictionary-item .title {
  margin: 0 0 20px;
  color: #1b2c50;
  font-size: 24px;
  line-height: 36px;
  font-weight: 800;
}

.dictionary-item-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 18px 28px;
  border: 1px solid #ffffff;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(170, 188, 255, 0.12);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.dictionary-item-list:hover {
  transform: translateY(-2px);
  border-color: #ffffff;
  box-shadow: 0 18px 34px rgba(170, 188, 255, 0.18);
}

.dictionary-item-list .item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 6px;
  min-width: 0;
  min-height: 64px;
  padding: 16px 0;
}

.dictionary-item-list .item + .item {
  border-top: 1px solid rgba(225, 236, 248, 0.9);
}

.dictionary-item-list .item::before {
  content: none;
  display: none;
}

.dictionary-item-list .item__title {
  overflow: hidden;
  color: #1b2c50;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dictionary-item-list .item__summary {
  display: -webkit-box;
  overflow: hidden;
  color: #59667d;
  font-size: 13px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.dictionary-detail-bg {
  padding-top: 68px;
}

.dictionary-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
  color: #71809b;
  font-size: 14px;
}

.dictionary-breadcrumb a:hover {
  color: #2d5aff;
}

.dictionary-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}

.dictionary-detail-article {
  min-width: 0;
  border: 1px solid rgba(225, 236, 248, 0.96);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(27, 44, 80, 0.07);
  overflow: hidden;
}

.dictionary-side-card {
  border: 1px solid rgba(225, 236, 248, 0.96);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(27, 44, 80, 0.07);
}

.dictionary-detail-hero {
  padding: 36px;
}

.dictionary-detail-hero h1 {
  margin: 18px 0 14px;
  color: #1b2c50;
  font-size: 44px;
  line-height: 1.16;
  font-weight: 800;
}

.dictionary-detail-hero p {
  max-width: 760px;
  margin: 0;
  color: #48536b;
  font-size: 17px;
  line-height: 1.9;
}

.dictionary-detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  color: #53627d;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}

.dictionary-detail-meta span,
.dictionary-detail-meta time {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f6f8fe;
  color: #53627d;
}

.dictionary-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.dictionary-detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f3f6ff;
  color: #3658e2;
  font-size: 13px;
  font-weight: 700;
}

.dictionary-detail-content {
  padding: 34px 38px;
  border-top: 1px solid rgba(225, 236, 248, 0.96);
}

.dictionary-content-section + .dictionary-content-section {
  margin-top: 36px;
}

.dictionary-detail-content h2,
.dictionary-detail-content h3 {
  scroll-margin-top: 148px;
  color: #1b2c50;
  font-weight: 800;
}

.dictionary-detail-content h2 {
  margin: 0 0 16px;
  font-size: 28px;
  line-height: 1.35;
}

.dictionary-detail-content h3 {
  margin: 22px 0 10px;
  font-size: 20px;
  line-height: 1.45;
}

.dictionary-detail-content p,
.dictionary-detail-content li {
  color: #48536b;
  font-size: 16px;
  line-height: 1.92;
}

.dictionary-detail-content p {
  margin: 0 0 14px;
}

.dictionary-detail-content p:last-child {
  margin-bottom: 0;
}

.dictionary-detail-content ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dictionary-detail-content li {
  position: relative;
  padding-left: 18px;
}

.dictionary-detail-content li::before {
  content: '';
  position: absolute;
  top: 0.82em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #2d5aff;
}

.dictionary-detail-content button {
  min-width: 120px;
  line-height: 36px;
  background: #2d5aff;
  border-radius: 18px;
  padding: 0 1.5em;
  border: none;
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
}
.dictionary-detail-content button a{
  color: #fff;
  text-decoration: none;
}

.dictionary-detail-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 20px;
  border-top: 1px solid rgba(225, 236, 248, 0.96);
}

.dictionary-detail-sidebar {
  position: sticky;
  top: calc(var(--header-height, 96px) + 18px);
  display: grid;
  gap: 16px;
}

.dictionary-side-card {
  padding: 22px;
}

.dictionary-register-card {
  display: grid;
  gap: 14px;
  background: linear-gradient(135deg, #1b2c50 0%, #2d5aff 100%);
  color: #ffffff;
}

.dictionary-register-card span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 700;
}

.dictionary-register-card strong {
  font-size: 20px;
  line-height: 1.45;
}

.dictionary-register-card .button {
  justify-self: start;
  background: #ffffff;
  color: #2d5aff;
}

.dictionary-side-card h2 {
  margin: 0 0 16px;
  color: #1b2c50;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 800;
}

.dictionary-outline nav {
  display: grid;
  gap: 4px;
}

.dictionary-outline__link {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  color: #5e6b83;
  font-size: 14px;
  line-height: 1.45;
  transition: background 0.18s ease, color 0.18s ease;
}

.dictionary-outline__link--h3 {
  padding-left: 22px;
  font-size: 13px;
}

.dictionary-outline__link:hover,
.dictionary-outline__link.active {
  background: #f3f6ff;
  color: #2d5aff;
  font-weight: 800;
}

.dictionary-related {
  display: grid;
  gap: 10px;
}

.dictionary-related a {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  background: #f6f8fc;
  transition: background 0.18s ease, transform 0.18s ease;
}

.dictionary-related a:hover {
  background: #eef3ff;
  transform: translateX(2px);
}

.dictionary-related span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #ffffff;
  color: #2d5aff;
  font-size: 13px;
  font-weight: 800;
}

.dictionary-related strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #1b2c50;
  font-size: 14px;
}

@media (max-width: 1100px) {
  .dictionary-search {
    width: min(820px, 82%);
  }

  .dictionary-detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .dictionary-detail-sidebar {
    position: static;
    /* grid-template-columns: repeat(2, minmax(0, 1fr)); */
  }

  .dictionary-outline {
    /* grid-column: 1 / -1; */
    display: none;
  
  }
}

@media (max-width: 860px) {
  .dictionary-bg,
  .dictionary-detail-bg {
    min-height: 0;
    padding: 104px 0 70px;
  }

  .dictionary-detail-bg {
    padding-top: 68px;
  }

  .dictionary-title {
    font-size: 34px;
    letter-spacing: 0;
  }

  .dictionary-search {
    display: none;
  }

  .dictionary-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-top: 58px;
  }

  .dictionary-list .anchor-box {
    display: none;
  }

  .dictionary-list .list {
    grid-column: 1 / -1;
    width: 100%;
  }

  .dictionary-item + .dictionary-item {
    margin-top: 22px;
  }

  .dictionary-item .title {
    margin-bottom: 10px;
  }

  .dictionary-item-list {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px 26px;
    border-radius: 24px;
  }

  .dictionary-item-list .item {
    min-height: 0;
  }

  .dictionary-detail-hero {
    padding: 26px;
  }

  .dictionary-detail-hero h1 {
    font-size: 34px;
  }

  .dictionary-detail-hero p,
  .dictionary-detail-content p,
  .dictionary-detail-content li {
    font-size: 15px;
  }

  .dictionary-detail-content {
    padding: 26px;
  }

  .dictionary-detail-content h2 {
    font-size: 23px;
  }

  .dictionary-detail-sidebar {
    grid-template-columns: minmax(0, 1fr);
  }
}


@media (max-width: 560px) {
  .dictionary-bg,
  .dictionary-detail-bg {
    padding-top: 92px;
  }

  .dictionary-detail-bg {
    padding-top: 68px;
  }

  .dictionary-title {
    font-size: 30px;
  }

  .dictionary-detail-tags {
    gap: 8px;
  }

  .dictionary-detail-bottom .button {
    width: 100%;
  }
}
