:root {
  --hg-red: #8B1A1A;
  --hg-red-deep: #5E0F0F;
  --hg-red-soft: #A83232;
  --hg-gold: #F5C542;
  --hg-gold-soft: #FFE08A;
  --hg-bg: #FBF7F2;
  --hg-bg-alt: #F4ECE2;
  --hg-surface: #FFFFFF;
  --hg-surface-glass: rgba(255, 255, 255, 0.72);
  --hg-text: #2A1E1E;
  --hg-text-soft: #5C4A4A;
  --hg-text-mute: #8A7676;
  --hg-border: rgba(139, 26, 26, 0.14);
  --hg-border-strong: rgba(139, 26, 26, 0.28);
  --hg-shadow-sm: 0 2px 8px rgba(90, 20, 20, 0.06);
  --hg-shadow: 0 10px 30px rgba(90, 20, 20, 0.1);
  --hg-shadow-lg: 0 20px 50px rgba(90, 20, 20, 0.16);
  --hg-radius-sm: 10px;
  --hg-radius: 18px;
  --hg-radius-lg: 28px;
  --hg-radius-pill: 999px;
  --hg-max: 1180px;
  --hg-gap: clamp(16px, 2.4vw, 28px);
  --hg-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --hg-transition: 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --hg-bg: #14100F;
    --hg-bg-alt: #1B1514;
    --hg-surface: #211A19;
    --hg-surface-glass: rgba(33, 26, 25, 0.72);
    --hg-text: #F2E9E4;
    --hg-text-soft: #C9B9B3;
    --hg-text-mute: #9A8882;
    --hg-border: rgba(245, 197, 66, 0.16);
    --hg-border-strong: rgba(245, 197, 66, 0.32);
    --hg-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --hg-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --hg-shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.62);
  }
}

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

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

body {
  margin: 0;
  font-family: var(--hg-font);
  font-size: 16px;
  line-height: 1.78;
  color: var(--hg-text);
  background-color: var(--hg-bg);
  background-image:
    radial-gradient(1200px 600px at 110% -10%, rgba(139, 26, 26, 0.1), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(245, 197, 66, 0.12), transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--hg-red-soft);
  text-decoration: none;
  transition: color var(--hg-transition), opacity var(--hg-transition);
}

a:hover,
a:focus-visible {
  color: var(--hg-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (prefers-color-scheme: dark) {
  a {
    color: var(--hg-gold);
  }
  a:hover,
  a:focus-visible {
    color: var(--hg-gold-soft);
  }
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.6em;
  line-height: 1.32;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--hg-text);
}

h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
h3 { font-size: clamp(1.12rem, 1.8vw, 1.35rem); }

p {
  margin: 0 0 1em;
}

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.35em;
}

li {
  margin-bottom: 0.45em;
}

blockquote {
  margin: 1.2em 0;
  padding: 1em 1.4em;
  border-left: 4px solid var(--hg-gold);
  background: var(--hg-surface-glass);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-radius: 0 var(--hg-radius) var(--hg-radius) 0;
  color: var(--hg-text-soft);
  font-style: italic;
  box-shadow: var(--hg-shadow-sm);
}

blockquote p:last-child {
  margin-bottom: 0;
}

strong {
  color: var(--hg-red);
  font-weight: 700;
}

@media (prefers-color-scheme: dark) {
  strong { color: var(--hg-gold); }
}

::selection {
  background: var(--hg-gold);
  color: var(--hg-red-deep);
}

:focus-visible {
  outline: 3px solid var(--hg-gold);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ===== Header ===== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: var(--hg-surface-glass);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--hg-border);
  box-shadow: var(--hg-shadow-sm);
}

#site-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--hg-red);
  white-space: nowrap;
}

@media (prefers-color-scheme: dark) {
  #site-header .brand { color: var(--hg-gold); }
}

#site-header .brand svg {
  flex: 0 0 auto;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(139, 26, 26, 0.35);
  transition: transform var(--hg-transition);
}

#site-header .brand:hover svg {
  transform: rotate(-6deg) scale(1.06);
}

#site-header nav {
  flex: 1 1 auto;
  min-width: 0;
}

#site-header nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#site-header nav li {
  margin: 0;
}

#site-header nav a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--hg-radius-pill);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--hg-text-soft);
  text-decoration: none;
  transition: background var(--hg-transition), color var(--hg-transition), transform var(--hg-transition);
}

