*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

ul[class],
ol[class] {
  list-style: none;
  padding: 0;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
}

:root {
  --color-primary: #1E3A5F;
  --color-gold: #C9A227;
  --color-red: #C0392B;
  --color-teal: #0E4D64;
  --color-purple: #4A3B68;
  --color-bg: #F7F4ED;
  --color-beige: #E8DCC4;
  --color-footer: #102030;
  --color-ink: #2B3542;
  --color-muted: #5B6675;
  --color-white: #FFFFFF;
  --font-title: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, "Segoe UI", sans-serif;
  --font-accent: "DIN Condensed", "Bahnschrift Condensed", "Arial Narrow", "Roboto Mono", Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-lg: 0 16px 40px rgba(16, 32, 48, 0.14);
  --shadow-sm: 0 6px 18px rgba(16, 32, 48, 0.08);
  --header-h: 78px;
  --content-w: 1240px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.02em;
  color: var(--color-ink);
  background-color: var(--color-bg);
  background-image: repeating-linear-gradient(135deg, rgba(30, 58, 95, 0.032) 0 1px, transparent 1px 10px);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  width: 5px;
  z-index: 900;
  pointer-events: none;
}

body::before {
  left: 0;
  background: linear-gradient(180deg, var(--color-gold) 0%, var(--color-red) 42%, var(--color-teal) 100%);
}

body::after {
  right: 0;
  background: linear-gradient(180deg, var(--color-teal) 0%, var(--color-primary) 55%, var(--color-gold) 100%);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-title);
  font-weight: 900;
  line-height: 1.25;
  color: var(--color-primary);
}

h1 {
  font-size: clamp(34px, 5.2vw, 64px);
}

h2 {
  font-size: clamp(26px, 3.6vw, 42px);
}

h3 {
  font-size: 21px;
}

h4 {
  font-size: 18px;
}

.container {
  width: min(100% - 40px, var(--content-w));
  margin-inline: auto;
}

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: -9999px;
  z-index: 999;
  padding: 10px 18px;
  background: var(--color-gold);
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
  border-radius: 2px;
}

.skip-link:focus {
  left: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn--gold {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-primary);
}

.btn--gold:hover {
  background: #d9b236;
  border-color: #d9b236;
  transform: translateY(-2px);
}

.btn--outline {
  border-color: rgba(201, 162, 39, 0.65);
  color: var(--color-gold);
}

.btn--outline:hover {
  background: rgba(201, 162, 39, 0.12);
  border-color: var(--color-gold);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: linear-gradient(100deg, var(--color-primary) 0%, var(--color-primary) 52%, var(--color-teal) 52.5%, var(--color-teal) 100%);
  border-bottom: 1px solid rgba(201, 162, 39, 0.28);
  transition: box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(16, 32, 48, 0.22);
}

.header__ribbon {
  height: 3px;
}

.header__ribbon--top {
  background: linear-gradient(90deg, var(--color-gold) 0 42%, var(--color-red) 42% 74%, var(--color-teal) 74% 100%);
}

.header__ribbon--bottom {
  height: 5px;
  background-image: linear-gradient(90deg,
    var(--color-gold) 0 14px, transparent 14px 20px,
    var(--color-red) 20px 34px, transparent 34px 40px,
    var(--color-beige) 40px 50px, transparent 50px 56px,
    var(--color-teal) 56px 72px, transparent 72px 78px);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  min-width: 0;
  text-decoration: none;
}

.brand__block {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #e7c64d 0%, var(--color-gold) 55%, #9b7918 100%);
  clip-path: polygon(0 0, 74% 0, 100% 26%, 100% 100%, 26% 100%, 0 74%);
  box-shadow: 0 4px 12px rgba(201, 162, 39, 0.35);
}

.brand__glyph {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 25px;
  line-height: 1;
  color: var(--color-primary);
  transform: rotate(-3deg);
}

.brand__flag {
  position: absolute;
  left: 6px;
  bottom: -5px;
  width: 5px;
  height: 3px;
  background: var(--color-red);
  box-shadow: 8px 0 0 var(--color-beige), 16px 0 0 var(--color-teal);
}

.brand__meta {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand__name {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 21px;
  letter-spacing: 0.08em;
  color: var(--color-bg);
  white-space: nowrap;
}

.brand__desc {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 244, 237, 0.6);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  position: relative;
  display: block;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(247, 244, 237, 0.82);
  text-decoration: none;
  letter-spacing: 0.1em;
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}

