:root {
  --blue: #1c5f9f;
  --blue-hover: #164f87;
  --deep-blue: #0b365f;
  --red: #8b5d25;
  --gold: #b17a36;
  --bg: #edf2f6;
  --text: #17263a;
  --muted: #657286;
  --line: #dce4ec;
  --school-gold: #b17a36;
  --school-gold-deep: #8b5d25;
  --paper: #ffffff;
  --soft-blue: #f3f7fa;
  --gate-wordmark: url("../img/brand/xauat-gate-wordmark.png");
  --house-mark: var(--gate-wordmark);
  --campus-blueprint-elevation: url("../img/brand/xauat-main-building-linework.jpeg");
  --campus-abstract-side-rhythm: url("../img/brand/xauat-abstract-side-rhythm.svg");
  --campus-footer-panorama: url("../img/campus/xauat-yjs-campus-footer-panorama.png");
  --inner-hero-image: url("../img/campus/xauat-yjs-campus-customer-academic-building.png");
}

html {
  background: var(--bg);
}

body {
  min-width: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(28, 95, 159, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 95, 159, 0.025) 1px, transparent 1px),
    var(--bg);
  background-size: 48px 48px;
  font-family:
    "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: var(--text);
}

a:hover {
  color: var(--school-gold-deep);
}

a:focus-visible,
button:focus-visible {
  outline-color: var(--gold);
}

.wrap {
  width: min(1240px, calc(100% - 40px));
}

.top-line {
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--deep-blue) 0 74%,
    var(--school-gold) 74% 90%,
    #d7b878 90%
  );
}

.site-header {
  position: relative;
  z-index: 4;
  min-height: 128px;
  background: linear-gradient(
    100deg,
    rgba(5, 34, 61, 0.84),
    rgba(8, 48, 82, 0.7) 58%,
    rgba(8, 48, 82, 0.58)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(5px) saturate(0.9);
}

.site-header::before {
  left: auto;
  right: max(20px, calc((100vw - 1540px) / 2));
  width: clamp(350px, 27vw, 520px);
  background: linear-gradient(90deg, rgba(215, 184, 120, 0.45), rgba(255, 255, 255, 0.95));
  opacity: 0.2;
  -webkit-mask: var(--gate-wordmark) center / 100% auto no-repeat;
  mask: var(--gate-wordmark) center / 100% auto no-repeat;
}

.site-header::after {
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--school-gold) 0 18%,
    #d7b878 18% 26%,
    rgba(28, 95, 159, 0.18) 26% 100%
  );
}

.header-inner {
  min-height: 126px;
  grid-template-columns: 350px minmax(0, 1fr);
  column-gap: 48px;
  padding: 18px 0;
}

.brand,
.seal.wide-logo {
  width: 350px;
}

.brand {
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.24));
}

.seal.wide-logo {
  height: 72px;
}

.title-area {
  min-height: 86px;
  padding: 4px 0 4px 40px;
  align-items: flex-start;
  border-left: 1px solid rgba(215, 184, 120, 0.46);
  background: transparent;
}

.title-area::before {
  content: none;
}

.title-stack {
  width: 100%;
  text-align: left;
}

.title-stack::after {
  width: 128px;
  height: 2px;
  margin: 12px 0 0;
  background: linear-gradient(
    90deg,
    var(--school-gold),
    #d7b878 72%,
    transparent
  );
}

.title-eyebrow {
  margin-bottom: 7px;
  color: #e0bd7a;
  font-size: 11px;
  letter-spacing: 2.2px;
}

.project-title {
  color: #fff;
  font-family:
    "FZLanTingHeiS-DB-GB", "Source Han Sans SC", "Noto Sans CJK SC",
    "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 31px;
  font-weight: 900;
  letter-spacing: 0.065em;
  text-shadow: 0 3px 18px rgba(4, 26, 47, 0.38);
}

.project-title.project-title--long {
  font-size: clamp(22px, 1.2vw, 24px);
  line-height: 1.28;
  letter-spacing: 0.025em;
  white-space: normal;
}

.subtitle {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
}

.main-nav {
  z-index: 50;
  height: 64px;
  overflow: visible;
  background: rgba(7, 43, 76, 0.86);
  box-shadow: 0 12px 30px rgba(4, 26, 47, 0.26);
  backdrop-filter: blur(7px) saturate(0.9);
}

