/* ===== Reset & Tokens ===== */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --color-red: #D0342B;
  --color-gold: #D4AF37;
  --color-dark: #2A2A2A;
  --color-cream: #F7F3EB;
  --color-navy: #1E3050;
  --color-cyan: #00E0C6;
  --color-purple: #9B5DE5;
  --color-sand: #E8E1D6;
  --font-heading: "Songti SC", "Noto Serif SC", "SimSun", "STSong", "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --content-max: 1200px;
  --header-h: 68px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 72px;
  --reveal-delay: 0s;
}

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

body {
  margin: 0;
  background: var(--color-cream);
  color: var(--color-dark);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1.3;
  color: var(--color-dark);
  margin: 0 0 0.6em;
}

p { margin: 0 0 1.2em; }

a {
  color: var(--color-navy);
  text-decoration-color: rgba(212, 175, 55, 0.45);
  text-underline-offset: 4px;
  transition: color 0.25s ease;
}
a:hover { color: var(--color-red); }

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

ul, ol { margin: 0; padding: 0; }

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

/* ===== Skip Link ===== */
.skip-link {
  position: fixed;
  top: -100px;
  left: 12px;
  z-index: 2000;
  padding: 12px 20px;
  background: var(--color-dark);
  color: var(--color-cream);
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: top 0.25s ease;
}
.skip-link:focus {
  top: 12px;
  color: var(--color-cream);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 243, 235, 0.96);
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}

.header-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 900;
  color: var(--color-red);
  letter-spacing: 0.08em;
  line-height: 1;
  text-shadow: 2px 2px 0 rgba(212, 175, 55, 0.3);
  white-space: nowrap;
}

.brand-slogan {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 11px;
  letter-spacing: 0.45em;
  color: var(--color-gold);
  white-space: nowrap;
  line-height: 1.4;
  margin-left: 4px;
}

.nav-panel {
  display: block;
}

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

.nav-item {
  counter-increment: nav-counter;
}

.nav-link {
  position: relative;
  display: block;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-dark);
  text-decoration: none;
  letter-spacing: 0.04em;
  border-radius: 6px;
  white-space: nowrap;
}

.nav-link::before {
  content: "0" counter(nav-counter) " /";
  font-family: var(--font-heading);
  font-size: 11px;
  color: var(--color-gold);
  letter-spacing: 0.02em;
  margin-right: 5px;
  font-weight: 900;
}

.nav-link:hover {
  color: var(--color-red);
  background: rgba(232, 225, 214, 0.4);
}

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

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-gold), rgba(212, 175, 55, 0.1));
}

.nav-toggle {
  display: none;
}

/* Header gate */
.header-gate {
  position: relative;
  height: 20px;
  overflow: visible;
}

.gate-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--color-gold) 6%, var(--color-gold) 94%, transparent 100%);
  opacity: 0.6;
}

.gate-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--color-gold);
  background: var(--color-cream);
  z-index: 1;
}

.gate-circle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-red);
}

/* ===== Float Home ===== */
.float-home {
  position: fixed;
  left: 20px;
  bottom: 24px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-red);
  color: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(208, 52, 43, 0.35);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.float-home:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 8px 24px rgba(208, 52, 43, 0.5);
  color: var(--color-cream);
}

.float-home-char {
  line-height: 1;
  display: block;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-dark);
  color: var(--color-cream);
  border-top: 1px solid rgba(212, 175, 55, 0.25);
}

.footer-gate {
  position: relative;
  height: 26px;
  background: var(--color-dark);
  border-top: 2px solid var(--color-gold);
}

.footer-gate::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 32px;
  border: 2px solid var(--color-gold);
  border-bottom: none;
  border-radius: 36px 36px 0 0;
  background: transparent;
}

.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 48px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 900;
  color: var(--color-red);
  letter-spacing: 0.1em;
  margin: 0 0 4px;
  text-shadow: 2px 2px 0 rgba(212, 175, 55, 0.25);
}

.footer-slogan {
  font-size: 14px;
  color: var(--color-gold);
  letter-spacing: 0.2em;
  margin: 0 0 16px;
}