.nav__link::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s var(--ease);
}

.nav__link:hover {
  color: var(--color-white);
}

.nav__link:hover::before {
  transform: scaleX(1);
}

.nav__link[aria-current="page"] {
  color: var(--color-white);
}

.nav__link[aria-current="page"]::before {
  transform: scaleX(1);
}

.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 2px;
  width: 5px;
  height: 5px;
  background: var(--color-red);
  transform: translateY(-50%) rotate(45deg);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header__cta {
  flex-shrink: 0;
}

.header__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 14px;
  border-left: 1px solid rgba(201, 162, 39, 0.35);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(247, 244, 237, 0.72);
  white-space: nowrap;
}

.status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

.status__text {
  font-family: var(--font-accent);
  letter-spacing: 0.14em;
}

.header__status[data-status="tablet"] .status__dot {
  background: var(--color-beige);
  box-shadow: 0 0 0 3px rgba(232, 220, 196, 0.18);
}

.header__status[data-status="mobile"] .status__dot {
  background: var(--color-red);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.18);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 50%;
  transition: border-color 0.25s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--color-gold);
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-gold);
  border-radius: 1px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-footer {
  position: relative;
  background: linear-gradient(180deg, var(--color-footer) 0%, #0c1a28 100%);
  color: rgba(247, 244, 237, 0.72);
  font-size: 14px;
  line-height: 1.8;
}

.footer__ribbon {
  height: 5px;
  background-image: linear-gradient(90deg,
    var(--color-teal) 0 12px, transparent 12px 18px,
    var(--color-beige) 18px 28px, transparent 28px 34px,
    var(--color-red) 34px 48px, transparent 48px 54px,
    var(--color-gold) 54px 66px, transparent 66px 72px);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-top: 52px;
  padding-bottom: 44px;
}

.footer__brand {
  display: flex;
  gap: 18px;
}

.footer__brand-mark {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
}

.footer__slogan {
  flex: 1;
}

.footer__slogan .brand__name {
  font-size: 22px;
  color: var(--color-beige);
}

.footer__slogan > span:last-child {
  display: block;
  margin-top: 8px;
  max-width: 34ch;
  font-size: 13px;
  color: rgba(247, 244, 237, 0.6);
  line-height: 1.8;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer__title {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(201, 162, 39, 0.22);
}

.footer__link {
  display: block;
  width: fit-content;
  padding: 3px 0;
  color: rgba(247, 244, 237, 0.68);
  text-decoration: none;
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.footer__link:hover {
  color: var(--color-gold);
  padding-left: 8px;
}

.footer__col p {
  margin: 3px 0;
  max-width: 30ch;
}

.footer__icp {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-accent);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(247, 244, 237, 0.42);
}

.footer__bottom {
  border-top: 1px solid rgba(201, 162, 39, 0.16);
  background: rgba(0, 0, 0, 0.14);
  padding: 16px 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(247, 244, 237, 0.5);
}

.footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
}

.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 400;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--color-gold);
  color: var(--color-primary);
  font-size: 20px;
  font-weight: 700;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: #d9b236;
}

.section {
  padding: clamp(56px, 8vw, 104px) 0;
}

.section + .section {
  border-top: 1px solid rgba(30, 58, 95, 0.08);
}

.section--dark {
  background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-teal) 100%);
  color: rgba(247, 244, 237, 0.82);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-bg);
}

.section--beige {
  background: var(--color-beige);
}

.section-head {
  margin-bottom: 32px;
}

.section-head__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.section-head__tag::before {
  content: "";
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), transparent);
}

.section-head__title {
  margin-top: 8px;
}

