:root {
  --primary: #1a3a6b;
  --primary-light: #2e5a9c;
  --primary-lighter: #3f7ad6;
  --accent: #f5a623;
  --accent-hover: #e09410;
  --accent-soft: rgba(245, 166, 35, 0.12);
  --bg: #f4f7fc;
  --bg-alt: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --bg-glass-border: rgba(255, 255, 255, 0.55);
  --text: #1c2533;
  --text-soft: #4a5568;
  --text-muted: #6b7788;
  --border: #dde5f0;
  --shadow-sm: 0 2px 8px rgba(26, 58, 107, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 58, 107, 0.10);
  --shadow-lg: 0 16px 48px rgba(26, 58, 107, 0.14);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1180px;
  --transition: 0.3s cubic-bezier(0.25, 0.8, 0.35, 1);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #3f7ad6;
    --primary-light: #2e5a9c;
    --primary-lighter: #5c93e8;
    --accent: #ffb845;
    --accent-hover: #ffc76a;
    --accent-soft: rgba(255, 184, 69, 0.14);
    --bg: #0d1524;
    --bg-alt: #141e30;
    --bg-glass: rgba(20, 30, 48, 0.68);
    --bg-glass-border: rgba(255, 255, 255, 0.10);
    --text: #e8eef8;
    --text-soft: #b8c4d6;
    --text-muted: #8b9ab0;
    --border: #24304a;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(63, 122, 214, 0.10), transparent 42%),
    radial-gradient(circle at 88% 22%, rgba(245, 166, 35, 0.08), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(26, 58, 107, 0.07), transparent 55%);
  background-attachment: fixed;
  transition: background-color var(--transition), color var(--transition);
  overflow-x: hidden;
}

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

a {
  color: var(--primary-lighter);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

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

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

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

h1 {
  font-size: clamp(1.6rem, 4.2vw, 2.7rem);
  line-height: 1.3;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  position: relative;
  padding-left: 0.85em;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 5px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--accent), var(--primary-lighter));
}

h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: var(--primary);
}

@media (prefers-color-scheme: dark) {
  h3 {
    color: var(--primary-lighter);
  }
}

h4 {
  font-size: 1.05rem;
  color: var(--text-soft);
}

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

ul {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
  color: var(--text-soft);
}

li {
  margin-bottom: 0.5em;
}

li::marker {
  color: var(--accent);
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--bg-glass-border);
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition), box-shadow var(--transition);
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.4em 1.5em;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.55em 1.25em;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.topbar span {
  display: inline-block;
}

.topbar span:first-child {
  font-weight: 600;
  color: var(--primary-lighter);
  letter-spacing: 0.02em;
}

nav[aria-label="主导航"] {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2em;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.5em 1em 0.7em;
}

nav[aria-label="主导航"] a {
  position: relative;
  display: inline-block;
  padding: 0.42em 0.85em;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  border-radius: 999px;
  transition: color var(--transition), background-color var(--transition), transform var(--transition);
}

nav[aria-label="主导航"] a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.25em;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--primary-lighter));
  transform: translateX(-50%);
  transition: width var(--transition);
}

nav[aria-label="主导航"] a:hover {
  color: var(--primary-lighter);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

nav[aria-label="主导航"] a:hover::after {
  width: 55%;
}

main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.5em 1.25em 3em;
}

section {
  position: relative;
  margin-bottom: 1.6em;
  padding: clamp(1.3em, 3vw, 2.4em);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition), background-color var(--transition);
  animation: fadeUp 0.7s cubic-bezier(0.25, 0.8, 0.35, 1) both;
}

section:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(63, 122, 214, 0.28);
}

section:nth-of-type(2) { animation-delay: 0.05s; }
section:nth-of-type(3) { animation-delay: 0.10s; }
section:nth-of-type(4) { animation-delay: 0.15s; }
section:nth-of-type(5) { animation-delay: 0.20s; }
section:nth-of-type(6) { animation-delay: 0.25s; }
section:nth-of-type(7) { animation-delay: 0.30s; }
section:nth-of-type(8) { animation-delay: 0.35s; }
section:nth-of-type(9) { animation-delay: 0.40s; }
section:nth-of-type(10) { animation-delay: 0.45s; }
section:nth-of-type(11) { animation-delay: 0.50s; }
section:nth-of-type(12) { animation-delay: 0.55s; }
section:nth-of-type(13) { animation-delay: 0.60s; }
section:nth-of-type(14) { animation-delay: 0.65s; }
section:nth-of-type(15) { animation-delay: 0.70s; }

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section h3 {
  margin-top: 1.4em;
  padding-bottom: 0.35em;
  border-bottom: 1px dashed var(--border);
}