#site-header nav a:hover,
#site-header nav a:focus-visible {
  background: rgba(139, 26, 26, 0.1);
  color: var(--hg-red);
  text-decoration: none;
  transform: translateY(-1px);
}

@media (prefers-color-scheme: dark) {
  #site-header nav a:hover,
  #site-header nav a:focus-visible {
    background: rgba(245, 197, 66, 0.14);
    color: var(--hg-gold);
  }
}

#site-header form[role="search"] {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 300px;
}

#site-header form[role="search"] label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

#site-header form[role="search"] input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 9px 16px;
  font: inherit;
  font-size: 0.9rem;
  color: var(--hg-text);
  background: var(--hg-surface);
  border: 1px solid var(--hg-border-strong);
  border-radius: var(--hg-radius-pill);
  transition: border-color var(--hg-transition), box-shadow var(--hg-transition);
}

#site-header form[role="search"] input::placeholder {
  color: var(--hg-text-mute);
}

#site-header form[role="search"] input:focus {
  outline: none;
  border-color: var(--hg-red);
  box-shadow: 0 0 0 4px rgba(139, 26, 26, 0.14);
}

#site-header form[role="search"] button {
  flex: 0 0 auto;
  padding: 9px 20px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: #FFF8E8;
  background: linear-gradient(135deg, var(--hg-red) 0%, var(--hg-red-deep) 100%);
  border: none;
  border-radius: var(--hg-radius-pill);
  cursor: pointer;
  transition: transform var(--hg-transition), box-shadow var(--hg-transition), filter var(--hg-transition);
  box-shadow: 0 6px 16px rgba(139, 26, 26, 0.28);
}

#site-header form[role="search"] button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 10px 22px rgba(139, 26, 26, 0.36);
}

#site-header form[role="search"] button:active {
  transform: translateY(0);
}

/* ===== Main layout ===== */
main {
  display: block;
  max-width: var(--hg-max);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 40px) clamp(16px, 4vw, 32px) 40px;
}

main > section {
  position: relative;
  margin-bottom: clamp(28px, 4vw, 48px);
  padding: clamp(20px, 3vw, 36px);
  background: var(--hg-surface);
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius-lg);
  box-shadow: var(--hg-shadow-sm);
  transition: box-shadow var(--hg-transition), transform var(--hg-transition), border-color var(--hg-transition);
  animation: hg-fade-up 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

main > section:hover {
  box-shadow: var(--hg-shadow);
  border-color: var(--hg-border-strong);
}

main > section > h2 {
  position: relative;
  padding-bottom: 0.5em;
  margin-bottom: 1em;
}

main > section > h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: var(--hg-radius-pill);
  background: linear-gradient(90deg, var(--hg-red), var(--hg-gold));
}

main > section > h3 {
  margin-top: 1.6em;
  padding-left: 14px;
  border-left: 4px solid var(--hg-gold);
}

/* Staggered entrance for sections */
main > section:nth-of-type(1) { animation-delay: 0.02s; }
main > section:nth-of-type(2) { animation-delay: 0.06s; }
main > section:nth-of-type(3) { animation-delay: 0.1s; }
main > section:nth-of-type(4) { animation-delay: 0.14s; }
main > section:nth-of-type(5) { animation-delay: 0.18s; }
main > section:nth-of-type(6) { animation-delay: 0.22s; }
main > section:nth-of-type(7) { animation-delay: 0.26s; }
main > section:nth-of-type(8) { animation-delay: 0.3s; }
main > section:nth-of-type(9) { animation-delay: 0.34s; }
main > section:nth-of-type(10) { animation-delay: 0.38s; }
main > section:nth-of-type(11) { animation-delay: 0.42s; }
main > section:nth-of-type(12) { animation-delay: 0.46s; }

@keyframes hg-fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Hero ===== */
#hero {
  overflow: hidden;
  padding: clamp(24px, 4vw, 48px);
  background:
    linear-gradient(135deg, rgba(139, 26, 26, 0.96) 0%, rgba(58, 10, 10, 0.98) 100%);
  border: none;
  color: #FFF6EE;
  box-shadow: var(--hg-shadow-lg);
}

#hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(245, 197, 66, 0.42), transparent 65%);
  pointer-events: none;
  animation: hg-float 14s ease-in-out infinite;
}

