:root {
  --c-red: #D62828;
  --c-gold: #F2B705;
  --c-brown: #3E2723;
  --c-cream: #FFF8E7;
  --c-ink: #262626;
  --c-orange: #F77F00;
  --c-light-red: #E63946;
  --c-butter: #FFF3D6;
  --font-heading: "Source Han Serif SC", "Noto Serif SC", "Songti SC", STSong, SimSun, serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --content-width: 1200px;
  --content-padding: 1.5rem;
  --radius-organic: 6px 22px 6px 22px;
  --header-z: 1000;
  --fixed-z: 3000;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-ink);
  background-color: var(--c-cream);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  margin-top: 0;
  line-height: 1.3;
  color: var(--c-ink);
}

p {
  margin-top: 0;
}

ul,
ol {
  padding-left: 0;
}

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

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

button {
  font-family: inherit;
}

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

:focus:not(:focus-visible) {
  outline: none;
}

.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: absolute;
  left: 1rem;
  top: -100px;
  z-index: 2500;
  background: var(--c-red);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 10px 10px;
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(38, 38, 38, 0.3);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

.container {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--content-padding);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px 2px 8px 2px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

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

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

.btn-outline {
  background: transparent;
  border-color: var(--c-brown);
  color: var(--c-brown);
}

.btn-outline:hover {
  background: var(--c-brown);
  border-color: var(--c-brown);
  color: var(--c-cream);
  transform: translateY(-2px);
}

.surface-card {
  background: var(--c-butter);
  border: 1px solid rgba(62, 39, 35, 0.1);
  border-radius: var(--radius-organic);
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(62, 39, 35, 0.04);
}

.figure-frame {
  display: block;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--c-butter) 0%, var(--c-cream) 100%);
  border: 1px solid rgba(62, 39, 35, 0.12);
  border-radius: 4px 20px 4px 20px;
}

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

.figure-frame--ratio-wide {
  aspect-ratio: 16 / 9;
}

.figure-frame > img,
.figure-frame > svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-red);
}

.section-label::before {
  content: '';
  width: 2rem;
  height: 2px;
  background: linear-gradient(to right, var(--c-gold), var(--c-red));
  border-radius: 2px;
}

.section-label--vertical {
  writing-mode: vertical-rl;
  border-left: 3px solid var(--c-gold);
  padding-left: 0.5rem;
  margin-bottom: 0;
}

.section-label--vertical::before {
  display: none;
}

.section-title {
  margin-bottom: 1.25rem;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: var(--c-ink);
}

.breadcrumbs {
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: '/';
  color: rgba(38, 38, 38, 0.35);
}

.breadcrumb-link {
  color: var(--c-red);
  text-decoration: none;
}

.breadcrumb-link:hover {
  text-decoration: underline;
}

.breadcrumb-current {
  color: var(--c-ink);
  font-weight: 600;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--c-red) 0%, var(--c-orange) 50%, var(--c-gold) 100%);
  z-index: var(--fixed-z);
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--header-z);
  box-shadow: 0 4px 20px rgba(62, 39, 35, 0.1);
}

.header-brand-layer {
  background-color: var(--c-brown);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(242, 183, 5, 0.055) 0,
    rgba(242, 183, 5, 0.055) 1px,
    transparent 1px,
    transparent 12px
  );
}

.header-brand-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}

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

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 14px 4px 14px 4px;
  background: linear-gradient(135deg, var(--c-red) 0%, #a81b1b 100%);
  border: 2px solid var(--c-gold);
  box-shadow: inset 0 0 0 2px rgba(242, 183, 5, 0.28), 0 3px 10px rgba(0, 0, 0, 0.25);
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  transform: rotate(-2deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.06em;
  color: var(--c-cream);
  white-space: nowrap;
}

.brand-sub {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--c-gold);
  opacity: 0.92;
}

.header-status-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
  margin-left: auto;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: rgba(242, 183, 5, 0.12);
  border: 1px solid rgba(242, 183, 5, 0.32);
  color: var(--c-gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-gold);
  box-shadow: 0 0 0 0 rgba(242, 183, 5, 0.5);
  animation: status-pulse 2s ease-out infinite;
}

.header-trust {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-align: right;
  color: rgba(255, 248, 231, 0.55);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 10px;
  background: transparent;
  border: 2px solid var(--c-gold);
  border-radius: 10px 3px 10px 3px;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-gold);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s 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-nav {
  background: var(--c-cream);
  border-top: 2px solid var(--c-gold);
  border-bottom: 1px solid rgba(62, 39, 35, 0.1);
}

