:root {
  --sx-red: #EF4A2A;
  --sx-blue: #0B1F33;
  --sx-yellow: #FFC72C;
  --sx-cream: #F7F3E8;
  --sx-ink: #1A1714;
  --sx-orange: #FF8C42;
  --sx-gray: #E5E1D8;
  --sx-green: #2E9E6B;
  --sx-font-display: "Archivo Black", "Noto Sans SC Black", "PingFang SC", "Microsoft YaHei", sans-serif;
  --sx-font-body: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  --sx-font-mono: "JetBrains Mono", "Roboto Mono", Consolas, "Courier New", monospace;
  --sx-header-h: 72px;
  --sx-radius: 4px;
  --sx-shadow: 0 10px 30px rgba(11, 31, 51, 0.18);
  --sx-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

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

body {
  font-family: var(--sx-font-body);
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.7;
  color: var(--sx-ink);
  background-color: var(--sx-cream);
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

h1,
h2,
h3,
h4 {
  font-family: var(--sx-font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--sx-ink);
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}

p {
  margin-bottom: 1.6em;
}

a {
  color: var(--sx-red);
}

a:hover {
  color: var(--sx-orange);
}

img {
  max-width: 100%;
  display: block;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

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

::selection {
  background: var(--sx-yellow);
  color: var(--sx-ink);
}

.sx-container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

.sx-grid {
  display: grid;
  gap: 2rem;
}

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

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

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

.sx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7em 1.4em;
  background: var(--sx-red);
  color: #ffffff;
  font-family: var(--sx-font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  border: 2px solid var(--sx-red);
  border-radius: 2px 10px 2px 10px;
  transform: skew(-3deg);
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(255, 199, 44, 0.9);
  transition: background 0.25s var(--sx-ease), border-color 0.25s var(--sx-ease), color 0.25s var(--sx-ease), transform 0.25s var(--sx-ease);
}

.sx-btn:hover,
.sx-btn:focus-visible {
  background: var(--sx-yellow);
  border-color: var(--sx-yellow);
  color: var(--sx-ink);
  transform: skew(-3deg) translateY(-2px);
}

.sx-btn--header {
  margin-left: auto;
  flex-shrink: 0;
}

.sx-tag {
  display: inline-block;
  padding: 0.2em 0.7em;
  background: var(--sx-yellow);
  color: var(--sx-blue);
  font-family: var(--sx-font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: skew(-5deg);
}

.sx-tag--live {
  background: var(--sx-red);
  color: #fff;
}

.sx-tag--new {
  background: var(--sx-green);
  color: #fff;
}

.sx-num {
  font-family: var(--sx-font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sx-red);
}

.sx-index {
  font-family: var(--sx-font-mono);
  font-weight: 700;
  color: var(--sx-red);
}

.sx-dot {
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  background: var(--sx-green);
  border-radius: 50%;
  flex-shrink: 0;
}

.sx-img {
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--sx-gray);
}

.sx-img--ratio-3-2 {
  aspect-ratio: 3 / 2;
}

.sx-img--ratio-16-9 {
  aspect-ratio: 16 / 9;
}

.sx-img--ratio-4-5 {
  aspect-ratio: 4 / 5;
}

.sx-img__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--sx-gray) 0%, var(--sx-cream) 100%);
  color: rgba(26, 23, 20, 0.45);
  font-family: var(--sx-font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.sx-breadcrumb {
  padding: 1.5rem 0 0.25rem;
  font-family: var(--sx-font-mono);
  font-size: 0.82rem;
}

.sx-breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
}

.sx-breadcrumb li + li::before {
  content: "/";
  color: var(--sx-red);
  margin-right: 0.4em;
}

.sx-breadcrumb a {
  color: var(--sx-ink);
  text-decoration: none;
  transition: color 0.2s;
}

.sx-breadcrumb a:hover {
  color: var(--sx-red);
}

.sx-breadcrumb [aria-current="page"] {
  color: var(--sx-red);
}

.sx-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2000;
  width: 100%;
  height: 3px;
  pointer-events: none;
}