#hero::after {
  content: "";
  position: absolute;
  inset: auto auto -50% -20%;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 68%);
  pointer-events: none;
  animation: hg-float 18s ease-in-out infinite reverse;
}

@keyframes hg-float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-24px, 28px, 0) scale(1.08); }
}

#hero h1 {
  position: relative;
  z-index: 1;
  color: #FFF9F0;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.35);
  max-width: 22ch;
}

#hero > p {
  position: relative;
  z-index: 1;
  max-width: 68ch;
  color: rgba(255, 246, 238, 0.88);
  font-size: clamp(0.96rem, 1.4vw, 1.06rem);
}

#hero figure {
  position: relative;
  z-index: 1;
  margin: 1.6em 0;
  border-radius: var(--hg-radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: transform var(--hg-transition), box-shadow var(--hg-transition);
}

#hero figure:hover {
  transform: translateY(-4px) scale(1.005);
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.5);
}

#hero figure svg {
  width: 100%;
  display: block;
}

#hero figcaption {
  padding: 10px 16px;
  font-size: 0.85rem;
  color: rgba(255, 246, 238, 0.72);
  background: rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

#hero > ul {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 1.4em 0 0;
  padding: 0;
  list-style: none;
}

#hero > ul li {
  margin: 0;
  padding: 12px 16px 12px 42px;
  position: relative;
  font-size: 0.94rem;
  color: #FFF6EE;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--hg-radius);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
  transition: background var(--hg-transition), transform var(--hg-transition);
}

#hero > ul li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--hg-red-deep);
  background: var(--hg-gold);
  border-radius: 50%;
}

#hero > ul li:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

/* ===== Breadcrumb ===== */
main > nav[aria-label="面包屑导航"] {
  margin: 0 0 clamp(20px, 3vw, 32px);
  padding: 10px 18px;
  background: var(--hg-surface-glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius-pill);
  box-shadow: var(--hg-shadow-sm);
}

main > nav[aria-label="面包屑导航"] ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  color: var(--hg-text-mute);
}

main > nav[aria-label="面包屑导航"] li {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

main > nav[aria-label="面包屑导航"] li + li::before {
  content: "/";
  color: var(--hg-text-mute);
  opacity: 0.6;
}

main > nav[aria-label="面包屑导航"] a {
  color: var(--hg-text-soft);
  text-decoration: none;
  transition: color var(--hg-transition);
}

main > nav[aria-label="面包屑导航"] a:hover {
  color: var(--hg-red);
  text-decoration: none;
}

main > nav[aria-label="面包屑导航"] li[aria-current="page"] {
  color: var(--hg-red);
  font-weight: 600;
}

@media (prefers-color-scheme: dark) {
  main > nav[aria-label="面包屑导航"] li[aria-current="page"] { color: var(--hg-gold); }
}

/* ===== Articles & News cards ===== */
#news,
#articles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--hg-gap);
  align-items: start;
}

#news > h2,
#articles > h2 {
  grid-column: 1 / -1;
}

#news article,
#articles article {
  position: relative;
  padding: 20px 22px;
  background: var(--hg-surface-glass);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius);
  box-shadow: var(--hg-shadow-sm);
  transition: transform var(--hg-transition), box-shadow var(--hg-transition), border-color var(--hg-transition);
  overflow: hidden;
}

#news article::before,
#articles article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--hg-red), var(--hg-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--hg-transition);
}

#news article:hover,
#articles article:hover {
  transform: translateY(-6px);
  box-shadow: var(--hg-shadow-lg);
  border-color: var(--hg-border-strong);
}

#news article:hover::before,
#articles article:hover::before {
  transform: scaleX(1);
}

#news article h3,
#articles article h3 {
  margin: 0 0 0.5em;
  padding: 0;
  border: none;
  font-size: 1.06rem;
  line-height: 1.5;
  color: var(--hg-text);
  transition: color var(--hg-transition);
}

#news article:hover h3,
#articles article:hover h3 {
  color: var(--hg-red);
}

@media (prefers-color-scheme: dark) {
  #news article:hover h3,
  #articles article:hover h3 { color: var(--hg-gold); }
}

#news article p,
#articles article p {
  font-size: 0.92rem;
  color: var(--hg-text-soft);
  line-height: 1.72;
}

#news article p:first-of-type,
#articles article p:first-of-type {
  display: inline-block;
  margin-bottom: 0.8em;
  padding: 3px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--hg-red);
  background: rgba(139, 26, 26, 0.09);
  border-radius: var(--hg-radius-pill);
}

