/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Source Han Serif SC", "Noto Serif SC", "SimSun", serif;
  line-height: 1.8;
  background-color: #FFF8E1;
  color: #3E2723;
  -webkit-font-smoothing: antialiased;
}
ul,
ol {
  list-style: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}
input,
select,
textarea {
  font: inherit;
}
:focus-visible {
  outline: 3px solid #FFD700;
  outline-offset: 2px;
  border-radius: 2px;
}
::selection {
  background-color: #FFD700;
  color: #3E2723;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "方正字迹-邢体草书简体", "Ma Shan Zheng", "STKaiti", "KaiTi", serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.container-standard {
  width: min(1200px, 92vw);
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  top: -100%;
  left: 12px;
  z-index: 2000;
  background: #2B2020;
  color: #FFF8E1;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: top 0.18s;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
}

/* ===== CSS Variables ===== */
:root {
  --paper: #FFF8E1;
  --ink: #3E2723;
  --deep-ink: #2B2020;
  --cinnabar: #C62828;
  --vermilion: #B71C1C;
  --gold: #FFD700;
  --copper: #C49A6C;
  --apricot: #FFB300;
  --gray-paper: #F5E6C8;
  --heading-font: "方正字迹-邢体草书简体", "Ma Shan Zheng", "STKaiti", "KaiTi", serif;
  --body-font: "Source Han Serif SC", "Noto Serif SC", "SimSun", serif;
  --shadow-slight: 0 2px 8px rgba(228, 130, 52, 0.08);
  --border-fancy: 1px dashed rgba(196, 154, 108, 0.68);
}

/* ===== Section utility ===== */
.section {
  padding: 3.25rem 0 2.5rem;
  position: relative;
}
.section__title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  color: var(--deep-ink);
  margin-bottom: 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.section__title::before {
  content: "";
  width: 0.4rem;
  height: 1.6rem;
  background-color: var(--cinnabar);
  display: inline-block;
  transform: rotate(-8deg);
}
.section__title--stamp {
  position: relative;
  padding: 0.15rem 1.2rem 0.15rem 2rem;
  border: 2px solid var(--copper);
  border-radius: 30px 8px 30px 8px;
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--copper);
  background-color: rgba(255, 243, 220, 0.6);
}
.section__subtitle {
  font-size: 0.95rem;
  color: var(--cinnabar);
  border-left: 3px solid var(--gold);
  padding-left: 0.7rem;
  margin: 0.2rem 0 1.5rem;
  letter-spacing: 0.04em;
}
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--copper);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}
.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  color: var(--vermilion);
  text-decoration: underline;
}

/* ===== Header ===== */
.site-header {
  background-color: #FFF8E1;
  border-bottom: 3px solid var(--cinnabar);
  box-shadow: 0 3px 0 var(--gold);
  position: relative;
  z-index: 20;
}
.site-header__inner {
  padding-top: 1.2rem;
}
.header-brand {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(196, 154, 108, 0.55);
  border-radius: 0 0 8px 8px;
  padding-bottom: 0.8rem;
  margin-bottom: 0.8rem;
}
.brand-mark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-mark__latin {
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  color: var(--copper);
  margin-bottom: 0.25rem;
  font-family: "Times New Roman", times, serif;
  text-transform: uppercase;
}
.brand-mark__title {
  font-family: var(--heading-font);
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  color: var(--deep-ink);
  letter-spacing: 0.06em;
  line-height: 1.1;
  background-image: linear-gradient(180deg, rgba(198, 40, 40, 0) 58%, rgba(255, 215, 0, 0.7) 58%, rgba(255, 215, 0, 0.7) 66%, rgba(198, 40, 40, 0) 66%);
  transition: transform 0.2s ease;
}
.brand-mark__title:hover {
  transform: translateY(-2px);
}
.header-legend {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background-color: var(--cinnabar);
  color: var(--paper);
  padding: 0.4rem 0.8rem;
  border-radius: 6px 14px 6px 14px;
  box-shadow: 0 2px 0 var(--vermilion);
}
.header-legend__product {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  white-space: nowrap;
  color: #F9D3B0;
}
.header-legend__cn {
  font-size: 0.68rem;
  white-space: nowrap;
  color: var(--gold);
}

