:root {
  --color-red: #C23B22;
  --color-red-dark: #7B241C;
  --color-green: #3A7D44;
  --color-gold: #D4AF37;
  --color-bg: #F9F9F9;
  --color-text: #2D2D2D;
  --color-border: #E5E5E5;
  --color-link: #1F618D;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --container-width: 1280px;
  --header-h: 72px;
  --bevel-size: 16px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  --radius: 4px;
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 1rem;
}

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

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

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

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

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

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  background: var(--color-red-dark);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 6px 6px;
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

/* ---------- Utility Bar ---------- */
.utility-bar {
  background: var(--color-red-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 20;
}

.utility-bar::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 100%;
  background: var(--color-red);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 38px;
}

.status-update {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  padding: 0.25rem 0;
}

.status-update__dot {
  width: 8px;
  height: 8px;
  background: var(--color-gold);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite ease-in-out;
}

.search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
  padding: 0.2rem 0.9rem;
  border-radius: 2px;
  font-size: 0.75rem;
  line-height: 1.8;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.search-trigger:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--color-gold);
  color: #fff;
}

.search-trigger__icon {
  font-size: 1rem;
  line-height: 1;
  color: var(--color-gold);
}

/* ---------- Header ---------- */
.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand__mark {
  width: 48px;
  height: 48px;
  background: var(--color-red);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.brand__mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1.5px solid var(--color-gold);
  clip-path: inherit;
}

.brand__mark--core {
  width: 12px;
  height: 12px;
  background: var(--color-gold);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  display: block;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__name {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--color-text);
  white-space: nowrap;
}

.brand__name--accent {
  color: var(--color-red);
  margin-left: 0.1em;
}

.brand__sub {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--color-text);
  opacity: 0.6;
  text-transform: uppercase;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  padding: 0.4rem 0.2rem;
  border-bottom: 2px solid transparent;
  position: relative;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--color-red);
  border-bottom-color: var(--color-red);
}

.nav-link[aria-current="page"] {
  color: var(--color-red);
  font-weight: 700;
  border-bottom-color: var(--color-red);
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-gold);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0.5rem;
  background: transparent;
  border-radius: 4px;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text);
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.nav-toggle:hover .nav-toggle__bar {
  background: var(--color-red);
}

/* ---------- Mobile Nav ---------- */
.mobile-nav {
  display: block;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-nav[data-open="true"] {
  max-height: 70vh;
  overflow-y: auto;
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav__inner {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.5rem 1.5rem;
  gap: 0.25rem;
}

.mobile-nav .nav-link {
  font-size: 1.05rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-red-dark);
  color: rgba(255, 255, 255, 0.85);
  margin-top: auto;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-red) 0%, var(--color-gold) 50%, var(--color-green) 100%);
}

.footer-inner {
  padding-top: 3.5rem;
  padding-bottom: 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand .footer-logo {
  font-size: 1.75rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.02em;
}

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

.footer-about {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.75);
  max-width: 36ch;
}

.footer-trust {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  border-left: 2px solid var(--color-gold);
  padding-left: 0.75rem;
  line-height: 1.65;
}

.footer-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1.25rem;
}

.footer-list li {
  margin-bottom: 0.65rem;
  font-size: 0.875rem;
}

.footer-list a {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

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

.footer-contact .footer-contact__label {
  color: rgba(255, 255, 255, 0.5);
  display: inline-block;
  min-width: 3.5em;
}

.footer-contact__note {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-icp {
  letter-spacing: 0.05em;
}

/* ---------- Shared Layout XS ---------- */
main {
  flex: 1;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  border-radius: 2px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: filter 0.2s ease, transform 0.2s ease;
}

.btn-primary {
  background: var(--color-red);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-red-dark);
  color: #fff;
  transform: translateY(-2px);
  filter: drop-shadow(0 6px 12px rgba(194, 59, 34, 0.25));
}

/* ---------- Panels & Grids ---------- */
.bevel-panel {
  --bevel-bg: #fff;
  background: var(--bevel-bg);
  clip-path: polygon(0 0, calc(100% - var(--bevel-size)) 0, 100% var(--bevel-size), 100% 100%, var(--bevel-size) 100%, 0 calc(100% - var(--bevel-size)));
  padding: 2rem;
}

.bevel-panel--accent {
  --bevel-bg: var(--color-red);
  color: #fff;
}

.section-meta {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gold);
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.data-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.data-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-gold);
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.data-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* ---------- Split Hero ---------- */
.split-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  padding: 3rem 0;
}

.split-hero__visual {
  min-height: 280px;
  background: linear-gradient(135deg, var(--color-red-dark) 0%, var(--color-red) 40%, rgba(0, 0, 0, 0) 40.1%), repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.1) 0px, rgba(255, 255, 255, 0.1) 2px, transparent 2px, transparent 6px);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
  position: relative;
}

.split-hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, var(--color-gold) 0 2px, transparent 2px);
  background-size: 40px 40px;
  opacity: 0.3;
}

/* ---------- Image Placeholders ---------- */
.image-hero {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
  background: var(--color-border);
}

.image-hero > img,
.image-hero > .image-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-card {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
  background: var(--color-border);
}

.image-card > img,
.image-card > .image-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--color-text);
  opacity: 0.7;
  padding: 1.25rem 0 0;
}

.breadcrumbs a {
  color: var(--color-link);
}

.breadcrumbs span[aria-current="page"] {
  color: var(--color-text);
  font-weight: 500;
}

/* ---------- Tabs Protocol ---------- */
.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
}

.tab-item {
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.tab-item:hover {
  color: var(--color-red);
}

.tab-item[aria-selected="true"] {
  color: var(--color-red);
  border-bottom-color: var(--color-red);
}

.tab-panel[hidden] {
  display: none;
}

/* ---------- Timeline / Steps ---------- */
.timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--color-border);
}

.timeline__item {
  position: relative;
  padding-left: 1.5rem;
  padding-bottom: 2rem;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -2.4rem;
  top: 0.25rem;
  width: 12px;
  height: 12px;
  background: var(--color-red);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.timeline__meta {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  text-transform: uppercase;
}

.timeline__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0.25rem 0 0.5rem;
}

.timeline__desc {
  font-size: 0.875rem;
  color: var(--color-text);
  opacity: 0.8;
}

/* ---------- Reveal Animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 44px;
  height: 44px;
  background: var(--color-red);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  z-index: 1000;
}

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

.back-to-top:hover {
  background: var(--color-red-dark);
  color: var(--color-gold);
}

/* ---------- Motion ---------- */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}

@media (min-width: 768px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .main-nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .mobile-nav {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr 0.8fr;
    gap: 3rem;
  }

  .footer-bottom {
    flex-direction: row;
    text-align: left;
  }

  .data-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .split-hero {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .data-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .split-hero {
    gap: 4rem;
    padding: 4rem 0;
  }

  .section-title {
    font-size: 2.5rem;
  }
}

/* ---------- Reduced Motion ---------- */
@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;
  }

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