section h3:first-of-type {
  margin-top: 0.6em;
}

#hero {
  position: relative;
  overflow: hidden;
  padding: clamp(1.8em, 4.5vw, 3.4em) clamp(1.3em, 3.5vw, 2.8em);
  background: linear-gradient(135deg, #1a3a6b 0%, #2e5a9c 42%, #3f7ad6 78%, #f5a623 130%);
  background-size: 180% 180%;
  border: none;
  color: #ffffff;
  animation: fadeUp 0.7s cubic-bezier(0.25, 0.8, 0.35, 1) both, heroShift 16s ease-in-out infinite alternate;
}

#hero::before,
#hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
}

#hero::before {
  width: 320px;
  height: 320px;
  top: -140px;
  right: -90px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.55), transparent 68%);
  animation: floatOrb 12s ease-in-out infinite;
}

#hero::after {
  width: 260px;
  height: 260px;
  bottom: -130px;
  left: -70px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 70%);
  animation: floatOrb 15s ease-in-out infinite reverse;
}

@keyframes heroShift {
  0% { background-position: 0% 30%; }
  100% { background-position: 100% 70%; }
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-18px, 20px) scale(1.08); }
}

#hero h1 {
  position: relative;
  z-index: 1;
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
  max-width: 18em;
}

#hero h1::after {
  content: "";
  display: block;
  width: 92px;
  height: 5px;
  margin-top: 0.5em;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), rgba(255, 255, 255, 0.85));
}

#hero > p {
  position: relative;
  z-index: 1;
  max-width: 62em;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.22);
}

#hero figure {
  position: relative;
  z-index: 1;
  margin: 1.6em 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  transition: transform var(--transition), box-shadow var(--transition);
}

#hero figure:hover {
  transform: translateY(-4px) scale(1.005);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.36);
}

#hero figure svg {
  border-radius: var(--radius) var(--radius) 0 0;
}

#hero figcaption {
  padding: 0.75em 1.1em;
  font-size: 0.85rem;
  color: var(--text-soft);
  background: var(--bg-glass);
  border-top: 1px solid var(--bg-glass-border);
}

#articles article {
  position: relative;
  margin-bottom: 1em;
  padding: 1.15em 1.3em;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  overflow: hidden;
}

#articles article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--primary-lighter));
  opacity: 0;
  transition: opacity var(--transition);
}

#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(63, 122, 214, 0.32);
}

#articles article:hover::before {
  opacity: 1;
}

#articles article h3 {
  margin: 0 0 0.35em;
  padding: 0;
  border: none;
  font-size: 1.08rem;
}

#articles article p {
  margin: 0 0 0.5em;
  font-size: 0.92rem;
}

#articles article p:first-of-type {
  display: inline-block;
  padding: 0.1em 0.65em;
  font-size: 0.76rem;
  color: var(--primary-lighter);
  background: var(--accent-soft);
  border-radius: 999px;
  letter-spacing: 0.02em;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--transition), color var(--transition);
}

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

#articles article a:hover {
  gap: 0.6em;
  color: var(--accent-hover);
}

#articles article a:hover::after {
  transform: translateX(3px);
}

#faq h3 {
  position: relative;
  margin-top: 1.1em;
  padding: 0.6em 0.9em 0.6em 2.4em;
  font-size: 1.02rem;
  background: var(--accent-soft);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  border-bottom: 1px dashed var(--border);
  transition: background-color var(--transition), border-color var(--transition), transform var(--transition);
}

#faq h3::before {
  content: "Q";
  position: absolute;
  left: 0.7em;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55em;
  height: 1.55em;
  font-size: 0.82em;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-lighter), var(--primary));
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(26, 58, 107, 0.28);
}

#faq h3:hover {
  background: var(--accent-soft);
  border-color: rgba(245, 166, 35, 0.35);
  transform: translateX(3px);
}

#faq p {
  padding-left: 0.4em;
  border-left: 3px solid var(--border);
  padding: 0.2em 0 0.2em 1em;
  margin-bottom: 1.2em;
}

#howto h3 {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

#howto h3::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

#howto p {
  padding-left: 1.4em;
}

#contact p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3em 0.6em;
  margin-bottom: 0.55em;
  padding: 0.55em 0.9em;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