.site-nav {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
  margin-bottom: 0.3rem;
}
.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem 0.1rem;
}
.nav-list__item {
  display: inline-block;
}
.nav-link {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  font-size: 0.95rem;
  border-radius: 1.6rem 0.4rem 1.6rem 0.4rem;
  color: var(--ink);
  background-color: transparent;
  border: 1px solid transparent;
  transition: background-color 0.2s, color 0.2s, border 0.1s;
}
.nav-link:hover,
.nav-link:focus-visible {
  background-color: rgba(198, 40, 40, 0.08);
  color: var(--vermilion);
}
.nav-link[aria-current="page"] {
  background-color: var(--cinnabar);
  color: var(--paper);
  border-color: var(--gold);
  box-shadow: 0 0 0 1.5px var(--gold) inset;
}
.nav-link.is-current-in-view:not([aria-current="page"]) {
  border-bottom: 2px solid var(--apricot);
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--cinnabar);
  color: var(--paper);
  padding: 0.45rem 1rem;
  border-radius: 30px;
  border: 1px solid var(--gold);
  box-shadow: 0 2px 0 var(--vermilion);
}

/* ===== Scroll Progress ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--cinnabar), var(--gold));
  z-index: 999;
  pointer-events: none;
}

/* ===== Footer ===== */
.site-footer {
  background-color: var(--deep-ink);
  color: rgba(255, 248, 225, 0.9);
  margin-top: 3rem;
  border-top: 4px solid var(--cinnabar);
  box-shadow: 0 -2px 0 var(--gold);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1.4fr 1.2fr;
  gap: 2rem;
  padding: 2.5rem 0 1.5rem;
}
.footer-brand {
  font-family: var(--heading-font);
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.footer-intro {
  font-size: 0.83rem;
  color: rgba(255, 248, 225, 0.72);
  margin-bottom: 0.6rem;
  max-width: 44ch;
}
.footer-icp {
  font-size: 0.8rem;
  color: var(--copper);
}
.footer-column__title {
  color: var(--gold);
  border-bottom: 1px solid var(--copper);
  padding-bottom: 0.5rem;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}
.footer-contact__list {
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.footer-contact__note {
  font-size: 0.72rem;
  color: rgba(255, 248, 225, 0.5);
  margin-top: 0.8rem;
}
.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem 1rem;
  font-size: 0.87rem;
}
.footer-link {
  color: rgba(255, 248, 225, 0.88);
  transition: color 0.18s;
}
.footer-link:hover,
.footer-link:focus-visible {
  color: var(--gold);
  text-decoration: underline;
}
.site-footer__bottom {
  border-top: 1px solid #5f4835;
  padding: 1rem 0 1.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
}
.footer-copyright {
  color: rgba(255, 248, 225, 0.6);
}
.footer-legal {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.footer-legal .footer-link {
  color: rgba(255, 248, 225, 0.76);
}
.footer-legal__sep {
  color: var(--copper);
}

/* ===== Grid utilities ===== */
.grid-archive {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.2rem;
}
/* Modern + traditional blend card */
.data-card {
  position: relative;
  background-color: rgba(255, 255, 255, 0.34);
  border: 1px dashed rgba(196, 154, 108, 0.7);
  border-radius: 14px 4px 14px 4px;
  padding: 1.1rem 1rem;
  box-shadow: 0 2px 6px rgba(112, 68, 44, 0.06);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s;
}
.data-card:hover {
  transform: scale(1.02);
  border-color: var(--cinnabar);
  box-shadow: 0 6px 12px rgba(112, 68, 44, 0.1);
}
.data-card__title {
  font-family: var(--heading-font);
  font-size: 1.2rem;
  color: var(--deep-ink);
}
.data-card__desc {
  font-size: 0.85rem;
  margin-top: 0.25rem;
  color: #6f4b34;
}
.data-card__trigger {
  margin-top: 0.5rem;
  padding: 0.22rem 0.6rem;
  background-color: var(--gray-paper);
  border-radius: 1.2rem;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}
.data-card__details {
  display: none;
  padding-top: 0.7rem;
  font-size: 0.8rem;
  color: #503d2f;
}
.data-card.is-open .data-card__details {
  display: block;
}
.data-card.is-open .data-card__trigger::before {
  content: "收起";
}
.data-card:not(.is-open) .data-card__trigger::before {
  content: "查阅";
}

/* ===== Stamp tags ===== */
.stamp-tag {
  display: inline-block;
  background-color: #FFF2CC;
  border: 1.5px solid var(--copper);
  border-radius: 4px 10px 4px 10px;
  padding: 0.1rem 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--deep-ink);
  transform: rotate(-1.5deg);
  box-shadow: 0 0 0 1px #C49A6C30;
  margin-bottom: 0.3rem;
}
.stamp-tag--red {
  background-color: var(--cinnabar);
  color: #FFF8E1;
  border-color: var(--gold);
}
.stamp-tag--gold {
  border-color: var(--gold);
}

/* ===== Digital seal ===== */
.digital-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2.5px double var(--cinnabar);
  color: var(--cinnabar);
  font-family: var(--heading-font);
  font-size: 2.3rem;
  background: #FFF8E1;
  box-shadow: inset 0 0 0 2px #FFD700, 0 0 0 1px #C6282850;
  transition: transform 0.14s ease;
  flex-shrink: 0;
}
.digital-seal:hover {
  transform: rotate(6deg);
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline-item {
  position: relative;
  border-left: 2px solid var(--copper);
  padding: 0.4rem 0 1.4rem 1.4rem;
}
.timeline-item__dot {
  position: absolute;
  left: -0.5rem;
  top: 0.7rem;
  width: 0.75rem;
  height: 0.75rem;
  background-color: var(--cinnabar);
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.18);
}
.timeline-item__date {
  font-size: 0.78rem;
  color: var(--cinnabar);
  letter-spacing: 0.12em;
  margin-bottom: 0.1rem;
}

