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

* {
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
  overflow-x: clip;
  background-color: var(--warm-paper);
  background-image:
    linear-gradient(rgba(74, 93, 110, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 93, 110, 0.04) 1px, transparent 1px);
  background-size: 34px 34px, 34px 34px, auto;
  color: var(--dark-ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
}

ul,
ol {
  list-style: none;
}

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

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

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

a {
  color: inherit;
  text-decoration: none;
}

:root {
  --primary-red: #8c3a2b;
  --grey-blue: #4a5d6e;
  --gold: #c9a063;
  --warm-paper: #f5f0e6;
  --dark-ink: #2b2b2b;
  --alert-red: #d9534f;
  --success-green: #5cb85c;
  --glass-white: rgba(255, 255, 255, 0.72);
  --footer-bg: #1e1e1e;
  --card-bg: #eae2d0;
  --font-heading: Georgia, "Times New Roman", "Noto Serif SC", serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;
  --radius-card: 0.875rem;
  --shadow-card: 0 1px 2px rgba(43, 43, 43, 0.06), 0 10px 24px rgba(43, 43, 43, 0.08);
  --header-z: 1000;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.25;
  color: var(--dark-ink);
}

::selection {
  background: var(--gold);
  color: var(--dark-ink);
}

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

#main-content {
  scroll-margin-top: 7rem;
}

.container {
  width: min(1440px, 100% - 1.5rem);
  margin-inline: auto;
}

@media (min-width: 560px) {
  .container {
    width: min(1440px, 100% - 3rem);
  }
}

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

.skip-link {
  position: fixed;
  top: 0.8rem;
  left: 1rem;
  z-index: 2000;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  background: var(--dark-ink);
  color: var(--warm-paper);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(43, 43, 43, 0.3);
  transform: translateY(-400%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
  color: var(--gold);
}

.beacon-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1500;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-red), var(--gold));
  box-shadow: 0 0 12px rgba(201, 160, 99, 0.5);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--header-z);
  padding: 0.9rem 0 0.55rem;
  background:
    linear-gradient(rgba(74, 93, 110, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 93, 110, 0.04) 1px, transparent 1px),
    var(--warm-paper);
  background-size: 34px 34px, 34px 34px, auto;
}

.header-shell {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 2vw, 1.5rem);
}

.capsule-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem 0.6rem 1.1rem;
  background: var(--glass-white);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(43, 43, 43, 0.1);
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(43, 43, 43, 0.1);
}

.capsule-nav::before {
  content: "";
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 1.6rem;
  border-radius: 999px;
  background: linear-gradient(to bottom, var(--primary-red), var(--gold));
  opacity: 0.85;
}

.brand-mark {
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 0.05rem;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--dark-ink);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--grey-blue);
}

.site-nav {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem;
  background: var(--glass-white);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(43, 43, 43, 0.1);
  border-radius: 1.25rem;
  box-shadow: 0 18px 40px rgba(43, 43, 43, 0.16);
}

.site-nav[data-open] {
  display: flex;
}

.site-nav a {
  position: relative;
  padding: 0.65rem 1rem;
  border-left: 3px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  color: var(--dark-ink);
  transition:
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.site-nav a:hover {
  background: rgba(140, 58, 43, 0.08);
  color: var(--primary-red);
}

.site-nav a[aria-current="page"] {
  background: rgba(140, 58, 43, 0.1);
  color: var(--primary-red);
  box-shadow: inset 0 -2px 0 var(--gold);
}

.capsule-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.refresh-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.75rem;
  border: 1px solid rgba(92, 184, 92, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: var(--dark-ink);
}

.refresh-label {
  font-family: var(--font-mono);
}

.refresh-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success-green);
  box-shadow: 0 0 0 0 rgba(92, 184, 92, 0.5);
  animation: refresh-pulse 2.4s ease-out infinite;
}

@keyframes refresh-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(92, 184, 92, 0.45);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(92, 184, 92, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(92, 184, 92, 0);
  }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(74, 93, 110, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  color: var(--dark-ink);
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--primary-red);
}

.nav-toggle-box {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  width: 1.15rem;
}

.nav-toggle-line {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

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

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

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

@media (min-width: 920px) {
  .capsule-nav {
    gap: 1.5rem;
    padding: 0.55rem 0.7rem 0.55rem 1.4rem;
  }

  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    gap: 0.25rem;
    margin-left: auto;
    padding: 0;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .site-nav a {
    padding: 0.45rem 0.85rem;
    border-left: 0;
    font-size: 0.95rem;
  }

  .site-nav a::after {
    content: "";
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.1rem;
    height: 2px;
    border-radius: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
  }

  .site-nav a:hover {
    background: transparent;
    color: var(--primary-red);
  }

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

  .site-nav a[aria-current="page"] {
    background: transparent;
    color: var(--primary-red);
    box-shadow: none;
  }

  .nav-toggle {
    display: none;
  }
}

.site-footer {
  position: relative;
  margin-top: clamp(3.5rem, 8vw, 6rem);
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.935rem;
}

.site-footer::before {
  content: "";
  display: block;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-red) 0 34%, var(--gold) 34% 58%, var(--grey-blue) 58% 100%);
}