.main-nav::before {
  background: linear-gradient(
    90deg,
    rgba(5, 38, 69, 0.9),
    rgba(22, 79, 135, 0.84) 58%,
    rgba(28, 95, 159, 0.82)
  );
}

.main-nav::after {
  content: none;
}

.menu {
  height: 64px;
}

.menu-item {
  flex: 1 1 0;
  float: none;
  padding: 0;
}

.menu-item > a {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0 14px;
  border-right-color: rgba(255, 255, 255, 0.2);
  font-size: 17px;
  font-weight: 700;
  line-height: 64px;
  letter-spacing: 0.04em;
}

.menu-item.active,
.menu-item:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 -4px 0 var(--school-gold);
}

.sub-menu {
  top: 64px;
  z-index: 2000;
  background: rgba(255, 255, 255, 0.98);
  border-top: 3px solid var(--school-gold);
  box-shadow: 0 16px 32px rgba(11, 54, 95, 0.18);
}

.sub-menu a:hover {
  background: var(--deep-blue);
}

.campus-masthead {
  position: relative;
  z-index: 30;
  isolation: isolate;
  min-height: 460px;
  overflow: visible;
  background:
    linear-gradient(
      90deg,
      rgba(7, 39, 69, 0.24),
      rgba(7, 39, 69, 0.04) 62%,
      rgba(177, 122, 54, 0.08)
    ),
    var(--inner-hero-image) center 44% / cover no-repeat;
  border-bottom: 4px solid var(--school-gold);
}

.campus-masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(5, 33, 59, 0.42),
    rgba(5, 33, 59, 0.22) 58%,
    rgba(5, 33, 59, 0.04)
  );
  pointer-events: none;
}

.campus-masthead--home {
  background: var(--deep-blue);
}

.campus-masthead--inner {
  min-height: 0;
  background: var(--deep-blue);
}

.campus-masthead--inner::before {
  content: none;
}

.inner-hero-picture {
  position: relative;
  height: clamp(270px, 19vw, 320px);
  margin: 0;
  overflow: hidden;
  background: #183f61;
}

.inner-hero-picture::before {
  content: "";
  position: absolute;
  inset: -24px;
  background: var(--inner-hero-image) center / cover no-repeat;
  filter: blur(18px) saturate(0.75);
  opacity: 0.32;
  transform: scale(1.04);
}

.inner-hero-picture::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(8, 47, 84, 0.5), transparent 18%, transparent 82%, rgba(8, 47, 84, 0.5)),
    linear-gradient(180deg, rgba(8, 47, 84, 0.2), transparent 34%, rgba(8, 47, 84, 0.08));
  pointer-events: none;
}

.inner-hero-picture img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(88%, 1440px);
  height: 100%;
  margin: 0 auto;
  object-fit: cover;
  object-position: center 68%;
}

.campus-hero-gallery {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: 2.05fr 0.82fr 0.82fr;
  gap: 3px;
  background: var(--school-gold);
}

.campus-hero-gallery--single {
  display: block;
  background: var(--deep-blue);
}

.campus-hero-shot {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: var(--deep-blue);
}

.campus-hero-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 54, 95, 0.08),
    rgba(11, 54, 95, 0.18)
  );
  pointer-events: none;
}

.campus-hero-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.04);
}

.campus-hero-shot--panorama img {
  object-position: 42% 49%;
}

.campus-hero-shot--aerial img {
  object-position: 50% 56%;
}

.campus-hero-shot--building img {
  object-position: 50% 52%;
}

.campus-hero-shot--single {
  height: 100%;
}

.campus-hero-shot--single::after {
  background:
    linear-gradient(90deg, rgba(7, 39, 69, 0.08), transparent 24% 76%, rgba(7, 39, 69, 0.08)),
    linear-gradient(180deg, rgba(11, 54, 95, 0.02), rgba(11, 54, 95, 0.05));
}

.campus-hero-shot--single img {
  object-position: 50% 74%;
  filter: saturate(0.9) contrast(1.03) brightness(1.04);
}

.home-main {
  position: relative;
  isolation: isolate;
  padding: 44px 0 70px;
  background: transparent;
}