/* ===== Buttons ===== */
.btn-regular {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--cinnabar);
  color: var(--paper);
  border: 1.5px solid var(--gold);
  padding: 0.5rem 1.5rem;
  border-radius: 2rem 0.4rem 2rem 0.4rem;
  box-shadow: 0 3px 0 var(--vermilion);
  font-size: 0.9rem;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn-regular:hover,
.btn-regular:focus-visible {
  background-color: var(--vermilion);
  transform: translateY(-1px);
}

/* ===== Modal inline ===== */
.modal-inline {
  display: none;
}
.modal-inline[open] {
  display: block;
  border: none;
  padding: 1.2rem;
  background-color: #FFFDF2;
  border-radius: 8px 20px 8px 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  max-width: 420px;
  margin: 2rem auto;
}
.modal-inline::backdrop {
  background-color: rgba(43, 32, 32, 0.72);
}

/* ===== Metric ring ===== */
.metric-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border: 6px solid var(--copper);
  border-top-color: var(--cinnabar);
  border-right-color: var(--gold);
  border-radius: 50%;
  font-family: var(--heading-font);
  font-size: 1.3rem;
  color: var(--deep-ink);
  padding: 0.5rem;
  box-shadow: 0 0 0 3px rgba(196, 154, 108, 0.25);
  transition: transform 0.2s ease;
}
.metric-ring:hover {
  transform: scale(1.04);
  border-top-color: var(--vermilion);
}

/* ===== Image wrapper base ===== */
.figure-pict {
  border: 2px solid var(--copper);
  background-color: rgba(245, 230, 200, 0.2);
  padding: 1rem;
  border-radius: 4px 30px 4px 30px;
  position: relative;
}
.figure-pict::after {
  position: absolute;
  right: -0.6rem;
  bottom: -0.6rem;
  width: 1.8rem;
  height: 1.8rem;
  background-color: var(--gold);
  clip-path: polygon(18% 0, 50% 25%, 82% 0, 100% 55%, 50% 100%, 0 55%);
  content: "";
  opacity: 0.8;
}
.figure-pict img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 2px;
}

/* ===== Responsive ===== */
@media (max-width: 720px) {
  .header-brand {
    flex-wrap: wrap;
    align-items: center;
  }
  .brand-mark {
    flex-basis: 70%;
  }
  .header-legend {
    display: none;
  }
  .site-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
  }
  .header-brand {
    border-bottom: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .site-nav {
    width: 100%;
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: height 0.22s ease, opacity 0.16s ease;
    margin-top: 0.4rem;
    background-color: #fce8cc;
    border-radius: 12px 0 12px 0;
    border-top: 1px dashed var(--copper);
    border-bottom: 1px dashed var(--copper);
  }
  .site-nav[data-open] {
    height: auto;
    opacity: 1;
    padding: 0.8rem 0.6rem;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }
  .nav-link {
    display: block;
    text-align: center;
    border-radius: 0.8rem;
    padding: 0.8rem 0.4rem;
  }
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 980px) and (min-width: 721px) {
  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 1.6rem;
  }
}

/* ===== Reveal ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .brand-mark__title {
    transition: none;
  }
}

/* ===== Print ===== */
@media print {
  .site-header,
  .site-footer,
  .scroll-progress,
  .mobile-menu-btn {
    display: none;
  }
  body {
    background: #ffffff;
  }
  .section {
    padding: 0.5rem 0;
  }
}
