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

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

body {
  background: var(--cream);
  color: #2A2A28;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  padding-top: var(--header-h);
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

ul,
ol {
  list-style: none;
}

a {
  color: var(--link);
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--gold);
  color: var(--bg-deep);
}

:root {
  --bg-deep: #0B1D3A;
  --bg-deep-2: #10294A;
  --bg-deep-3: #081424;
  --gold: #C9A227;
  --gold-bright: #E4BF3D;
  --gold-dark: #967A1C;
  --gold-soft: rgba(201, 162, 39, .12);
  --cream: #F7F3E8;
  --danger: #8B0000;
  --gray: #8A8D91;
  --green: #6B8E23;
  --terracotta: #D2691E;
  --link: #A0C4E0;
  --white: #FFFFFF;
  --header-h: 72px;
  --max-w: 1440px;
  --font-head: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "Roboto Mono", "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --shadow-1: 0 6px 24px rgba(8, 20, 36, .28);
}

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

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 2000;
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 18px;
  background: var(--gold);
  color: var(--bg-deep);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: top .2s ease;
}

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

#main-content {
  scroll-margin-top: calc(var(--header-h) + 8px);
}

main {
  display: block;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-deep-2) 100%);
  box-shadow: 0 2px 0 var(--gold-dark), 0 6px 24px rgba(8, 20, 36, .35);
}

.header-progress {
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  z-index: 10;
  pointer-events: none;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-bright));
  transition: width .08s linear;
}

.header-bar {
  max-width: var(--max-w);
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
}

.header__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  min-width: 0;
}

.brand-crown {
  color: var(--gold);
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--white);
  line-height: 1;
  white-space: nowrap;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  border-left: 1px solid rgba(201, 162, 39, .35);
  padding-left: 10px;
  margin-left: 2px;
  white-space: nowrap;
}

.header__right {
  display: flex;
  align-items: stretch;
  gap: 14px;
  min-width: 0;
}

.announce-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: center;
  height: 36px;
  padding: 0 14px;
  background: transparent;
  border: 1px solid rgba(201, 162, 39, .55);
  border-radius: 2px;
  color: var(--gold);
  font-size: 13px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  max-width: 360px;
  flex-shrink: 1;
}

.announce-pill:hover,
.announce-pill[aria-expanded="true"] {
  background: var(--gold);
  color: var(--bg-deep);
  border-color: var(--gold);
}

.announce-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 6px rgba(210, 105, 30, .7);
  flex-shrink: 0;
}

.announce-pill__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.announce-chevron {
  transition: transform .2s;
  flex-shrink: 0;
}

.announce-pill[aria-expanded="true"] .announce-chevron {
  transform: rotate(180deg);
}

.header__nav {
  display: flex;
  align-items: stretch;
}

.nav-list {
  display: flex;
  align-items: stretch;
}

.nav-item {
  display: flex;
  align-items: stretch;
}

.nav-item + .nav-item a {
  border-left: 1px solid rgba(201, 162, 39, .16);
}

.nav-item a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  color: rgba(255, 255, 255, .82);
  font-size: 15px;
  text-decoration: none;
  position: relative;
  transition: color .2s, background .2s;
}

.nav-item a:hover {
  color: var(--gold-bright);
  background: rgba(201, 162, 39, .06);
}

.nav-item a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .22s ease;
}

