:root {
  --brand: #1a5f8a;
  --brand-deep: #0e3f5e;
  --brand-light: #2f8fc4;
  --accent: #f4c542;
  --accent-soft: #ffe08a;
  --bg: #f5f8fb;
  --bg-alt: #ffffff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --text: #1c2733;
  --text-soft: #4a5a6a;
  --text-muted: #7a8a99;
  --border: rgba(26, 95, 138, 0.14);
  --shadow-sm: 0 2px 8px rgba(16, 42, 67, 0.06);
  --shadow-md: 0 8px 28px rgba(16, 42, 67, 0.10);
  --shadow-lg: 0 18px 50px rgba(16, 42, 67, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --grad-hero: linear-gradient(135deg, #0e3f5e 0%, #1a5f8a 42%, #2f8fc4 78%, #57b6e0 100%);
  --grad-accent: linear-gradient(120deg, #f4c542 0%, #ffb347 100%);
  --grad-card: linear-gradient(160deg, rgba(255,255,255,0.9) 0%, rgba(240,247,252,0.75) 100%);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1620;
    --bg-alt: #101f2c;
    --surface: rgba(22, 40, 56, 0.62);
    --surface-solid: #14232f;
    --text: #e8f1f8;
    --text-soft: #b6c8d6;
    --text-muted: #8098aa;
    --border: rgba(120, 180, 220, 0.18);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.55);
    --grad-hero: linear-gradient(135deg, #071a26 0%, #0e3f5e 40%, #1a5f8a 75%, #2f8fc4 100%);
    --grad-card: linear-gradient(160deg, rgba(28, 48, 66, 0.9) 0%, rgba(16, 30, 42, 0.8) 100%);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 8% 0%, rgba(47, 143, 196, 0.12), transparent 42%),
    radial-gradient(circle at 92% 12%, rgba(244, 197, 66, 0.10), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(26, 95, 138, 0.08), transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: var(--brand-light);
  text-decoration: none;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  line-height: 1.35;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(1.7rem, 4.2vw, 2.9rem); margin: 0 0 0.6em; }
h2 { font-size: clamp(1.35rem, 2.8vw, 2rem); margin: 0 0 0.7em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); margin: 1.6em 0 0.6em; }
h4 { font-size: 1.05rem; margin: 1.2em 0 0.5em; }

p { margin: 0 0 1.1em; color: var(--text-soft); }

ul, ol { padding-left: 1.4em; margin: 0 0 1.2em; color: var(--text-soft); }
li { margin-bottom: 0.45em; }

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

/* ============ HEADER ============ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

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

.brand svg {
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(26, 95, 138, 0.35);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.brand:hover svg {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 8px 22px rgba(26, 95, 138, 0.5);
}

.brand-name {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(100deg, var(--brand) 0%, var(--brand-light) 55%, var(--accent) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

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

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-list li { margin: 0; }

.nav-list a {
  display: inline-block;
  padding: 7px 13px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-soft);
  border-radius: 999px;
  position: relative;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-accent);
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--brand);
  background: rgba(47, 143, 196, 0.10);
  transform: translateY(-1px);
}

.nav-list a:hover::after { width: 60%; }

.site-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.site-search input[type="search"] {
  width: 210px;
  padding: 9px 14px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), width 0.35s var(--ease);
}

.site-search input[type="search"]::placeholder { color: var(--text-muted); }

.site-search input[type="search"]:focus {
  outline: none;
  border-color: var(--brand-light);
  box-shadow: 0 0 0 4px rgba(47, 143, 196, 0.16);
  width: 250px;
}

.site-search button {
  padding: 9px 18px;
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--grad-hero);
  background-size: 160% 160%;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(26, 95, 138, 0.32);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-position 0.5s var(--ease);
}

.site-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(26, 95, 138, 0.45);
  background-position: 100% 50%;
}

.site-search button:active { transform: translateY(0); }

/* ============ MAIN ============ */
main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 40px;
}

main > section {
  margin: 44px 0;
  padding: 34px clamp(20px, 3.5vw, 46px);
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.7s var(--ease) both;
}

main > section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--grad-hero);
  opacity: 0.85;
}