#contact p:hover {
  transform: translateX(4px);
  border-color: rgba(63, 122, 214, 0.32);
  box-shadow: var(--shadow-sm);
}

#contact p:nth-of-type(1)::before { content: "🏢"; }
#contact p:nth-of-type(2)::before { content: "📍"; }
#contact p:nth-of-type(3)::before { content: "📞"; }
#contact p:nth-of-type(4)::before { content: "✉️"; }
#contact p:nth-of-type(5)::before { content: "🕘"; }
#contact p:nth-of-type(6)::before { content: "✅"; }
#contact p:nth-of-type(7)::before { content: "🛠️"; }

#contact p::before {
  flex: 0 0 auto;
  font-size: 1em;
  line-height: 1.6;
}

#sitemap ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.5em 0.9em;
  padding: 0;
  list-style: none;
}

#sitemap ul li {
  margin: 0;
}

#sitemap ul li a {
  display: block;
  padding: 0.5em 0.9em;
  font-size: 0.9rem;
  color: var(--text-soft);
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: 999px;
  text-align: center;
  transition: color var(--transition), background-color var(--transition), transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

#sitemap ul li a:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-lighter), var(--primary));
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(26, 58, 107, 0.28);
}

#sitemap h3 {
  margin-top: 1.6em;
}

#sitemap h3 + ul li a {
  color: var(--primary-lighter);
  font-weight: 500;
}

footer {
  position: relative;
  margin-top: 1em;
  padding: clamp(1.6em, 3.5vw, 2.6em) 1.25em 2em;
  background: linear-gradient(160deg, #14284a 0%, #1a3a6b 55%, #2e5a9c 100%);
  color: rgba(255, 255, 255, 0.82);
  border-top: 3px solid var(--accent);
}

footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(245, 166, 35, 0.18), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(63, 122, 214, 0.22), transparent 50%);
  pointer-events: none;
}

footer > div {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
}

footer p {
  margin: 0 0 0.85em;
  font-size: 0.85rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
}

footer p:last-child {
  margin-top: 1.4em;
  padding-top: 1.2em;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.04em;
}

footer a {
  color: var(--accent);
}

footer a:hover {
  color: #ffffff;
}

::selection {
  background: var(--accent);
  color: #1a2a44;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-lighter), var(--primary));
  border-radius: 999px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent), var(--accent-hover));
}

@media (max-width: 900px) {
  main {
    padding: 1.2em 0.9em 2.4em;
  }

  section {
    border-radius: var(--radius);
    margin-bottom: 1.2em;
  }

  .topbar {
    justify-content: center;
    text-align: center;
    font-size: 0.74rem;
    padding: 0.5em 0.9em;
  }

  nav[aria-label="主导航"] {
    gap: 0.15em;
    padding: 0.4em 0.6em 0.6em;
  }

  nav[aria-label="主导航"] a {
    padding: 0.38em 0.7em;
    font-size: 0.84rem;
  }

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

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

  main {
    padding: 1em 0.7em 2em;
  }

  section {
    padding: 1.15em 1em;
    border-radius: var(--radius-sm);
  }

  #hero {
    padding: 1.5em 1.1em 1.8em;
    border-radius: var(--radius);
  }

  #hero h1 {
    font-size: 1.45rem;
  }

  h2 {
    padding-left: 0.7em;
    font-size: 1.25rem;
  }

  h2::before {
    width: 4px;
  }

  h3 {
    font-size: 1.05rem;
  }

  .topbar {
    flex-direction: column;
    gap: 0.25em;
  }

  nav[aria-label="主导航"] {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.7em;
  }

  nav[aria-label="主导航"]::-webkit-scrollbar {
    display: none;
  }

  nav[aria-label="主导航"] a {
    white-space: nowrap;
    flex: 0 0 auto;
  }

  #articles article {
    padding: 1em;
  }

  #contact p {
    flex-direction: column;
    gap: 0.15em;
  }

  #sitemap ul {
    grid-template-columns: repeat(2, 1fr);
  }

  footer {
    padding: 1.4em 1em 1.8em;
  }
}

@media (hover: none) {
  section:hover,
  #articles article:hover,
  #contact p:hover,
  #hero figure:hover {
    transform: none;
  }
}

@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;
  }
}

@media print {
  header,
  footer,
  nav,
  #hero figure {
    display: none;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  section {
    box-shadow: none;
    border: 1px solid #cccccc;
    page-break-inside: avoid;
  }
}