.footer-desc {
  font-size: 14px;
  color: rgba(247, 243, 235, 0.72);
  line-height: 1.8;
  margin: 0;
}

.footer-heading {
  font-size: 15px;
  color: var(--color-gold);
  letter-spacing: 0.25em;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.footer-link-list,
.footer-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-link-list li {
  margin-bottom: 6px;
}

.footer-link {
  color: var(--color-cream);
  text-decoration-color: rgba(212, 175, 55, 0.5);
  text-underline-offset: 4px;
  transition: color 0.25s ease, padding-left 0.25s ease;
  font-size: 15px;
}

.footer-link:hover {
  color: var(--color-gold);
  padding-left: 6px;
}

.footer-info-list li {
  margin-bottom: 6px;
}

.footer-meta {
  font-size: 14px;
  color: rgba(247, 243, 235, 0.7);
  margin: 0;
  line-height: 1.8;
}

.footer-bottom {
  border-top: 1px solid rgba(247, 243, 235, 0.08);
}

.footer-bottom-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 16px 24px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.footer-copy {
  font-size: 13px;
  color: rgba(247, 243, 235, 0.6);
  margin: 0;
}

.footer-icp {
  font-size: 13px;
  color: rgba(247, 243, 235, 0.6);
  margin: 0;
  font-family: var(--font-heading);
  letter-spacing: 0.06em;
}

.footer-trust {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 12px 24px 24px;
  font-size: 12px;
  line-height: 1.8;
  color: rgba(247, 243, 235, 0.45);
}

/* ===== Content Shell ===== */
.content-shell {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0 0 24px;
  padding: 16px 0 0;
  font-size: 14px;
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li + li::before {
  content: "›";
  color: var(--color-gold);
  font-size: 15px;
  margin: 0 8px;
  line-height: 1;
}

.breadcrumb a {
  color: var(--color-navy);
  text-decoration-color: var(--color-gold);
  text-underline-offset: 4px;
}

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

/* ===== Page Hero ===== */
.page-hero {
  position: relative;
  background: var(--color-navy);
  color: var(--color-cream);
  padding: clamp(64px, 10vw, 110px) 24px;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border: 2px solid rgba(212, 175, 55, 0.28);
  border-radius: 50%;
  pointer-events: none;
}

.page-hero::after {
  content: "";
  position: absolute;
  left: -40px;
  bottom: -80px;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(0, 224, 198, 0.3);
  border-radius: 50%;
  pointer-events: none;
}

.page-hero-title {
  position: relative;
  z-index: 1;
  max-width: 900px;
  font-family: var(--font-heading);
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 900;
  color: var(--color-cream);
  letter-spacing: 0.05em;
  line-height: 1.25;
  text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.25);
  margin: 0;
}

.page-hero-title em {
  font-style: normal;
  color: var(--color-gold);
}

.page-hero-meta {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 1;
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 0.4em;
  font-size: 12px;
  color: rgba(247, 243, 235, 0.5);
  text-transform: lowercase;
}

/* ===== Section Head ===== */
.section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 28px;
}

.section-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border: 2px solid var(--color-gold);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 900;
  color: var(--color-red);
  background: var(--color-cream);
}

.section-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--color-gold), rgba(212, 175, 55, 0.1));
}

/* ===== Card Grid & Card ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  position: relative;
  padding: 26px 24px;
  background: var(--color-sand);
  border: 1px solid transparent;
  border-radius: 14px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(42, 42, 42, 0.12);
  border-color: rgba(212, 175, 55, 0.35);
}

.card--tone-red {
  background: linear-gradient(145deg, rgba(208, 52, 43, 0.12), rgba(208, 52, 43, 0.02));
}

.card--tone-navy {
  background: linear-gradient(145deg, rgba(30, 48, 80, 0.12), rgba(30, 48, 80, 0.02));
}

.card--tone-dark {
  background: var(--color-dark);
  color: var(--color-cream);
}

.card--tone-dark .card-title {
  color: var(--color-cream);
}

.card--tone-dark .card-text {
  color: rgba(247, 243, 235, 0.72);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 900;
  margin: 0 0 10px;
  color: var(--color-dark);
}

.card-text {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(42, 42, 42, 0.76);
  margin: 0 0 16px;
}

.card-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-red);
  text-decoration-color: var(--color-gold);
  text-underline-offset: 4px;
}

.card-link:hover {
  color: var(--color-red);
  text-decoration-color: var(--color-red);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--color-red);
  color: var(--color-cream);
  border-color: var(--color-red);
}

.btn-primary:hover {
  background: #b92e26;
  border-color: #b92e26;
  color: var(--color-cream);
}

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

.btn-ghost:hover {
  background: var(--color-dark);
  border-color: var(--color-dark);
  color: var(--color-cream);
}

/* ===== Badge ===== */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: var(--color-purple);
  color: var(--color-cream);
  letter-spacing: 0.04em;
}