.home-main::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: -168px;
  z-index: 0;
  width: 100vw;
  transform: translateX(-50%);
  background-image: var(--campus-blueprint-elevation);
  background-position: calc(50% + 120px) bottom 2px;
  background-size: min(1680px, 92vw) auto;
  background-repeat: no-repeat;
  mix-blend-mode: multiply;
  opacity: 0.08;
  pointer-events: none;
}

.home-main::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: -168px;
  z-index: 0;
  width: 100vw;
  transform: translateX(-50%);
  background-image: var(--campus-abstract-side-rhythm);
  background-position: calc(50% + 80px) top;
  background-size: 100% 720px;
  background-repeat: repeat-y;
  pointer-events: none;
}

.home-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.home-board {
  position: relative;
  z-index: 1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.intro-card,
.home-panel {
  border: 1px solid rgba(11, 54, 95, 0.08);
  border-radius: 4px;
  box-shadow: 0 14px 34px rgba(11, 54, 95, 0.1);
  overflow: hidden;
}

.home-main .section-title {
  position: relative;
  height: 58px;
  background: linear-gradient(100deg, var(--deep-blue), var(--blue)) !important;
  box-shadow: inset 5px 0 0 var(--school-gold);
}

.section-title h2 {
  display: flex;
  align-items: center;
  margin-left: 22px;
  font-size: 20px;
  line-height: 58px;
  letter-spacing: 0.06em;
}

.section-title h2::before {
  content: "";
  flex: 0 0 78px;
  width: 78px;
  height: 29px;
  margin-right: 14px;
  background: #fff;
  opacity: 0.9;
  filter:
    drop-shadow(-0.4px 0 0 rgba(255, 255, 255, 0.82))
    drop-shadow(0.4px 0 0 rgba(255, 255, 255, 0.82))
    drop-shadow(0 0.4px 0 rgba(255, 255, 255, 0.72));
  -webkit-mask: var(--house-mark) center / 100% auto no-repeat;
  mask: var(--house-mark) center / 100% auto no-repeat;
}

.section-title a {
  margin-right: 21px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 58px;
}

.section-title a:hover {
  color: #fff;
}

.intro-body {
  grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  gap: 26px;
  align-items: center;
  min-height: 250px;
  padding: 28px;
}

.intro-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 2px;
}

.intro-text {
  color: #2a394c;
  font-size: 16px;
  font-weight: 500;
  line-height: 2;
  -webkit-line-clamp: 7;
  line-clamp: 7;
}

.side-links {
  margin: 14px 22px 17px;
}

.side-links a {
  height: 50px;
  color: var(--deep-blue);
  font-size: 16px;
  font-weight: 700;
  line-height: 50px;
}

.side-links a::before {
  background: var(--school-gold);
}

.side-links b,
.side-links a:nth-child(n) b {
  background: var(--school-gold-deep);
}

.side-links a:hover b,
.panel-links a:hover .link-icon {
  animation: none;
}

.panel-links {
  min-height: 300px;
  max-height: 300px;
  margin: 20px;
}