.nav-item a:hover::after,
.nav-item a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-item a[aria-current="page"] {
  color: var(--gold-bright);
  background: rgba(201, 162, 39, .08);
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .5px;
  color: var(--gold);
  opacity: .65;
  transform: translateY(1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  align-self: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: 2px;
  cursor: pointer;
  transition: background .2s;
}

.nav-toggle:hover {
  background: var(--gold-soft);
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  background: var(--gold);
  transition: transform .25s ease, opacity .25s ease;
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.announce-panel {
  position: absolute;
  top: var(--header-h);
  right: 32px;
  width: min(440px, calc(100vw - 64px));
  z-index: 1001;
  background: var(--cream);
  border-left: 3px solid var(--gold);
  border-bottom: 1px solid rgba(201, 162, 39, .3);
  box-shadow: var(--shadow-1);
  padding: 18px 20px 20px;
  color: #2A2A28;
  animation: panelIn .2s ease;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.announce-panel__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 6px;
}

.announce-panel__text {
  font-size: 15px;
  line-height: 1.65;
  color: #333;
  padding-right: 24px;
}

.announce-panel__link {
  display: inline-block;
  margin-top: 12px;
  background: var(--gold);
  color: var(--bg-deep);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 14px;
  transition: background .2s;
}

.announce-panel__link:hover {
  background: var(--gold-bright);
}

.announce-panel__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  color: var(--gray);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: color .2s;
}

.announce-panel__close:hover {
  color: var(--danger);
}

.site-footer {
  position: relative;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-deep-3) 100%);
  color: var(--white);
  border-top: 3px solid var(--gold);
}

.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 32px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 48px;
}

.footer__brand .footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-crown {
  color: var(--gold);
}

.footer-name {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--white);
}

.footer-desc {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .7);
  margin-bottom: 16px;
}

.trust-statement {
  font-size: 13px;
  line-height: 1.7;
  color: var(--gold);
  background: rgba(201, 162, 39, .07);
  border-left: 2px solid var(--gold);
  padding: 12px 14px;
}

.footer__links ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, .8);
  font-size: 14px;
  transition: color .2s, padding-left .2s;
}

.footer__links a::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--gold);
  opacity: .5;
  flex-shrink: 0;
  transform: rotate(45deg);
  transition: opacity .2s, transform .2s;
}

.footer__links a:hover {
  color: var(--gold-bright);
  padding-left: 4px;
}

.footer__links a:hover::before {
  opacity: 1;
  transform: rotate(45deg) scale(1.3);
}

.footer-title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 18px;
  padding-bottom: 10px;
  position: relative;
}

.footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 2px;
  background: var(--gold);
}

.footer__contact .contact-item {
  display: flex;
  gap: 10px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .8);
  margin-bottom: 6px;
}

.contact-label {
  flex-shrink: 0;
  width: 42px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--gold);
}

.contact-item--note {
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 32px 28px;
  border-top: 1px solid rgba(201, 162, 39, .22);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
}

.footer-copy {
  margin-right: auto;
}

.footer-icp {
  font-family: var(--font-mono);
  letter-spacing: .5px;
}

.footer-legal {
  display: flex;
  gap: 18px;
}

.footer-legal a {
  color: rgba(255, 255, 255, .65);
  font-size: 13px;
  transition: color .2s;
}

.footer-legal a:hover {
  color: var(--gold-bright);
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--bg-deep);
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s, transform .25s, visibility .25s, background .2s;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.back-top:hover {
  background: var(--gold-bright);
}

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 28px;
  background: var(--gold);
  color: var(--bg-deep);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}

.btn:hover {
  background: var(--gold-bright);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201, 162, 39, .3);
}

.btn:active {
  transform: translateY(0);
}

.btn--ghost {
  background: transparent;
  color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
}

.btn--ghost:hover {
  background: rgba(201, 162, 39, .08);
  color: var(--gold-bright);
  box-shadow: inset 0 0 0 1px var(--gold);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--bg-deep);
  transition: color .2s;
}

.breadcrumb a:hover {
  color: var(--gold-dark);
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: var(--gold);
}

.breadcrumb li:last-child {
  color: var(--terracotta);
  font-weight: 600;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(201, 162, 39, .35);
  padding-bottom: 14px;
}

.section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 4px;
}

.section-title {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 1px;
  color: var(--bg-deep);
}

.card {
  background: var(--white);
  border: 1px solid rgba(138, 141, 145, .25);
  border-top: 3px solid var(--gold);
  padding: 22px 20px;
  box-shadow: 0 2px 8px rgba(11, 29, 58, .06);
  transition: box-shadow .2s, transform .2s;
}