main > section:nth-of-type(even)::before {
  background: var(--grad-accent);
}

main > section > h2:first-child {
  position: relative;
  padding-left: 18px;
}

main > section > h2:first-child::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: 6px;
  background: var(--grad-hero);
  box-shadow: 0 0 12px rgba(47, 143, 196, 0.5);
}

/* ============ HERO ============ */
#hero {
  margin-top: 32px;
  padding: clamp(36px, 6vw, 72px) clamp(22px, 4vw, 56px);
  background: var(--grad-hero);
  background-size: 200% 200%;
  border: none;
  border-radius: var(--radius-xl);
  color: #fff;
  box-shadow: var(--shadow-lg);
  animation: heroShift 16s ease infinite, fadeUp 0.8s var(--ease) both;
  overflow: hidden;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(244, 197, 66, 0.32), transparent 45%),
    radial-gradient(circle at 10% 85%, rgba(87, 182, 224, 0.30), transparent 50%);
  pointer-events: none;
}

#hero::after {
  content: "";
  position: absolute;
  top: -60%;
  right: -20%;
  width: 60%;
  padding-bottom: 60%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

#hero > * { position: relative; z-index: 1; }

#hero h1 {
  color: #fff;
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.28);
  max-width: 20em;
}

#hero .hero-lead {
  color: rgba(255, 255, 255, 0.90);
  font-size: clamp(0.96rem, 1.5vw, 1.08rem);
  line-height: 1.95;
  max-width: 62em;
  text-align: justify;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.stat {
  padding: 20px 14px;
  text-align: center;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.stat:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.stat-num {
  display: block;
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--accent-soft);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  margin-top: 4px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.86);
  letter-spacing: 0.05em;
}

/* ============ BREADCRUMB ============ */
#breadcrumb {
  margin: 26px 0 0;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  animation: none;
}

#breadcrumb::before { display: none; }

#breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 10px 18px;
  font-size: 0.86rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: fit-content;
  max-width: 100%;
  box-shadow: var(--shadow-sm);
}

#breadcrumb li {
  margin: 0;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

#breadcrumb li + li::before {
  content: "›";
  color: var(--text-muted);
  opacity: 0.7;
}

#breadcrumb a { color: var(--brand-light); }
#breadcrumb [aria-current="page"] { color: var(--text-soft); font-weight: 600; }

/* ============ TABLE ============ */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 22px 0 10px;
  font-size: 0.94rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--surface-solid);
}

caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

thead th {
  background: var(--grad-hero);
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 13px 16px;
  letter-spacing: 0.03em;
  font-size: 0.9rem;
}

tbody td {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  vertical-align: top;
}

tbody tr {
  transition: background 0.25s var(--ease);
}

tbody tr:nth-child(even) { background: rgba(47, 143, 196, 0.045); }

tbody tr:hover { background: rgba(47, 143, 196, 0.12); }

tbody td:first-child { font-weight: 600; color: var(--text); }

/* ============ BLOCKQUOTE ============ */
blockquote {
  margin: 24px 0;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(47, 143, 196, 0.10), rgba(244, 197, 66, 0.10));
  border-left: 4px solid var(--brand-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  position: relative;
}

blockquote p {
  margin: 0 0 0.6em;
  color: var(--text-soft);
  font-style: italic;
}

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

/* ============ ARTICLES ============ */
#articles article {
  margin: 0 0 20px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

#articles article::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--grad-accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s var(--ease);
}

#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(47, 143, 196, 0.35);
}

#articles article:hover::after { transform: scaleY(1); }

#articles article h3 {
  margin: 0 0 8px;
  font-size: clamp(1.02rem, 1.8vw, 1.18rem);
}