.panel-links a {
  min-height: 58px;
  margin-bottom: 12px;
  padding: 0 16px;
  border-left: 3px solid transparent;
  background: var(--soft-blue);
  color: var(--deep-blue);
  font-size: 16px;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.panel-links a:hover {
  transform: translateX(3px);
  border-left-color: var(--school-gold);
  background: #eaf1f6;
  color: var(--school-gold-deep);
}

.link-icon,
.home-board .home-panel:nth-child(n) .panel-links a:nth-child(n) .link-icon {
  flex: 0 0 40px;
  width: 42px;
  height: 40px;
  margin-right: 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(28, 95, 159, 0.22);
  border-radius: 50%;
  background: linear-gradient(145deg, #fff, #edf4f8);
  background-image: none;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.72);
  color: var(--blue);
  -webkit-mask: none;
  mask: none;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.link-icon svg {
  width: 23px;
  height: 23px;
  display: block;
  overflow: visible;
}

.panel-links a:hover .link-icon {
  border-color: rgba(177, 122, 54, 0.5);
  background: #fffaf2;
  color: var(--school-gold-deep);
}

.panel-links span:last-child {
  max-width: calc(100% - 56px);
  line-height: 58px;
}

.page-main,
.detail-main {
  min-height: 620px;
  margin-top: 34px;
  margin-bottom: 48px;
  border: 1px solid rgba(11, 54, 95, 0.08);
  border-top: 4px solid var(--deep-blue);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 38px rgba(11, 54, 95, 0.09);
}

.page-main {
  padding: 28px 30px 64px;
}

.detail-main {
  padding: 29px 58px 70px;
}

.layout {
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 42px;
}

.sidebar-title {
  height: 54px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: linear-gradient(100deg, var(--deep-blue), var(--blue));
  border-left: 5px solid var(--school-gold);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-title::before {
  content: "";
  flex: 0 0 62px;
  width: 62px;
  height: 25px;
  margin-right: 10px;
  background: #fff;
  opacity: 0.9;
  filter:
    drop-shadow(-0.4px 0 0 rgba(255, 255, 255, 0.82))
    drop-shadow(0.4px 0 0 rgba(255, 255, 255, 0.82));
  -webkit-mask: var(--house-mark) center / 100% auto no-repeat;
  mask: var(--house-mark) center / 100% auto no-repeat;
}

.sidebar-list {
  border-color: var(--line);
}

.sidebar-list a {
  min-height: 46px;
  padding: 13px 14px 13px 25px;
  border-bottom-color: var(--line);
  color: #3a4a5e;
}

.sidebar-list a.active,
.sidebar-list a:hover {
  background: #edf3f7;
  box-shadow: inset 4px 0 0 var(--school-gold);
  color: var(--deep-blue);
}

.content-head {
  height: 58px;
  border-bottom-color: var(--line);
}

.content-head h1 {
  height: 51px;
  display: flex;
  align-items: center;
  border-bottom: 3px solid var(--school-gold);
  color: var(--deep-blue);
  font-family:
    "Songti SC", STSong, "Noto Serif CJK SC", "Microsoft YaHei", serif;
  font-size: 21px;
  font-weight: 800;
  line-height: 51px;
  letter-spacing: 0.06em;
}

.content-head h1::before {
  content: "";
  flex: 0 0 76px;
  width: 76px;
  height: 28px;
  margin-right: 11px;
  background: var(--blue);
  opacity: 0.94;
  filter:
    drop-shadow(-0.5px 0 0 rgba(11, 54, 95, 0.68))
    drop-shadow(0.5px 0 0 rgba(11, 54, 95, 0.68));
  -webkit-mask: var(--house-mark) center / 100% auto no-repeat;
  mask: var(--house-mark) center / 100% auto no-repeat;
}

.breadcrumb {
  color: var(--muted);
}

.resource-headline h2,
.rich-content h2,
.rich-content h3 {
  color: var(--deep-blue);
}

.primary-link {
  border-radius: 2px;
  background: var(--blue);
}

.primary-link:hover {
  background: var(--school-gold-deep);
  color: #fff;
}

.resource-row.active,
.resource-row:hover {
  border-left: 3px solid var(--school-gold);
  background: #f1f6f9;
  color: var(--deep-blue);
}

.article h1 {
  color: var(--deep-blue);
  font-family:
    "Songti SC", STSong, "Noto Serif CJK SC", "Microsoft YaHei", serif;
  font-size: 27px;
  line-height: 1.55;
  letter-spacing: 0.04em;
}

.rich-content blockquote {
  border-left-color: var(--school-gold);
  background: #faf6ed;
  color: #614a2c;
}

.vector-horizon {
  position: relative;
  height: 195px;
  overflow: hidden;
  background: #e9eff3;
}

.vector-horizon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--campus-footer-panorama) center bottom / cover no-repeat;
  filter: saturate(0.42) contrast(0.9) brightness(1.03);
  opacity: 0.68;
}

.vector-horizon::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(233, 239, 243, 0.72) 0%,
      rgba(233, 239, 243, 0.16) 46%,
      rgba(11, 54, 95, 0.14) 100%
    ),
    linear-gradient(
      90deg,
      rgba(233, 239, 243, 0.34),
      transparent 16% 84%,
      rgba(233, 239, 243, 0.34)
    );
  pointer-events: none;
}