.card:hover {
  box-shadow: 0 10px 28px rgba(11, 29, 58, .12);
  transform: translateY(-2px);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .5px;
  padding: 3px 10px;
  border: 1px solid var(--terracotta);
  color: var(--terracotta);
  background: rgba(210, 105, 30, .05);
}

.tag--gold {
  border-color: var(--gold);
  color: var(--gold-dark);
  background: rgba(201, 162, 39, .06);
}

.tag--green {
  border-color: var(--green);
  color: var(--green);
  background: rgba(107, 142, 35, .05);
}

.tag--red {
  border-color: var(--danger);
  color: var(--danger);
  background: rgba(139, 0, 0, .05);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(11, 29, 58, .06);
  color: var(--gray);
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.status--ok {
  color: var(--green);
  background: rgba(107, 142, 35, .08);
}

.status--warn {
  color: var(--terracotta);
  background: rgba(210, 105, 30, .08);
}

.status--warn::before {
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: .4;
  }
}

.status--error {
  color: var(--danger);
  background: rgba(139, 0, 0, .06);
}

.panel-cut {
  position: relative;
  background: var(--bg-deep);
  color: var(--white);
  padding: 32px 28px;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.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));
}

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

.img-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-deep) 0%, var(--bg-deep-2) 55%, var(--gold-dark) 180%);
  border-bottom: 2px solid var(--gold);
}

.img-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 46%, rgba(201, 162, 39, .14) 46.2%, transparent 46.6%), radial-gradient(circle at 18% 22%, rgba(201, 162, 39, .12) 0 32px, transparent 32px);
  pointer-events: none;
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-frame--portrait {
  aspect-ratio: 3 / 4;
}

.img-frame--wide {
  aspect-ratio: 21 / 9;
}

.diag-line {
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
}

.diag-band {
  height: 8px;
  background: repeating-linear-gradient(45deg, var(--gold) 0 6px, transparent 6px 14px);
  opacity: .35;
}

.track-line {
  position: relative;
  height: 2px;
  background: rgba(11, 29, 58, .12);
  overflow: hidden;
}

.track-line::before {
  content: "";
  position: absolute;
  left: -30%;
  width: 25%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: trackMove 3s ease-in-out infinite;
}

@keyframes trackMove {
  from {
    left: -30%;
  }
  to {
    left: 100%;
  }
}

@media (max-width: 1200px) {
  .nav-item a {
    padding: 0 12px;
    font-size: 14px;
  }

  .announce-pill__text {
    max-width: 120px;
  }
}

@media (max-width: 1080px) {
  .header__nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    width: min(78vw, 360px);
    background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-deep-2) 100%);
    border-left: 1px solid var(--gold);
    flex-direction: column;
    align-items: stretch;
    padding: 28px 24px 48px;
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .28s ease, visibility .28s ease;
  }

  .header__nav[data-open] {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
  }

  .nav-item {
    border-bottom: 1px solid rgba(201, 162, 39, .14);
  }

  .nav-item + .nav-item a {
    border-left: none;
  }

  .nav-item a {
    height: 54px;
    justify-content: space-between;
    padding: 0 12px;
    font-size: 16px;
  }

  .nav-item a::after {
    display: none;
  }

  .nav-item a[aria-current="page"] {
    background: linear-gradient(90deg, var(--gold-soft), transparent 80%);
    border-left: 2px solid var(--gold);
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 900px) {
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .header-bar {
    padding: 0 16px;
  }

  .brand-tag {
    display: none;
  }

  .brand-name {
    font-size: 20px;
  }

  .announce-pill {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .announce-pill__text,
  .announce-chevron {
    display: none;
  }

  .announce-panel {
    right: 16px;
    left: 16px;
    width: auto;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    padding: 40px 16px 28px;
  }

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

  .footer-bottom {
    padding: 18px 16px 24px;
  }

  .footer-legal {
    flex-wrap: wrap;
    gap: 12px 18px;
  }
}

@media (max-width: 620px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@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;
  }

  .track-line::before {
    animation: none;
  }
}