#articles article h3 a {
  color: var(--text);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.35s var(--ease), color 0.25s var(--ease);
}

#articles article h3 a:hover {
  color: var(--brand-light);
  background-size: 100% 2px;
}

#articles .meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 10px;
  letter-spacing: 0.02em;
}

#articles article > p:last-child {
  margin-bottom: 0;
  font-size: 0.94rem;
  line-height: 1.9;
  text-align: justify;
}

/* ============ FAQ ============ */
#faq details {
  margin: 0 0 12px;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

#faq details:hover {
  box-shadow: var(--shadow-sm);
  border-color: rgba(47, 143, 196, 0.32);
}

#faq details[open] {
  box-shadow: var(--shadow-md);
  border-color: rgba(47, 143, 196, 0.45);
  background: var(--surface-solid);
}

#faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 52px 16px 22px;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
  position: relative;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
  user-select: none;
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  line-height: 24px;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--brand);
  background: rgba(47, 143, 196, 0.12);
  border-radius: 50%;
  transition: transform 0.35s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

#faq details[open] summary {
  color: var(--brand);
  background: rgba(47, 143, 196, 0.06);
}

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

#faq summary:hover { color: var(--brand-light); }

#faq details p {
  margin: 0;
  padding: 0 22px 18px;
  font-size: 0.94rem;
  line-height: 1.9;
  color: var(--text-soft);
  animation: fadeUp 0.4s var(--ease) both;
}

/* ============ CONTACT ============ */
#contact address {
  font-style: normal;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

#contact address p {
  margin: 0;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.94rem;
  color: var(--text-soft);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  word-break: break-word;
}

#contact address p:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(47, 143, 196, 0.35);
}

/* ============ SITEMAP & LINKS ============ */
#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}

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

#sitemap a,
#links a {
  display: block;
  padding: 11px 16px;
  font-size: 0.92rem;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: transform 0.28s var(--ease), background 0.28s var(--ease), color 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
  position: relative;
  overflow: hidden;
}

#sitemap a::before,
#links a::before {
  content: "›";
  margin-right: 8px;
  color: var(--accent);
  font-weight: 700;
  transition: transform 0.28s var(--ease);
  display: inline-block;
}

#sitemap a:hover,
#links a:hover {
  transform: translateX(4px);
  color: var(--brand);
  background: var(--surface-solid);
  border-color: rgba(47, 143, 196, 0.4);
  box-shadow: var(--shadow-sm);
}

#sitemap a:hover::before,
#links a:hover::before { transform: translateX(3px); }

/* ============ FOOTER ============ */
#site-footer {
  margin-top: 40px;
  background: linear-gradient(180deg, var(--brand-deep) 0%, #071a26 100%);
  color: rgba(255, 255, 255, 0.78);
  position: relative;
  overflow: hidden;
}

#site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-accent);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.footer-col h2 {
  font-size: 1rem;
  color: #fff;
  margin: 0 0 14px;
  letter-spacing: 0.06em;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-accent);
}

.footer-col p {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.88rem;
  line-height: 1.85;
  margin: 0;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li { margin-bottom: 8px; }

.footer-col a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  position: relative;
  padding-left: 0;
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.footer-col a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s var(--ease);
}

.footer-col a:hover {
  color: var(--accent);
  padding-left: 14px;
}

.footer-col a:hover::before { width: 9px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 24px;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ============ BACK TO TOP ============ */
#back-to-top {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 90;
  width: 52px;
  height: 52px;
  padding: 0;
  font-size: 0.72rem;
  font-family: inherit;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  background: var(--grad-hero);
  background-size: 160% 160%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(16, 42, 67, 0.38);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-position 0.5s var(--ease);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.9);
}

#back-to-top:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 14px 34px rgba(16, 42, 67, 0.5);
  background-position: 100% 50%;
}