.site-footer {
  position: relative;
  background: linear-gradient(100deg, #082f54, #104976);
  border-top: 4px solid var(--school-gold);
}

.site-footer .wrap {
  padding: 33px 0 36px;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.67);
  font-size: 14px;
  line-height: 2;
}

@media (max-width: 1100px) {
  .site-header::before {
    right: 20px;
    width: min(380px, 42vw);
    opacity: 0.11;
  }

  .header-inner {
    grid-template-columns: 310px minmax(0, 1fr);
    column-gap: 30px;
  }

  .brand,
  .seal.wide-logo {
    width: 310px;
  }

  .seal.wide-logo {
    height: 64px;
  }

  .title-area {
    padding-left: 28px;
  }

  .project-title {
    font-size: 27px;
  }

  .project-title.project-title--long {
    font-size: 22px;
  }

  .title-eyebrow {
    letter-spacing: 1.4px;
  }

  .menu-item > a {
    padding: 0 8px;
    font-size: 15px;
  }

  .home-grid {
    grid-template-columns: 1fr;
  }

  .home-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-board .home-panel:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1320px) {
  .home-main::before {
    background-position: calc(50% + 64px) bottom 2px;
    background-size: 1180px auto;
    opacity: 0.07;
  }

  .home-main::after {
    background-position: calc(50% + 44px) top;
    background-size: 1320px 720px;
  }
}