@media (prefers-color-scheme: dark) {
  #news article p:first-of-type,
  #articles article p:first-of-type {
    color: var(--hg-gold);
    background: rgba(245, 197, 66, 0.14);
  }
}

#news article a,
#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 0.4em;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--hg-red);
  text-decoration: none;
  transition: gap var(--hg-transition), color var(--hg-transition);
}

#news article a::after,
#articles article a::after {
  content: "→";
  transition: transform var(--hg-transition);
}

#news article a:hover,
#articles article a:hover {
  text-decoration: none;
  gap: 10px;
}

#news article a:hover::after,
#articles article a:hover::after {
  transform: translateX(4px);
}

@media (prefers-color-scheme: dark) {
  #news article a,
  #articles article a { color: var(--hg-gold); }
}

/* ===== Cases ===== */
#cases blockquote {
  position: relative;
  padding-left: 3em;
}

#cases blockquote::before {
  content: "“";
  position: absolute;
  left: 12px;
  top: 6px;
  font-size: 2.6rem;
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--hg-gold);
  opacity: 0.85;
}

/* ===== HowTo ===== */
#howto ol {
  counter-reset: hg-step;
  list-style: none;
  padding-left: 0;
}

#howto ol li {
  position: relative;
  counter-increment: hg-step;
  padding: 14px 18px 14px 60px;
  margin-bottom: 12px;
  background: var(--hg-bg-alt);
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius);
  transition: transform var(--hg-transition), box-shadow var(--hg-transition), border-color var(--hg-transition);
}

#howto ol li::before {
  content: counter(hg-step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #FFF8E8;
  background: linear-gradient(135deg, var(--hg-red), var(--hg-red-deep));
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(139, 26, 26, 0.3);
}

#howto ol li:hover {
  transform: translateX(4px);
  box-shadow: var(--hg-shadow-sm);
  border-color: var(--hg-border-strong);
}

/* ===== FAQ ===== */
#faq details {
  margin-bottom: 12px;
  background: var(--hg-bg-alt);
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius);
  overflow: hidden;
  transition: border-color var(--hg-transition), box-shadow var(--hg-transition), background var(--hg-transition);
}

#faq details:hover {
  border-color: var(--hg-border-strong);
  box-shadow: var(--hg-shadow-sm);
}

#faq details[open] {
  background: var(--hg-surface);
  border-color: var(--hg-border-strong);
  box-shadow: var(--hg-shadow);
}

#faq summary {
  position: relative;
  padding: 16px 52px 16px 20px;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--hg-text);
  cursor: pointer;
  list-style: none;
  transition: color var(--hg-transition);
}

#faq summary::-webkit-details-marker {
  display: none;
}

#faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--hg-red);
  background: rgba(139, 26, 26, 0.09);
  border-radius: 50%;
  transition: transform var(--hg-transition), background var(--hg-transition), color var(--hg-transition);
}

@media (prefers-color-scheme: dark) {
  #faq summary::after {
    color: var(--hg-gold);
    background: rgba(245, 197, 66, 0.14);
  }
}

#faq details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
  background: var(--hg-red);
  color: #FFF8E8;
}

#faq details[open] summary {
  color: var(--hg-red);
  border-bottom: 1px solid var(--hg-border);
}

@media (prefers-color-scheme: dark) {
  #faq details[open] summary { color: var(--hg-gold); }
}

#faq details p {
  padding: 16px 20px;
  margin: 0;
  font-size: 0.94rem;
  color: var(--hg-text-soft);
  animation: hg-fade-up 0.4s ease both;
}

/* ===== Contact & Sitemap & Links ===== */
#contact ul,
#sitemap ul,
#links ul {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 10px;
}

#contact ul {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

#contact li {
  padding: 12px 18px;
  background: var(--hg-bg-alt);
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius);
  font-size: 0.94rem;
  color: var(--hg-text-soft);
  transition: transform var(--hg-transition), border-color var(--hg-transition), box-shadow var(--hg-transition);
}

#contact li:hover {
  transform: translateY(-3px);
  border-color: var(--hg-border-strong);
  box-shadow: var(--hg-shadow-sm);
}

#sitemap ul,
#links ul {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

#sitemap li,
#links li {
  margin: 0;
}

