:root {
  --red: #C3272B;
  --gold: #C9A063;
  --dark: #2D2D2D;
  --cream: #F5F1E8;
  --stone: #8B8B7A;
  --moss: #5C6F4F;
  --clay: #B66A50;
  --ink: #1A1A1A;
  --font-heading: "Noto Serif SC", "Songti SC", "STSong", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --container: 1200px;
}

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

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--dark);
  background-color: var(--cream);
  background-image:
    linear-gradient(rgba(139, 139, 122, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 139, 122, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
}

main {
  flex: 1;
}

main:focus-visible {
  outline: none;
}

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

ul,
ol {
  list-style: none;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.3;
}

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

::selection {
  background: var(--red);
  color: #ffffff;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 10px 18px;
  background: var(--ink);
  color: #ffffff;
  font-size: 0.875rem;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

.skip-link:focus-visible {
  top: 8px;
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(245, 241, 232, 0.97);
  box-shadow: 0 1px 0 rgba(45, 45, 45, 0.06);
}

.header-top {
  position: relative;
  padding: 14px 0 8px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  position: relative;
  display: block;
  width: 42px;
  height: 42px;
  overflow: hidden;
  background: var(--red);
  box-shadow: 3px 3px 0 rgba(201, 160, 99, 0.55);
}

.brand-mark::before {
  content: "";
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--gold);
}

.brand-mark::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 2px;
  width: 60px;
  height: 8px;
  background: var(--gold);
  transform: rotate(-45deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--dark);
}

.brand-sub {
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  color: var(--stone);
  text-transform: uppercase;
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-index {
  padding-right: 12px;
  border-right: 1px solid var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--stone);
  white-space: nowrap;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-item {
  margin: 0;
}

.nav-link {
  position: relative;
  display: block;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--dark);
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-link::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease-out;
}

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

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

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

.nav-toggle {
  display: none;
}

.nav-toggle-line {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--gold);
  background: rgba(255, 255, 255, 0.35);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: var(--dark);
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--moss);
  box-shadow: 0 0 0 3px rgba(92, 111, 79, 0.2);
}

.header-divider {
  display: flex;
  height: 6px;
}

.divider-line {
  flex: 1 1 auto;
  background: var(--ink);
}

.divider-red {
  position: relative;
  width: 140px;
  overflow: hidden;
  background: var(--red);
}

.divider-red::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 42%, var(--gold) 43% 57%, transparent 58%);
}

.site-footer {
  margin-top: auto;
  color: #d8d2c5;
  background-color: var(--ink);
}

