/* ========== Reset ========== */
:root {
  --font-head: "Noto Sans SC", "Source Han Sans CN", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --color-primary: #D32F2F;
  --color-primary-deep: #8B0000;
  --color-gold: #D4AF37;
  --color-navy: #1B2A4A;
  --color-ink: #1A1A1A;
  --color-paper: #F7F3EA;
  --color-gray: #E5E0D5;
  --color-white: #FFFFFF;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-soft: 0 8px 24px rgba(26, 18, 18, .08);
  --shadow-deep: 0 14px 34px rgba(26, 18, 18, .22);
  --transition-fast: .2s ease;
  --transition-base: .32s ease;
  --space-page: clamp(20px, 4vw, 48px);
  --container: 1240px;
}

*,
*::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: hidden;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-ink);
  background: var(--color-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

p {
  text-wrap: pretty;
}

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

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

ul,
ol {
  list-style: none;
}

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

::selection {
  background: var(--color-primary);
  color: var(--color-white);
}

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

/* ========== Skip Link ========== */
.skip-link {
  position: fixed;
  top: -120%;
  left: 16px;
  z-index: 2000;
  padding: 10px 22px;
  font-weight: 700;
  font-size: 14px;
  color: var(--color-ink);
  background: var(--color-gold);
  border-radius: 0 0 12px 12px;
  box-shadow: var(--shadow-deep);
  transition: top var(--transition-fast);
}

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

/* ========== Layout ========== */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-page);
}

.section {
  padding-block: clamp(52px, 8vw, 96px);
}

.section-paper {
  background: var(--color-paper);
}

.section-gray {
  background: var(--color-gray);
}

.section-dark {
  background: linear-gradient(128deg, var(--color-navy), var(--color-primary-deep));
  color: var(--color-white);
}

/* ========== Section Head ========== */
.section-head {
  max-width: 680px;
  margin-bottom: 36px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--color-primary);
  text-transform: uppercase;
}

.section-label::before {
  content: "";
  flex-shrink: 0;
  width: 26px;
  height: 4px;
  border-radius: 2px;
  background: var(--color-gold);
  transform: skewX(-24deg);
}

.section-dark .section-label {
  color: var(--color-gold);
}

.section-title {
  margin-top: 10px;
  font-size: clamp(28px, 4.4vw, 46px);
  color: inherit;
}

.section-lead {
  margin-top: 10px;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(0, 0, 0, .62);
}

.section-dark .section-lead {
  color: rgba(255, 255, 255, .72);
}

/* ========== Button ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-align: center;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 6px 18px rgba(211, 47, 47, .28);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-primary-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(211, 47, 47, .36);
}

.btn-gold-outline {
  border: 1.5px solid var(--color-gold);
  color: var(--color-gold);
}

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

/* ========== Badge ========== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.badge-red {
  background: var(--color-primary);
  color: var(--color-white);
}

.badge-gold {
  background: var(--color-gold);
  color: var(--color-ink);
}

/* ========== Breadcrumb ========== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-bottom: 24px;
  font-size: 14px;
  color: rgba(0, 0, 0, .5);
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.breadcrumb li + li::before {
  content: "／";
  color: var(--color-gray);
  margin-inline: 4px;
}

.breadcrumb a {
  color: var(--color-primary);
  font-weight: 600;
}

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

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

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(112deg, var(--color-navy) 0%, var(--color-primary-deep) 68%, var(--color-primary) 130%);
  color: var(--color-white);
  box-shadow: var(--shadow-deep);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg, transparent 0, transparent 16px, rgba(255, 255, 255, .03) 16px, rgba(255, 255, 255, .03) 20px);
  pointer-events: none;
  z-index: 0;
}

.site-header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold) 0%, rgba(212, 175, 55, 0) 65%);
  pointer-events: none;
  z-index: 2;
}

.header-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 16px;
  border-bottom: 1px solid rgba(212, 175, 55, .22);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--color-gold);
  text-transform: uppercase;
}

.topline-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, .18);
}

.topline-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-wrap {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin-inline: auto;
  padding: 14px var(--space-page) 0;
}

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

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
  line-height: 1;
}

.brand-logo {
  display: inline-block;
  font-family: var(--font-head);
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: .04em;
  color: var(--color-white);
}

.logo-accent {
  position: relative;
  display: inline-block;
  margin-left: 2px;
  color: var(--color-gold);
}

.logo-accent::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: var(--color-primary);
  transform: skewX(-24deg);
}

.brand-slogan {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .24em;
  color: rgba(255, 255, 255, .7);
  white-space: nowrap;
}

.header-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.stat-chip {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 82px;
  padding: 8px 16px 8px 20px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, .32);
  border-radius: var(--radius-md);
  background: rgba(11, 22, 42, .42);
}

.stat-chip::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-gold);
  transform: skewX(-18deg) translateX(-1px);
}

.stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .6);
}

.stat-num {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.3;
  color: var(--color-white);
}

/* ========== Nav Toggle ========== */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .07);
  transition: background var(--transition-fast);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: rgba(255, 255, 255, .13);
}

.nav-toggle-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 22px;
}

.nav-toggle-line {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--color-white);
  transition: transform var(--transition-fast), opacity var(--transition-fast), width var(--transition-fast);
}