@media (max-width: 760px) {
  .site-header::before {
    content: none;
  }

  .wrap {
    width: min(100% - 24px, 1240px);
    padding-left: 0;
    padding-right: 0;
  }

  .site-header {
    min-height: 0;
  }

  .header-inner {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 17px 0 16px;
  }

  .brand,
  .seal.wide-logo {
    width: min(310px, 100%);
  }

  .brand {
    justify-self: start;
  }

  .seal.wide-logo {
    max-width: 100%;
    height: auto;
    aspect-ratio: 397 / 81;
  }

  .title-area {
    min-height: 0;
    align-items: flex-start;
    padding: 10px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(215, 184, 120, 0.34);
  }

  .title-stack,
  .subtitle {
    text-align: left;
  }

  .title-area,
  .title-stack {
    min-width: 0;
  }

  .title-stack::after {
    margin-left: 0;
  }

  .title-eyebrow {
    font-size: 9px;
    letter-spacing: 0.08em;
  }

  .project-title {
    font-size: clamp(21px, 6.2vw, 25px);
    letter-spacing: 0.015em;
    white-space: normal;
    word-break: break-all;
  }

  .project-title.project-title--long {
    font-size: clamp(20px, 5.8vw, 24px);
    line-height: 1.35;
  }

  .subtitle {
    font-size: 13px;
  }

  .main-nav .wrap {
    width: 100%;
    max-width: 100%;
  }

  .main-nav {
    height: auto;
  }

  .menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: auto;
  }

  .menu-item {
    min-width: 0;
  }

  .menu-item > a {
    padding: 0 8px;
    font-size: 15px;
    line-height: 48px;
  }

  .sub-menu {
    top: 48px;
  }

  .campus-masthead {
    min-height: 520px;
    background-position: 54% center;
  }

  .campus-masthead--inner {
    min-height: 0;
  }

  .inner-hero-picture {
    height: 220px;
  }

  .inner-hero-picture img {
    width: 100%;
    object-position: center 64%;
  }

  .campus-hero-gallery {
    grid-template-columns: 2.15fr 0.85fr;
  }

  .campus-hero-shot--building {
    display: none;
  }

  .campus-hero-shot--panorama img {
    object-position: 40% 50%;
  }

  .campus-hero-shot--single img {
    object-position: 50% 56%;
  }

  .home-main {
    padding: 25px 0 40px;
  }

  .home-main::before,
  .home-main::after {
    content: none;
  }

  .vector-horizon {
    height: 72px;
  }

  .home-grid,
  .home-board {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .home-board .home-panel:last-child {
    grid-column: auto;
  }

  .section-title h2 {
    margin-left: 17px;
    font-size: 18px;
  }

  .section-title h2::before {
    flex-basis: 62px;
    width: 62px;
    height: 25px;
    margin-right: 9px;
  }

  .section-title a {
    margin-right: 14px;
    font-size: 12px;
  }

  .intro-body {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .intro-media {
    width: 100%;
    height: auto;
  }

  .panel-links {
    min-height: 0;
    max-height: none;
  }

  .page-main,
  .detail-main {
    width: min(100% - 24px, 1240px);
    margin-top: 24px;
    margin-bottom: 34px;
    padding: 19px 16px 42px;
  }

  .layout,
  .layout > section,
  [data-sidebar],
  .list-content,
  .resource-preview,
  .article,
  .article-content,
  [data-detail-content] {
    min-width: 0;
    max-width: 100%;
  }

  .layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .sidebar-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar-list a {
    min-width: 0;
    padding: 11px 12px;
    border-right: 1px solid var(--line);
    overflow-wrap: anywhere;
  }

  .sidebar-title {
    height: auto;
    min-height: 54px;
    padding-top: 11px;
    padding-bottom: 11px;
    white-space: nowrap;
    overflow: hidden;
  }

  .content-head {
    height: auto;
    display: block;
  }

  .content-head h1 {
    width: fit-content;
    max-width: 100%;
    height: auto;
    min-height: 51px;
    padding: 10px 0 9px;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .content-head h1::before {
    flex: 0 0 66px;
    width: 66px;
  }

  .breadcrumb {
    height: auto;
    padding: 8px 0 9px;
    overflow: visible;
    line-height: 1.7;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .resource-headline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: flex-start;
    gap: 12px;
  }

  .resource-headline > div {
    min-width: 0;
  }

  .resource-headline h2 {
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .resource-headline .primary-link {
    min-width: 72px;
    padding: 0 14px;
  }

  .resource-row {
    align-items: flex-start;
    gap: 12px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .resource-row span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .rich-content {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .rich-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }

  .article h1 {
    font-size: 23px;
    overflow-wrap: anywhere;
  }

  .article-meta {
    display: grid;
    gap: 5px;
  }

  .vector-horizon {
    height: 132px;
  }

  .vector-horizon::before {
    background-position: center 73%;
  }

  .site-footer .wrap {
    padding: 27px 12px 30px;
  }

  .site-footer p {
    font-size: 12px;
  }
}

@media (min-width: 761px) and (max-width: 959px) {
  .page-main,
  .detail-main {
    width: min(100% - 32px, 1240px);
    padding: 24px 24px 48px;
  }

  .layout,
  .layout > section,
  [data-sidebar],
  .list-content,
  .resource-preview,
  .article,
  .article-content,
  [data-detail-content] {
    min-width: 0;
    max-width: 100%;
  }

  .layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .sidebar-title {
    height: auto;
    min-height: 54px;
    padding-top: 11px;
    padding-bottom: 11px;
    overflow-wrap: anywhere;
  }

  .sidebar-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sidebar-list a {
    min-width: 0;
    padding: 11px 14px;
    border-right: 1px solid var(--line);
    overflow-wrap: anywhere;
  }

  .content-head {
    height: auto;
    display: block;
  }

  .content-head h1 {
    width: fit-content;
    max-width: 100%;
    height: auto;
    min-height: 51px;
    padding: 10px 0 9px;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .content-head h1::before {
    flex: 0 0 66px;
    width: 66px;
  }

  .breadcrumb {
    height: auto;
    padding: 8px 0 9px;
    overflow: visible;
    line-height: 1.7;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .resource-headline > div,
  .resource-row span,
  .rich-content {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .rich-content {
    max-width: 100%;
  }

  .rich-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }
}

@media (max-width: 480px) {
  .sidebar-list {
    grid-template-columns: 1fr;
  }

  .sidebar-list a {
    border-right: 0;
  }

  .pdf-reader-toolbar {
    padding: 0 4px;
  }

  .pdf-reader-toolbar-center {
    gap: 3px;
  }

  .pdf-reader-page-status {
    min-width: 68px;
    padding: 0 4px;
    font-size: 12px;
  }

  .pdf-reader-page-input {
    width: 26px;
  }

  .pdf-reader-button {
    width: 26px;
    min-height: 28px;
    font-size: 16px;
  }

  .pdf-reader-zoom {
    min-width: 42px;
    padding: 0 4px;
    font-size: 12px;
  }

  .pdf-reader-toolbar-divider {
    height: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .panel-links a {
    transition: none;
  }
}