.footer-main {
  padding: 48px 0 40px;
  background: linear-gradient(180deg, #242422 0%, var(--ink) 100%);
}

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

.footer-brand-mark {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  overflow: hidden;
  background: var(--red);
  box-shadow: 2px 2px 0 rgba(201, 160, 99, 0.45);
}

.footer-brand-mark::after {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  width: 48px;
  height: 6px;
  background: var(--gold);
  transform: rotate(-45deg);
}

.brand-cn {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff9f0;
}

.brand-desc {
  max-width: 42ch;
  margin-bottom: 16px;
  font-size: 0.875rem;
  line-height: 1.8;
  color: rgba(216, 210, 197, 0.7);
}

.footer-trust {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid rgba(201, 160, 99, 0.4);
  color: var(--gold);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col-index {
  margin-bottom: 2px;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--gold);
}

.footer-col-title {
  display: block;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(201, 160, 99, 0.3);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.28em;
  color: #fff9f0;
}

.footer-links li {
  margin-bottom: 10px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(216, 210, 197, 0.75);
}

.footer-links a {
  display: inline-block;
  color: inherit;
  transition: color 0.15s ease, transform 0.15s ease;
}

.footer-links a:hover {
  color: var(--gold);
  transform: translateX(2px);
}

.footer-contact .footer-links li {
  color: rgba(216, 210, 197, 0.6);
}

.footer-bottom {
  padding: 16px 0;
  border-top: 1px solid rgba(201, 160, 99, 0.2);
  background: #111111;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  font-size: 0.8rem;
  color: #a7a294;
}

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

.footer-legal {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-legal a {
  color: inherit;
  transition: color 0.15s ease;
}

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

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

.page-container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-block: clamp(24px, 5vw, 56px);
  padding-inline: clamp(16px, 4vw, 40px);
  flex: 1;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.82rem;
  color: var(--stone);
}

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

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

.breadcrumb span + span::before {
  content: "/";
  margin-right: 8px;
  color: var(--gold);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-left: 10px;
  border-left: 3px solid var(--red);
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.section-label::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  background: var(--gold);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.button-primary {
  background: var(--red);
  border-color: var(--red);
  color: #ffffff;
  box-shadow: 3px 3px 0 rgba(45, 45, 45, 0.16);
}

.button-primary:hover {
  background: #a41f23;
  border-color: #a41f23;
  color: #ffffff;
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 rgba(45, 45, 45, 0.14);
}

.button-ghost {
  background: transparent;
  border-color: var(--gold);
  color: var(--dark);
}

.button-ghost:hover {
  background: rgba(201, 160, 99, 0.15);
  border-color: var(--clay);
  color: var(--red);
}

.grid {
  display: grid;
  gap: clamp(18px, 3vw, 32px);
  margin-bottom: 24px;
}

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

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

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

.card {
  position: relative;
  padding: 22px;
  border: 1px solid rgba(201, 160, 99, 0.34);
  border-top: 3px solid var(--gold);
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 2px 2px 0 rgba(45, 45, 45, 0.06);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 4px 8px 0 rgba(45, 45, 45, 0.08);
}

.card-accent {
  border-top-color: var(--red);
}

.image-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gold);
  background: #e5decF;
  box-shadow: 5px 5px 0 rgba(45, 45, 45, 0.1);
}

.image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(139, 139, 122, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 139, 122, 0.12) 1px, transparent 1px);
  background-size: 20px 20px;
}

.image-frame::after {
  content: "";
  position: absolute;
  top: -15%;
  left: -20%;
  z-index: 3;
  width: 55%;
  height: 130%;
  pointer-events: none;
  background: rgba(201, 160, 99, 0.18);
  transform: translateX(-30%) rotate(12deg);
  transition: transform 0.35s ease;
}

.image-frame:hover::after {
  transform: translateX(140%) rotate(12deg);
}

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

.image-mask {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(195, 39, 43, 0.25) 0%, rgba(195, 39, 43, 0) 45%);
}

.caption {
  display: block;
  margin-top: 8px;
  padding-left: 10px;
  border-left: 2px solid var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--stone);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 0;
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--red), var(--gold));
}

@media (max-width: 960px) {
  .header-top {
    padding: 10px 0;
  }

  .nav-wrap {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px 24px 24px;
    background: #fbf8f0;
    border-bottom: 3px solid var(--red);
    box-shadow: 0 24px 32px rgba(45, 45, 45, 0.12);
  }

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

  .site-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-index {
    display: none;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .nav-item + .nav-item {
    border-top: 1px solid rgba(139, 139, 122, 0.18);
  }

  .nav-link {
    padding: 13px 4px;
    border-bottom: 0;
  }

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

  .nav-link[aria-current="page"] {
    padding-left: 12px;
    background: rgba(195, 39, 43, 0.04);
    border-left: 3px solid var(--red);
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    background: var(--red);
    box-shadow: 3px 3px 0 rgba(45, 45, 45, 0.15);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: translateY(8px) 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(-8px) rotate(-45deg);
  }

  .nav-status {
    justify-content: center;
    margin-top: 12px;
  }

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

  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .brand-text {
    font-size: 1.4rem;
  }

  .brand-sub {
    letter-spacing: 0.3em;
  }
}

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

  .image-frame::after {
    transition: none;
    transform: none;
  }
}