.nav-toggle-line:nth-child(1) {
  width: 100%;
}

.nav-toggle-line:nth-child(2) {
  width: 72%;
}

.nav-toggle-line:nth-child(3) {
  width: 100%;
}

.nav-toggle-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .8);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  width: 100%;
  transform: translateY(6px) rotate(45deg);
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  width: 100%;
  transform: translateY(-6px) rotate(-45deg);
}

/* ========== Site Nav ========== */
.site-nav {
  position: relative;
  z-index: 5;
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-list::-webkit-scrollbar {
  display: none;
}

.nav-item {
  flex-shrink: 0;
}

.nav-link {
  display: block;
  position: relative;
  padding: 13px 18px 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .05em;
  color: rgba(255, 255, 255, .82);
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--color-gold);
  transform: skewX(-28deg) scaleX(0);
  transform-origin: left center;
  transition: transform .24s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--color-white);
}

.nav-link[aria-current="page"] {
  color: var(--color-gold);
}

.nav-link[aria-current="page"]::after,
.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: skewX(-28deg) scaleX(1);
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-primary));
  transform: scaleX(0);
  transform-origin: left bottom;
  z-index: 3;
  pointer-events: none;
}

/* ========== Footer ========== */
.site-footer {
  position: relative;
  background: linear-gradient(142deg, var(--color-primary-deep) 0%, var(--color-navy) 100%);
  color: rgba(255, 255, 255, .78);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-primary) 45%, transparent 85%);
  z-index: 2;
}

.site-footer::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, .12) 0%, transparent 68%);
  pointer-events: none;
}

.footer-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 2fr 1.1fr 1fr 1.5fr;
  gap: 48px;
  max-width: var(--container);
  margin-inline: auto;
  padding: 56px var(--space-page) 44px;
}

.footer-brand {
  max-width: 360px;
}

.footer-logo {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--color-white);
}

.footer-logo-accent {
  color: var(--color-gold);
}

.footer-desc {
  margin: 14px 0 22px;
  max-width: 340px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .65);
}

.footer-trust {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .45);
}

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

.footer-title {
  position: relative;
  margin-bottom: 20px;
  padding-left: 14px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--color-gold);
  text-transform: uppercase;
}

.footer-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--color-gold);
  transform: translateY(-50%) rotate(45deg);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-links a {
  display: inline-block;
  padding: 5px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, .72);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

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

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-phone {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: .02em;
  color: var(--color-white);
}

.contact-email {
  font-size: 15px;
  color: var(--color-gold);
  word-break: break-all;
}

.contact-address {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .75);
}

.contact-note {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, .45);
}

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: 10px;
  padding: 9px 18px;
  border: 1px solid rgba(212, 175, 55, .65);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-gold);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.footer-contact-link:hover,
.footer-contact-link:focus-visible {
  background: var(--color-gold);
  color: var(--color-ink);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  max-width: var(--container);
  margin-inline: auto;
  padding: 18px var(--space-page);
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
}

.footer-copy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.footer-icp {
  font-size: 12px;
  letter-spacing: .06em;
}

/* ========== Image Frame ========== */
.image-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-navy), var(--color-primary-deep));
}

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

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

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.image-frame:hover img {
  transform: scale(1.04);
}

.img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  font-size: 14px;
  letter-spacing: .1em;
  text-align: center;
  color: rgba(255, 255, 255, .45);
}

/* ========== Filter & Tag ========== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.tag-filter {
  padding: 8px 18px;
  border: 1px solid var(--color-gray);
  border-radius: var(--radius-pill);
  background: var(--color-white);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-ink);
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.tag-filter:hover,
.tag-filter:focus-visible,
.tag-filter[data-active] {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.tag-filter[data-active] {
  box-shadow: 0 4px 12px rgba(211, 47, 47, .24);
}

/* ========== Data Card ========== */
.data-card {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.data-card::before {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin-bottom: 14px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-gold));
  transform: skewX(-18deg);
}

.data-card h3,
.data-card h4 {
  margin-bottom: 8px;
  font-size: 18px;
}

/* ========== Reveal ========== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.22, 1, .36, 1);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .header-stats {
    display: none;
  }

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

  .nav-link {
    padding-inline: 14px;
  }
}

@media (max-width: 768px) {
  .header-wrap {
    padding: 12px 16px 0;
  }

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

  .brand-slogan {
    font-size: 11px;
    letter-spacing: .12em;
  }

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

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    margin-top: 0;
    border-top: 0;
    border-radius: 0 0 18px 18px;
    background: linear-gradient(180deg, var(--color-navy) 0%, var(--color-primary-deep) 100%);
    box-shadow: var(--shadow-deep);
    z-index: 60;
  }

  .site-nav[data-open] {
    display: block;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 16px;
    overflow: visible;
  }

  .nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }

  .nav-item:last-child {
    border-bottom: 0;
  }

  .nav-link {
    padding: 14px 8px;
    font-size: 16px;
    color: rgba(255, 255, 255, .9);
  }

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

  .scroll-progress {
    display: none;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 16px 28px;
  }

  .footer-brand {
    max-width: none;
  }

  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 18px 16px;
    text-align: center;
  }
}

/* ========== Reduced Motion ========== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll-progress {
    display: none;
  }
}