.footer-shell {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding: 3rem 1.5rem 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
}

@media (min-width: 860px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 3rem;
  }
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--warm-paper);
}

.footer-brand-name:hover {
  color: var(--gold);
}

.footer-brand-desc {
  max-width: 36ch;
  margin-top: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

.footer-heading {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-link-list li + li,
.footer-contact-list li + li {
  margin-top: 0.5rem;
}

.footer-link-list a {
  position: relative;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.2s ease;
}

.footer-link-list a::before {
  content: "›";
  margin-right: 0.5rem;
  color: var(--gold);
}

.footer-link-list a:hover {
  color: var(--gold);
}

.footer-contact-list {
  color: rgba(255, 255, 255, 0.68);
}

.footer-contact-list li {
  display: flex;
  gap: 0.5rem;
}

.footer-contact-list li::before {
  content: "›";
  flex-shrink: 0;
  color: var(--gold);
}

.footer-trust {
  margin-top: 2.5rem;
  padding: 0.8rem 1rem;
  border: 1px dashed rgba(201, 160, 99, 0.35);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

@media (min-width: 860px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.hero-lead {
  max-width: 56ch;
  margin-top: 1rem;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: var(--grey-blue);
}

.section-block {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.section-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.section-index {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-red);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.section-title::after {
  content: "";
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  margin-left: 0.45em;
  border-radius: 2px;
  background: var(--gold);
  transform: skewX(-12deg);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--grey-blue);
}

.breadcrumb a {
  color: var(--grey-blue);
  transition: color 0.2s ease;
}

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

.breadcrumb-sep {
  color: var(--gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-solid {
  background: var(--primary-red);
  color: var(--warm-paper);
}

.btn-solid:hover {
  background: #6e2c20;
  box-shadow: 0 6px 16px rgba(140, 58, 43, 0.25);
}

.btn-outline {
  border-color: var(--grey-blue);
  background: transparent;
  color: var(--grey-blue);
}

.btn-outline:hover {
  background: var(--grey-blue);
  color: var(--warm-paper);
}

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

@media (min-width: 640px) {
  .bento-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.bento-cell {
  grid-column: span 6;
}

@media (min-width: 640px) {
  .bento-cell {
    grid-column: span 3;
  }

  .bento-cell--feature {
    grid-column: span 6;
  }

  .bento-cell--narrow {
    grid-column: span 2;
  }
}

.card {
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(74, 93, 110, 0.22);
  border-radius: var(--radius-card);
  background: var(--card-bg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    var(--shadow-card);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(43, 43, 43, 0.12);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark-ink);
}

.card-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-blue);
}

.tag-label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.65rem;
  border: 1px solid rgba(74, 93, 110, 0.4);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--grey-blue);
}

.tag-label--red {
  border-color: rgba(140, 58, 43, 0.5);
  color: var(--primary-red);
}

.tag-label--gold {
  border-color: rgba(201, 160, 99, 0.6);
  color: #7c5f30;
}

.status-dot {
  display: inline-block;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grey-blue);
}

.status-dot.is-live {
  background: var(--success-green);
}

.status-dot.is-warn {
  background: var(--alert-red);
}

.image-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(74, 93, 110, 0.25);
  border-radius: var(--radius-card);
  background:
    repeating-linear-gradient(45deg, rgba(140, 58, 43, 0.1) 0 10px, transparent 10px 20px),
    var(--card-bg);
}

.image-frame::before {
  content: "影像档案";
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 1;
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(43, 43, 43, 0.12);
  border-radius: 999px;
  background: rgba(245, 240, 230, 0.72);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: rgba(43, 43, 43, 0.55);
}

.image-frame::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 2.6rem;
  height: 2.6rem;
  background: linear-gradient(135deg, transparent 50%, var(--primary-red) 50%);
  opacity: 0.75;
}

.image-frame img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-frame--tall {
  aspect-ratio: 4 / 5;
}

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

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.data-table caption {
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
  color: var(--grey-blue);
}

.data-table th,
.data-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid rgba(74, 93, 110, 0.18);
  text-align: left;
}

.data-table th {
  background: rgba(74, 93, 110, 0.06);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey-blue);
}

.data-table td {
  background: rgba(255, 255, 255, 0.28);
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.trust-note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.9rem 1.1rem;
  border: 1px dashed rgba(74, 93, 110, 0.4);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.35);
  font-size: 0.875rem;
  color: var(--grey-blue);
}

.trust-note::before {
  content: "证";
  flex-shrink: 0;
  margin-top: 0.2rem;
  padding: 0.1rem 0.28rem;
  border: 1px solid rgba(140, 58, 43, 0.4);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--primary-red);
}

.beacon-strip {
  height: 0.4rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary-red) 0 22%, var(--gold) 22% 36%, var(--grey-blue) 36% 100%);
  transform: skewX(-12deg);
}

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

  .refresh-dot {
    animation: none;
  }
}