.sx-scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--sx-red), var(--sx-yellow));
  transition: width 0.1s linear;
}

.sx-top-btn {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1500;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 4px 14px 4px 14px;
  background: var(--sx-blue);
  color: var(--sx-yellow);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(11, 31, 51, 0.4);
  transition: transform 0.25s var(--sx-ease), background 0.25s var(--sx-ease), color 0.25s var(--sx-ease);
}

.sx-top-btn:hover,
.sx-top-btn:focus-visible {
  background: var(--sx-red);
  color: #fff;
  transform: translateY(-4px);
}

.sx-top-btn[hidden] {
  display: none;
}

.sx-top-btn.is-visible {
  animation: sx-pop 0.3s var(--sx-ease);
}

@keyframes sx-pop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.sx-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--sx-blue);
  box-shadow: 0 2px 24px rgba(11, 31, 51, 0.35);
  border-bottom: 3px solid var(--sx-red);
}

.sx-header::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 96px;
  height: 3px;
  background: var(--sx-yellow);
  clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
}

.sx-skip-link {
  position: absolute;
  top: 0;
  left: -9999px;
  z-index: 3000;
  padding: 0.8em 1.4em;
  background: var(--sx-yellow);
  color: var(--sx-ink);
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}

.sx-skip-link:focus {
  left: 0;
}

.sx-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--sx-header-h);
}

.sx-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  flex-shrink: 0;
}

.sx-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--sx-red);
  color: #fff;
  font-family: var(--sx-font-display);
  font-size: 1.05rem;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  transition: background 0.2s;
}

.sx-brand:hover .sx-brand__mark {
  background: var(--sx-yellow);
  color: var(--sx-ink);
}

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

.sx-brand__name {
  font-family: var(--sx-font-display);
  font-size: 1.3rem;
  color: var(--sx-cream);
  letter-spacing: 0.02em;
}

.sx-brand__tagline {
  font-family: var(--sx-font-mono);
  font-size: 0.72rem;
  color: var(--sx-yellow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sx-nav {
  margin-left: auto;
}

.sx-nav__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.sx-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.55em 0.8em;
  color: rgba(247, 243, 232, 0.8);
  font-family: var(--sx-font-mono);
  font-size: 0.84rem;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 2px 8px 2px 8px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.sx-nav__idx {
  font-weight: 700;
  color: var(--sx-red);
  font-size: 0.75rem;
  transition: color 0.2s;
}

.sx-nav__link:hover {
  background: rgba(255, 199, 44, 0.1);
  color: var(--sx-yellow);
}

.sx-nav__link:hover .sx-nav__idx {
  color: var(--sx-yellow);
}

.sx-nav__link[aria-current="page"] {
  color: var(--sx-yellow);
  background: rgba(255, 199, 44, 0.08);
  box-shadow: inset 0 -2px 0 var(--sx-yellow);
}

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

.sx-nav-toggle {
  display: none;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 1px solid rgba(247, 243, 232, 0.25);
  border-radius: 4px;
  width: 46px;
  height: 46px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.sx-nav-toggle__line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--sx-cream);
  transition: transform 0.3s var(--sx-ease), background 0.2s, opacity 0.2s;
}

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

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

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

.sx-footer {
  background: var(--sx-blue);
  color: rgba(247, 243, 232, 0.8);
  margin-top: 5rem;
  position: relative;
}

.sx-footer__pattern {
  height: 18px;
  background-color: var(--sx-blue);
  background-image:
    repeating-linear-gradient(45deg, var(--sx-red) 0 4px, transparent 4px 14px),
    repeating-linear-gradient(-45deg, var(--sx-yellow) 0 4px, transparent 4px 14px);
  opacity: 0.85;
  border-bottom: 1px solid rgba(247, 243, 232, 0.08);
}

.sx-footer__body {
  padding: 3.5rem 0 1.5rem;
}

.sx-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem 3rem;
}