#sitemap a,
#links a {
  display: block;
  padding: 10px 16px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--hg-text-soft);
  background: var(--hg-bg-alt);
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius-pill);
  text-decoration: none;
  text-align: center;
  transition: background var(--hg-transition), color var(--hg-transition), transform var(--hg-transition), box-shadow var(--hg-transition);
}

#sitemap a:hover,
#links a:hover {
  color: #FFF8E8;
  background: linear-gradient(135deg, var(--hg-red), var(--hg-red-deep));
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 26, 26, 0.28);
  text-decoration: none;
}

/* ===== Footer ===== */
#site-footer {
  position: relative;
  margin-top: 20px;
  padding: clamp(28px, 4vw, 52px) clamp(16px, 4vw, 40px) 32px;
  background:
    linear-gradient(160deg, var(--hg-red-deep) 0%, #2A0808 100%);
  color: rgba(255, 246, 238, 0.82);
  border-top: 4px solid var(--hg-gold);
}

#site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 85% 0%, rgba(245, 197, 66, 0.14), transparent 70%);
  pointer-events: none;
}

#site-footer > section {
  position: relative;
  max-width: var(--hg-max);
  margin: 0 auto 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#site-footer > section:last-of-type {
  border-bottom: none;
}

#site-footer h2 {
  margin: 0 0 0.5em;
  font-size: 1.05rem;
  color: var(--hg-gold);
  letter-spacing: 0.04em;
}

#site-footer p {
  max-width: 78ch;
  margin: 0 0 0.6em;
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255, 246, 238, 0.72);
}

#site-footer > p {
  position: relative;
  max-width: var(--hg-max);
  margin: 0 auto 10px;
  font-size: 0.84rem;
  color: rgba(255, 246, 238, 0.6);
}

#site-footer a {
  color: var(--hg-gold);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--hg-transition), opacity var(--hg-transition);
}

#site-footer a:hover {
  color: #FFF8E8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== Scroll reveal (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
  main > section {
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
}

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

/* ===== Responsive ===== */
@media (max-width: 960px) {
  #site-header {
    gap: 10px 16px;
  }

  #site-header nav {
    order: 3;
    flex-basis: 100%;
  }

  #site-header nav ul {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  #site-header nav a {
    white-space: nowrap;
  }

  #site-header form[role="search"] {
    flex: 1 1 auto;
    max-width: none;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
    line-height: 1.72;
  }

  #site-header {
    padding: 10px 14px;
  }

  #site-header .brand span {
    font-size: 1.02rem;
  }

  main {
    padding: 16px 12px 28px;
  }

  main > section {
    padding: 18px 16px;
    border-radius: var(--hg-radius);
    margin-bottom: 20px;
  }

  main > section > h2::after {
    width: 46px;
    height: 3px;
  }

  #hero {
    padding: 20px 16px;
  }

  #hero h1 {
    max-width: none;
  }

  #hero > ul {
    grid-template-columns: 1fr;
  }

  #hero figure figcaption {
    font-size: 0.78rem;
  }

  #news,
  #articles {
    grid-template-columns: 1fr;
  }

  #news article,
  #articles article {
    padding: 16px 16px;
  }

  #howto ol li {
    padding: 12px 14px 12px 52px;
  }

  #howto ol li::before {
    left: 12px;
    width: 26px;
    height: 26px;
    font-size: 0.82rem;
  }

  #faq summary {
    padding: 14px 46px 14px 16px;
    font-size: 0.94rem;
  }

  #faq summary::after {
    right: 14px;
  }

  #contact ul,
  #sitemap ul,
  #links ul {
    grid-template-columns: 1fr;
  }

  #site-footer {
    padding: 24px 16px 28px;
  }

  blockquote {
    padding: 0.9em 1.1em;
  }

  #cases blockquote {
    padding-left: 2.4em;
  }
}

@media (max-width: 400px) {
  #site-header form[role="search"] {
    flex-basis: 100%;
  }

  #site-header form[role="search"] button {
    padding: 9px 14px;
  }
}

/* ===== Print ===== */
@media print {
  #site-header,
  #site-footer,
  main > nav[aria-label="面包屑导航"],
  #links {
    display: none !important;
  }

  body {
    background: #FFF;
    color: #000;
  }

  main > section {
    box-shadow: none;
    border: 1px solid #CCC;
    break-inside: avoid;
    animation: none;
  }
}