/* =========================================
   1. Root Variables
   ========================================= */
:root {
  --neutral-900: #1A0A00;
  --brand-gold: #FFD700;
  --accent-red: #8B0000;
  --cream: #FDF0E0;
  --ink-brown: #3B2313;
  --white: #FFFFFF;
  --shadow-black: #000000;
  --transparent-gold: rgba(255,215,0,0.2);
  --muted-orange: #E87A00;
  --olive: #6B8E23;

  --font-headline: 'Source Han Serif SC', 'Noto Serif CJK SC', 'SimSun', serif;
  --font-body: 'Source Han Sans SC', 'Noto Sans CJK SC', 'Microsoft YaHei', sans-serif;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;

  --container-max: 1440px;
  --container-pad: 24px;

  --ease-fast: 0.2s ease;
  --ease-base: 0.35s ease;

  --shadow-sm: 0 2px 6px rgba(0,0,0,0.3);
  --shadow-md: 0 6px 18px rgba(0,0,0,0.4);
  --shadow-gold: 0 0 0 1px var(--transparent-gold), 0 8px 24px rgba(0,0,0,0.35);
}

/* =========================================
   2. Reset & Base
   ========================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-brown);
  background-color: var(--cream);
  min-height: 100vh;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  line-height: 1.2;
  font-weight: 900;
}

ul, ol {
  list-style: none;
}

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

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

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

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

/* =========================================
   3. Layout & Utilities
   ========================================= */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

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

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-red);
  background: rgba(139, 0, 0, 0.06);
  border: 1px solid rgba(139, 0, 0, 0.18);
  padding: 4px 12px;
  border-radius: 2px;
  font-family: var(--font-body);
}

.section-label::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--brand-gold);
  border: 1px solid var(--accent-red);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* =========================================
   4. Header
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--neutral-900);
  color: var(--white);
  box-shadow: var(--shadow-md);
  border-bottom: 3px solid var(--brand-gold);
}

.skip-link {
  position: absolute;
  left: var(--space-sm);
  top: var(--space-sm);
  z-index: 1100;
  background: var(--brand-gold);
  color: var(--neutral-900);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 4px;
  box-shadow: var(--shadow-md);
  transform: translateY(-200%);
  transition: transform var(--ease-base);
}

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

.site-header-upper {
  background-color: var(--accent-red);
  border-bottom: 1px solid rgba(255, 215, 0, 0.45);
}

.site-header-upper-inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 8px var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.site-header-slogan {
  font-family: var(--font-headline);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--brand-gold);
}

.site-header-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  padding-bottom: 2px;
  transition: color var(--ease-fast), border-color var(--ease-fast);
}

.site-header-link:hover,
.site-header-link:focus-visible {
  color: var(--brand-gold);
  border-color: var(--brand-gold);
}

.site-header-main {
  background: var(--neutral-900);
}

.site-header-main-inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 12px var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  min-height: 72px;
}

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

.brand-symbol {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #FFE66E, var(--brand-gold) 45%, #B8960A 100%);
  color: var(--neutral-900);
  font-family: var(--font-headline);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 2px var(--neutral-900),
    0 0 0 4px var(--brand-gold),
    var(--shadow-sm);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.5px;
}

.brand-tagline {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--brand-gold);
  text-transform: uppercase;
  font-family: var(--font-body);
}

/* =========================================
   5. Site Navigation
   ========================================= */
.site-nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav-item {
  position: relative;
}

.site-nav-link {
  display: block;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  border: 1px solid transparent;
  border-radius: 4px;
  transition:
    background-color var(--ease-fast),
    color var(--ease-fast),
    border-color var(--ease-fast);
}

.site-nav-link::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--brand-gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--ease-base);
}

.site-nav-link:hover,
.site-nav-link:focus-visible {
  color: var(--brand-gold);
  background: rgba(255, 215, 0, 0.08);
}

.site-nav-link:hover::after,
.site-nav-link:focus-visible::after {
  transform: scaleX(1);
}

.site-nav-link[aria-current="page"] {
  color: var(--brand-gold);
  background: rgba(255, 215, 0, 0.14);
  border-color: rgba(255, 215, 0, 0.3);
}

.site-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  border: 1px solid rgba(255, 215, 0, 0.4);
  background: rgba(255, 215, 0, 0.08);
  transition:
    background-color var(--ease-fast),
    border-color var(--ease-fast);
}

.site-nav-toggle:hover,
.site-nav-toggle:focus-visible,
.site-nav-toggle[data-open] {
  background: rgba(255, 215, 0, 0.18);
  border-color: var(--brand-gold);
}

.site-nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--brand-gold);
  transition: transform var(--ease-base), opacity var(--ease-base);
}

.site-nav-toggle[data-open] .site-nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-nav-toggle[data-open] .site-nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-nav-toggle[data-open] .site-nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================
   6. Footer
   ========================================= */
.site-footer {
  background: var(--neutral-900);
  color: var(--cream);
  position: relative;
  margin-top: var(--space-2xl);
  border-top: 4px solid var(--brand-gold);
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 215, 0, 0.18);
}

.site-footer-ornament {
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--brand-gold) 0 12px,
    transparent 12px 18px,
    var(--accent-red) 18px 22px,
    transparent 22px 28px
  );
  opacity: 0.4;
}