.sx-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
}

.sx-brand--footer .sx-brand__mark {
  background: var(--sx-red);
  color: #fff;
}

.sx-brand--footer .sx-brand__name {
  color: var(--sx-cream);
}

.sx-brand--footer .sx-brand__tagline {
  color: var(--sx-yellow);
}

.sx-footer__about {
  color: rgba(247, 243, 232, 0.7);
  font-size: 0.92rem;
  line-height: 1.75;
  margin-bottom: 0;
}

.sx-footer__trust {
  display: flex;
  align-items: flex-start;
  gap: 0.6em;
  padding: 0.9em 1em;
  border-left: 3px solid var(--sx-red);
  background: rgba(255, 199, 44, 0.06);
  color: rgba(247, 243, 232, 0.85);
  font-size: 0.85rem;
  line-height: 1.65;
  margin-bottom: 0;
}

.sx-footer__contact {
  list-style: none;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 1.2rem;
  color: rgba(247, 243, 232, 0.65);
  font-family: var(--sx-font-mono);
  font-size: 0.78rem;
  line-height: 1.55;
}

.sx-footer__contact span {
  color: var(--sx-yellow);
  margin-right: 0.6rem;
}

.sx-footer__col {
  min-width: 0;
}

.sx-footer__title {
  font-family: var(--sx-font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--sx-yellow);
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.sx-footer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.sx-footer__list a {
  display: inline-block;
  color: rgba(247, 243, 232, 0.72);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s, transform 0.2s;
}

.sx-footer__list a:hover {
  color: var(--sx-yellow);
  transform: translateX(3px);
}

.sx-footer__bottom {
  border-top: 1px solid rgba(247, 243, 232, 0.1);
  padding: 1.1rem 0;
  background: rgba(0, 0, 0, 0.2);
}

.sx-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  font-family: var(--sx-font-mono);
  font-size: 0.78rem;
  color: rgba(247, 243, 232, 0.5);
}

.sx-footer__bottom-inner p {
  margin: 0;
}

.sx-footer__bottom-inner a {
  color: rgba(247, 243, 232, 0.65);
  text-decoration: none;
}

.sx-footer__bottom-inner a:hover {
  color: var(--sx-yellow);
}

@media (max-width: 1023px) {
  .sx-nav-toggle {
    display: inline-flex;
  }

  .sx-nav {
    position: fixed;
    top: var(--sx-header-h);
    right: 0;
    bottom: 0;
    z-index: 1200;
    width: min(340px, 92vw);
    margin: 0;
    padding: 2rem 1.5rem;
    background: rgba(11, 31, 51, 0.97);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--sx-red);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    visibility: hidden;
    opacity: 0;
    transition: transform 0.35s var(--sx-ease), opacity 0.35s, visibility 0.35s;
    overflow-y: auto;
  }

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

  .sx-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .sx-nav__link {
    padding: 1.1em 0.6em;
    font-size: 1rem;
    border-bottom: 1px solid rgba(247, 243, 232, 0.08);
    border-radius: 0;
    color: rgba(247, 243, 232, 0.88);
  }

  .sx-nav__link[aria-current="page"] {
    box-shadow: inset 3px 0 0 var(--sx-yellow);
  }

  .sx-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

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

  .sx-btn--header {
    display: none;
  }

  .sx-brand__mark {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .sx-brand__name {
    font-size: 1.1rem;
  }

  .sx-brand__tagline {
    font-size: 0.62rem;
  }

  .sx-header__inner {
    gap: 0.6rem;
  }

  .sx-footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .sx-footer__contact {
    grid-template-columns: 1fr;
  }

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

  .sx-top-btn {
    right: 1rem;
    bottom: 1rem;
  }
}

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

  .sx-nav {
    transition: none;
  }

  .sx-top-btn.is-visible {
    animation: none;
  }
}