#back-to-top:active { transform: translateY(-1px) scale(1); }

/* ============ ANIMATIONS ============ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(244, 197, 66, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(244, 197, 66, 0); }
}

/* 滚动进入动画（配合 IntersectionObserver 或直接作为入场） */
main > section {
  will-change: transform, opacity;
}

main > section:nth-child(2) { animation-delay: 0.05s; }
main > section:nth-child(3) { animation-delay: 0.10s; }
main > section:nth-child(4) { animation-delay: 0.15s; }
main > section:nth-child(5) { animation-delay: 0.20s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .header-inner { gap: 16px; }
  .site-search input[type="search"] { width: 170px; }
  .site-search input[type="search"]:focus { width: 200px; }
  .nav-list a { padding: 6px 10px; font-size: 0.88rem; }
}

@media (max-width: 900px) {
  :root { --header-h: 60px; }

  .header-inner {
    padding: 12px 18px;
    gap: 12px;
    justify-content: space-between;
  }

  #site-header nav {
    order: 3;
    flex-basis: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  #site-header nav::-webkit-scrollbar { display: none; }

  .nav-list {
    flex-wrap: nowrap;
    gap: 2px;
    padding-bottom: 2px;
  }

  .nav-list a { white-space: nowrap; }

  .site-search { order: 2; }
  .site-search input[type="search"] { width: 140px; }
  .site-search input[type="search"]:focus { width: 160px; }

  main { padding: 0 16px 30px; }
  main > section { padding: 26px 20px; margin: 30px 0; border-radius: var(--radius-md); }

  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }

  #hero { border-radius: var(--radius-lg); }
}

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

  .header-inner { padding: 10px 14px; }

  .brand-name { font-size: 1.02rem; }
  .brand svg { width: 34px; height: 34px; }

  .site-search { flex: 1 1 auto; }
  .site-search input[type="search"] { width: 100%; min-width: 0; }
  .site-search input[type="search"]:focus { width: 100%; }
  .site-search button { padding: 9px 14px; font-size: 0.84rem; }

  main { padding: 0 12px 24px; }
  main > section { padding: 22px 16px; margin: 24px 0; }

  #hero { padding: 30px 18px; margin-top: 20px; border-radius: var(--radius-md); }

  #hero .hero-lead { text-align: left; font-size: 0.92rem; }

  .hero-stats { gap: 10px; }

  .stat { padding: 14px 8px; }

  .stat-label { font-size: 0.76rem; }

  #breadcrumb ol { padding: 8px 14px; font-size: 0.78rem; }

  table { font-size: 0.84rem; }
  thead th, tbody td { padding: 10px 12px; }

  #articles article { padding: 18px 16px; }

  #faq summary { padding: 14px 46px 14px 16px; font-size: 0.92rem; }
  #faq details p { padding: 0 16px 16px; font-size: 0.9rem; }

  #contact address { grid-template-columns: 1fr; }

  #sitemap ul, #links ul { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
  #sitemap a, #links a { padding: 9px 12px; font-size: 0.86rem; }

  .footer-inner { padding: 36px 16px 24px; gap: 26px; }
  .footer-bottom { padding: 16px; flex-direction: column; }

  #back-to-top {
    width: 46px;
    height: 46px;
    right: 14px;
    bottom: 18px;
    font-size: 0.66rem;
  }
}

@media (max-width: 400px) {
  .hero-stats { grid-template-columns: 1fr; }
  .brand-name { display: none; }
}

/* ============ ACCESSIBILITY / MOTION ============ */
@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;
  }

  #hero { animation: none; }
}

/* ============ PRINT ============ */
@media print {
  #site-header,
  .site-search,
  #back-to-top,
  #site-footer { display: none !important; }

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

  main > section {
    box-shadow: none;
    border: 1px solid #ccc;
    background: #fff;
    page-break-inside: avoid;
  }

  a { color: #000; text-decoration: underline; }
}