/* ===== Image Frame ===== */
.img-frame {
  position: relative;
  height: 0;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--color-sand) 0%, rgba(212, 175, 55, 0.25) 100%);
}

.ratio-4-3 {
  padding-top: 75%;
}

.ratio-16-9 {
  padding-top: 56.25%;
}

.img-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 18px;
  letter-spacing: 0.3em;
  color: rgba(42, 42, 42, 0.45);
  border: 1px dashed rgba(42, 42, 42, 0.18);
  border-radius: 14px;
  background: rgba(247, 243, 235, 0.25);
}

.img-frame img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

/* ===== Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ===== Vertical Text ===== */
.vertical-text {
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 0.3em;
}

/* ===== Note Callout ===== */
.note-callout {
  padding: 18px 22px;
  border-left: 4px solid var(--color-gold);
  background: rgba(212, 175, 55, 0.08);
  border-radius: 0 10px 10px 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-dark);
}

.note-callout strong {
  color: var(--color-red);
  font-weight: 800;
}

/* ===== Scroll Progress ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--color-red), var(--color-gold));
  border-radius: 0 2px 2px 0;
  z-index: 2100;
  pointer-events: none;
  transition: width 0.1s linear;
}

/* ===== Responsive: Tablet ===== */
@media (max-width: 959px) {
  :root {
    --header-h: 60px;
  }

  .header-inner {
    padding: 0 16px;
  }

  .brand-logo {
    font-size: 24px;
  }

  .brand-slogan {
    writing-mode: horizontal-tb;
    font-size: 10px;
    letter-spacing: 0.18em;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0;
    background: var(--color-cream);
    border: 2px solid var(--color-dark);
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
  }

  .nav-toggle-bar {
    display: block;
    width: 17px;
    height: 2px;
    border-radius: 1px;
    background: var(--color-dark);
    transition: transform 0.3s ease, opacity 0.3s 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);
  }

  .nav-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 16px 20px 22px;
    background: var(--color-cream);
    border-bottom: 2px solid var(--color-gold);
    box-shadow: 0 14px 32px rgba(42, 42, 42, 0.1);
  }

  .nav-panel[data-open] {
    display: block;
  }

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

  .nav-link {
    padding: 12px 16px;
    font-size: 17px;
  }

  .nav-link[aria-current="page"]::after {
    left: 16px;
    right: auto;
    width: 28px;
    bottom: 6px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    padding-top: 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ===== Responsive: Mobile ===== */
@media (max-width: 639px) {
  body {
    font-size: 15px;
  }

  .header-gate {
    height: 14px;
  }

  .gate-circle {
    width: 10px;
    height: 10px;
  }

  .brand-logo {
    font-size: 22px;
  }

  .brand-slogan {
    display: none;
  }

  .float-home {
    left: 10px;
    bottom: 16px;
    width: 42px;
    height: 42px;
    font-size: 17px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 20px 24px;
  }

  .footer-gate::before {
    width: 44px;
    height: 22px;
  }

  .footer-bottom-inner {
    padding: 14px 20px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .footer-trust {
    padding: 10px 20px 20px;
  }

  .content-shell {
    padding: 32px 16px 56px;
  }

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

  .page-hero-meta {
    display: none;
  }
}

/* ===== 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;
    transition-delay: 0s !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .scroll-progress {
    transition: none;
  }

  .skip-link {
    transition: none;
  }
}