.site-footer-container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: var(--space-xl) var(--container-pad) var(--space-lg);
}

.site-footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255, 215, 0, 0.15);
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-brand {
  font-family: var(--font-headline);
  font-size: 28px;
  font-weight: 900;
  color: var(--brand-gold);
  letter-spacing: 4px;
}

.footer-slogan {
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--cream);
  opacity: 0.85;
}

.footer-trust {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(253, 240, 224, 0.75);
  max-width: 38em;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-title {
  font-family: var(--font-headline);
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-gold);
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-title::before {
  content: '';
  width: 16px;
  height: 2px;
  background: var(--accent-red);
  flex-shrink: 0;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav-list a {
  font-size: 14px;
  color: var(--cream);
  transition: color var(--ease-fast);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}

.footer-nav-list a:hover,
.footer-nav-list a:focus-visible {
  color: var(--brand-gold);
  border-bottom-color: var(--brand-gold);
}

.footer-contact .footer-nav-list li {
  font-size: 14px;
  padding-left: 18px;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 6px;
}

.footer-contact .footer-nav-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  background: var(--accent-red);
  transform: rotate(45deg);
}

.site-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding-top: var(--space-md);
  font-size: 13px;
  color: rgba(253, 240, 224, 0.65);
}

/* =========================================
   7. Buttons
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 4px;
  border: 2px solid transparent;
  transition:
    background-color var(--ease-base),
    color var(--ease-base),
    border-color var(--ease-base),
    box-shadow var(--ease-base);
  cursor: pointer;
  text-align: center;
}

.btn-gold {
  background: var(--brand-gold);
  color: var(--neutral-900);
  border-color: var(--brand-gold);
}

.btn-gold:hover,
.btn-gold:focus-visible {
  background: var(--neutral-900);
  color: var(--brand-gold);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border-color: var(--brand-gold);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--brand-gold);
  color: var(--neutral-900);
}

/* =========================================
   8. Breadcrumb
   ========================================= */
.breadcrumb {
  font-size: 14px;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(59, 35, 19, 0.15);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb-item:not(:last-child)::after {
  content: '/';
  opacity: 0.4;
}

.breadcrumb-link {
  color: var(--accent-red);
  font-weight: 700;
  transition: color var(--ease-fast);
}

.breadcrumb-link:hover,
.breadcrumb-link:focus-visible {
  color: var(--ink-brown);
}

.breadcrumb-item[aria-current="page"] {
  color: var(--ink-brown);
  font-weight: 400;
}

/* =========================================
   9. Cards & Grids
   ========================================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-lg);
}

.card {
  background: var(--white);
  border: 1px solid rgba(59, 35, 19, 0.12);
  border-radius: 6px;
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition:
    box-shadow var(--ease-base),
    border-color var(--ease-base),
    transform var(--ease-base);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 215, 0, 0.6);
  transform: translateY(-2px);
}

.card--gold {
  background: linear-gradient(135deg, var(--neutral-900), #3B1A05);
  color: var(--cream);
  border-color: var(--brand-gold);
}

.card--cream {
  background: var(--cream);
  border-color: rgba(59, 35, 19, 0.15);
}

/* =========================================
   10. Figure Placeholder
   ========================================= */
.figure {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, var(--transparent-gold) 0%, transparent 50%),
    var(--cream);
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  border: 1px solid rgba(59, 35, 19, 0.15);
}

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

.figure--square {
  aspect-ratio: 1 / 1;
}

.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================
   11. Reveal Animation
   ========================================= */
[data-reveal] {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html.has-js [data-reveal]:not([data-revealed]) {
  opacity: 0;
  transform: translateY(24px);
}

html.has-js [data-reveal] {
  will-change: opacity, transform;
}

/* =========================================
   12. Responsive
   ========================================= */
@media (max-width: 992px) {
  .site-nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--neutral-900);
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    border-bottom: 3px solid var(--brand-gold);
    box-shadow: var(--shadow-md);
    padding: var(--space-md) var(--container-pad) var(--space-lg);
    max-height: min(70vh, 480px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity var(--ease-base),
      transform var(--ease-base),
      visibility var(--ease-base);
  }

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

  .site-nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .site-nav-link {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.12);
    border-radius: 4px;
  }

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

  .site-footer-main {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  :root {
    --container-pad: 16px;
  }

  .site-header-main-inner {
    min-height: 64px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .brand-name {
    font-size: 16px;
  }

  .brand-symbol {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .brand-tagline {
    font-size: 9px;
    letter-spacing: 2px;
  }

  .site-header-slogan {
    font-size: 12px;
    letter-spacing: 2px;
  }

  .site-header-link {
    font-size: 12px;
  }

  .site-footer-main {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-contact .footer-nav-list li {
    font-size: 13px;
  }
}

@media (max-width: 576px) {
  .site-header-upper-inner {
    flex-direction: column;
    gap: 2px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .site-header-slogan {
    font-size: 12px;
  }

  .site-header-link {
    font-size: 12px;
  }

  .site-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* =========================================
   13. 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;
  }

  html.has-js [data-reveal]:not([data-revealed]) {
    opacity: 1;
    transform: none;
    transition: none !important;
  }
}