.section-head__lead {
  max-width: 65ch;
  margin-top: 8px;
  color: var(--color-muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

.card {
  position: relative;
  background: var(--color-bg);
  border: 1px solid rgba(30, 58, 95, 0.12);
  padding: 24px;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}

.card--cut {
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  filter: drop-shadow(0 6px 18px rgba(16, 32, 48, 0.1));
}

.card--slant {
  clip-path: polygon(0 14px, 14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  filter: drop-shadow(0 6px 18px rgba(16, 32, 48, 0.1));
}

.card--teal {
  background: linear-gradient(180deg, #123e50, var(--color-teal));
  color: rgba(247, 244, 237, 0.9);
}

.card--purple {
  background: linear-gradient(180deg, #382b4e, var(--color-purple));
  color: rgba(247, 244, 237, 0.9);
}

.card--teal h1,
.card--teal h2,
.card--teal h3,
.card--teal h4,
.card--purple h1,
.card--purple h2,
.card--purple h3,
.card--purple h4 {
  color: var(--color-bg);
}

.card__title {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 8px;
}

.card__meta {
  font-family: var(--font-accent);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.card__body {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-muted);
}

.card--teal .card__meta,
.card--teal .card__body,
.card--purple .card__meta,
.card--purple .card__body {
  color: rgba(247, 244, 237, 0.72);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--color-beige);
  color: var(--color-primary);
}

.tag::before {
  content: "";
  width: 6px;
  height: 6px;
  background: currentColor;
  transform: rotate(45deg);
}

.tag--gold {
  background: rgba(201, 162, 39, 0.15);
  color: #8a6d15;
}

.tag--red {
  background: rgba(192, 57, 43, 0.12);
  color: var(--color-red);
}

.tag--teal {
  background: rgba(14, 77, 100, 0.12);
  color: var(--color-teal);
}

.tag--purple {
  background: rgba(74, 59, 104, 0.14);
  color: var(--color-purple);
}

.index-num {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  color: var(--color-gold);
  letter-spacing: 0.02em;
}

.index-num--sm {
  font-size: 14px;
}

.breadcrumb {
  padding: 14px 0 0;
  font-size: 13px;
  color: var(--color-muted);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
}

.breadcrumb__item + .breadcrumb__item {
  padding-left: 8px;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  margin-right: 8px;
  color: var(--color-gold);
  font-weight: 700;
}

.breadcrumb__link {
  color: var(--color-primary);
  text-decoration: none;
}

.breadcrumb__link:hover {
  color: var(--color-gold);
}

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

.media {
  position: relative;
  display: block;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(14, 77, 100, 0.35) 0%, transparent 38%),
    linear-gradient(200deg, transparent 0%, rgba(30, 58, 95, 0.5) 100%),
    linear-gradient(180deg, var(--color-primary) 0%, var(--color-teal) 100%);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(201, 162, 39, 0.3) 0 12%, transparent 12% 100%),
    linear-gradient(45deg, transparent 0 65%, rgba(247, 244, 237, 0.16) 65% 68%, transparent 68% 100%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.media--16x9 {
  aspect-ratio: 16 / 9;
}

.media--4x3 {
  aspect-ratio: 4 / 3;
}

.media--peak::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(155deg, transparent 0 44%, var(--color-bg) 44% 46%, transparent 46% 100%),
    linear-gradient(205deg, transparent 0 32%, rgba(16, 32, 48, 0.55) 32% 34%, transparent 34% 100%);
}

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

html.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 1023px) {
  :root {
    --header-h: 62px;
  }

  .header__container {
    gap: 8px;
  }

  .brand__desc {
    display: none;
  }

  .header__cta {
    display: none;
  }

  .site-nav {
    position: absolute;
    top: calc(100% - 4px);
    left: 0;
    right: 0;
    z-index: 290;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - var(--header-h) - 20px);
    overflow-y: auto;
    background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-teal) 100%);
    border-bottom: 1px solid rgba(201, 162, 39, 0.35);
    box-shadow: var(--shadow-lg);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }

  .site-nav[data-open] {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .nav__item {
    border-bottom: 1px solid rgba(247, 244, 237, 0.07);
  }

  .nav__link {
    padding: 15px 22px;
    font-size: 16px;
  }

  .nav__link::before {
    left: 4px;
    right: auto;
    bottom: auto;
    top: 50%;
    width: 3px;
    height: 20px;
    transform: scaleY(0) translateY(-50%);
    transform-origin: top center;
    transition: transform 0.3s var(--ease);
  }

  .nav__link:hover::before,
  .nav__link[aria-current="page"]::before {
    transform: scaleY(1) translateY(-50%);
  }

  .nav__link[aria-current="page"]::after {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

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

@media (max-width: 767px) {
  .container {
    width: min(100% - 28px, var(--content-w));
  }

  body::before,
  body::after {
    width: 3px;
  }

  .header__status {
    display: none;
  }

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

  .footer__top {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 40px;
  }

  .footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .scroll-top {
    right: 14px;
    bottom: 14px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 575px) {
  .brand__meta {
    display: none;
  }

  .brand__block {
    width: 42px;
    height: 42px;
  }

  .grid--3,
  .grid--2 {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