.nav-inner {
  display: flex;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 0.85rem 1.2rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--c-brown);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 0;
  height: 3px;
  background: linear-gradient(to right, var(--c-red), var(--c-gold));
  border-radius: 3px 3px 0 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.nav-link:hover {
  color: var(--c-red);
  background-color: rgba(214, 40, 40, 0.04);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link[aria-current="page"] {
  color: var(--c-red);
  font-weight: 700;
  background-color: rgba(214, 40, 40, 0.05);
}

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

.site-footer {
  position: relative;
  margin-top: auto;
  background-color: var(--c-brown);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(242, 183, 5, 0.04) 0,
    rgba(242, 183, 5, 0.04) 1px,
    transparent 1px,
    transparent 10px
  );
  color: rgba(255, 248, 231, 0.82);
}

.site-footer::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--c-red) 0%, var(--c-gold) 60%, rgba(242, 183, 5, 0.15) 120%);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr 1.3fr;
  gap: 2.5rem 3rem;
  max-width: var(--content-width);
  margin-inline: auto;
  padding: 3.5rem var(--content-padding) 2.75rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 0.9rem;
  border-radius: 12px 3px 12px 3px;
  background: linear-gradient(135deg, var(--c-red) 0%, #a31313 100%);
  border: 2px solid var(--c-gold);
  box-shadow: inset 0 0 0 2px rgba(242, 183, 5, 0.25);
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  transform: rotate(-2deg);
}

.footer-brand-name {
  margin: 0 0 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--c-cream);
}

.footer-tagline {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255, 248, 231, 0.6);
  max-width: 26ch;
}

.footer-heading {
  margin: 0 0 1.1rem;
  padding-bottom: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-gold);
  position: relative;
}

.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 2px;
  background: var(--c-red);
  border-radius: 2px;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-links a {
  display: inline-block;
  color: rgba(255, 248, 231, 0.78);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

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

.footer-contact p {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 248, 231, 0.72);
}

.footer-contact-line {
  word-break: break-all;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 248, 231, 0.1);
  padding: 1.25rem var(--content-padding);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  font-size: 0.8125rem;
  color: rgba(255, 248, 231, 0.55);
}

.footer-copyright,
.footer-icp {
  margin: 0;
}

.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px 3px 12px 3px;
  border: 2px solid var(--c-gold);
  background: var(--c-brown);
  color: var(--c-gold);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background-color 0.2s ease, color 0.2s ease;
}

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

.back-to-top:hover {
  background: var(--c-red);
  border-color: var(--c-red);
  color: #fff;
}

@keyframes status-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(242, 183, 5, 0.5);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(242, 183, 5, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(242, 183, 5, 0);
  }
}

@media (min-width: 769px) {
  .site-nav {
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 1100px) {
  .header-trust {
    display: none;
  }
  .footer-main {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
  .footer-contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .nav-link {
    padding-inline: 0.9rem;
  }
}

@media (max-width: 768px) {
  .header-brand-layer {
    background-image: repeating-linear-gradient(
      135deg,
      rgba(242, 183, 5, 0.04) 0,
      rgba(242, 183, 5, 0.04) 1px,
      transparent 1px,
      transparent 10px
    );
  }

  .header-brand-inner {
    padding-block: 0.7rem;
    gap: 0.75rem;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    font-size: 22px;
    border-radius: 12px 3px 12px 3px;
  }

  .brand-name {
    font-size: 1.0625rem;
  }

  .brand-sub {
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
  }

  .header-status-panel {
    display: none;
  }

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

  .site-nav {
    max-height: 0;
    overflow: hidden;
    border-top: 0;
    border-bottom: 0;
    background: var(--c-cream);
    transition: max-height 0.3s ease;
  }

  .site-nav[data-open] {
    max-height: 90vh;
    overflow-y: auto;
    border-top: 2px solid var(--c-gold);
    border-bottom: 1px solid rgba(62, 39, 35, 0.1);
    box-shadow: 0 12px 24px rgba(38, 38, 38, 0.12);
  }

  .nav-inner {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 0.75rem;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid rgba(62, 39, 35, 0.06);
  }

  .nav-link::after {
    display: none;
  }

  .nav-link[aria-current="page"] {
    border-left: 3px solid var(--c-red);
    background-color: rgba(214, 40, 40, 0.04);
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.75rem var(--content-padding) 2rem;
  }

  .footer-contact {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.25rem;
    padding-block: 1rem;
  }

  .back-to-top {
    right: 1rem;
    bottom: 1rem;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  .brand-sub {
    display: none;
  }

  .brand-link {
    gap: 0.6rem;
  }

  .brand-name {
    font-size: 1rem;
    white-space: normal;
    line-height: 1.3;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .container {
    padding-inline: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto !important;
  }

  .scroll-progress {
    display: none;
  }

  .status-dot {
    animation: none;
  }
}
