:root {
  --bg: #0d0d1a;
  --bg-soft: #14142b;
  --bg-card: rgba(26, 26, 46, 0.72);
  --bg-card-solid: #1a1a2e;
  --bg-elevated: #16213e;
  --text: #eef1f8;
  --text-soft: #b7bdd1;
  --text-mute: #8a91a8;
  --primary: #e94560;
  --primary-2: #ff7a8a;
  --accent: #533483;
  --accent-2: #0f3460;
  --link: #8ab4f8;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --glass: rgba(22, 33, 62, 0.55);
  --glass-blur: 16px;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --maxw: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --grad-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 45%, #0f3460 100%);
  --grad-brand: linear-gradient(120deg, #e94560 0%, #ff7a8a 50%, #533483 100%);
  --grad-card: linear-gradient(160deg, rgba(233, 69, 96, 0.12), rgba(15, 52, 96, 0.18));
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f6fb;
    --bg-soft: #eef1f8;
    --bg-card: rgba(255, 255, 255, 0.78);
    --bg-card-solid: #ffffff;
    --bg-elevated: #ffffff;
    --text: #14172b;
    --text-soft: #3d445e;
    --text-mute: #6b7288;
    --primary: #d92b4b;
    --primary-2: #e94560;
    --accent: #6a4bb0;
    --accent-2: #0f3460;
    --link: #1e5bb8;
    --border: rgba(20, 23, 43, 0.1);
    --border-strong: rgba(20, 23, 43, 0.18);
    --glass: rgba(255, 255, 255, 0.62);
    --shadow-sm: 0 2px 10px rgba(20, 23, 43, 0.08);
    --shadow-md: 0 10px 30px rgba(20, 23, 43, 0.12);
    --shadow-lg: 0 20px 60px rgba(20, 23, 43, 0.16);
    --grad-hero: linear-gradient(135deg, #dfe6f7 0%, #e8e2f6 45%, #f7e3e8 100%);
    --grad-card: linear-gradient(160deg, rgba(233, 69, 96, 0.08), rgba(15, 52, 96, 0.06));
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
    "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: clamp(15px, 0.4vw + 14px, 17px);
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 10% -10%, rgba(233, 69, 96, 0.16), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(83, 52, 131, 0.2), transparent 60%),
    radial-gradient(1000px 700px at 50% 110%, rgba(15, 52, 96, 0.28), transparent 65%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

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

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

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

h1 {
  font-size: clamp(1.7rem, 3.4vw + 0.6rem, 3rem);
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

h2 {
  font-size: clamp(1.35rem, 1.8vw + 0.7rem, 2.1rem);
  position: relative;
  padding-left: 18px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: var(--radius-pill);
  background: var(--grad-brand);
  box-shadow: 0 0 18px rgba(233, 69, 96, 0.55);
}

h3 {
  font-size: clamp(1.1rem, 0.7vw + 0.95rem, 1.4rem);
}

h4 {
  font-size: clamp(1rem, 0.4vw + 0.9rem, 1.15rem);
  color: var(--text-soft);
}

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

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

li {
  margin: 0.35em 0;
}

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

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

blockquote {
  margin: 0 0 1.2em;
  padding: 16px 20px;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

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

header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 10px var(--gutter);
  background: var(--glass);
  -webkit-backdrop-filter: saturate(160%) blur(var(--glass-blur));
  backdrop-filter: saturate(160%) blur(var(--glass-blur));
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  animation: slideDown 0.6s var(--ease) both;
}

header > div {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

header > div > a {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), filter 0.3s var(--ease);
}

header > div > a:hover {
  transform: translateY(-1px) scale(1.03);
  filter: drop-shadow(0 6px 16px rgba(233, 69, 96, 0.5));
}

header > div > span {
  font-size: 0.82rem;
  color: var(--text-mute);
  white-space: nowrap;
}

header nav {
  margin-left: auto;
}

header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

header nav li {
  margin: 0;
}

header nav a {
  display: inline-block;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  color: var(--text-soft);
  border: 1px solid transparent;
  transition: color 0.25s var(--ease), background 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

header nav a:hover,
header nav a:focus-visible {
  color: #fff;
  background: var(--grad-brand);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(233, 69, 96, 0.35);
}

main {
  display: block;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter) 40px;
}

main > nav[aria-label="面包屑导航"] {
  margin: 18px 0 6px;
}

main > nav[aria-label="面包屑导航"] ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 8px 16px;
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-mute);
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  width: fit-content;
  max-width: 100%;
}

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(--text-mute);
  opacity: 0.6;
}

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

main > nav[aria-label="面包屑导航"] a:hover {
  color: var(--primary-2);
}

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

section {
  position: relative;
  margin: 28px 0;
  padding: clamp(20px, 3vw, 36px);
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  animation: fadeUp 0.8s var(--ease) both;
  animation-timeline: view();
  animation-range: entry 0% cover 28%;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease),
    transform 0.35s var(--ease);
}

section:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

section::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: var(--grad-card);
  opacity: 0.55;
  z-index: -1;
}

#hero {
  margin-top: 20px;
  padding: clamp(24px, 4vw, 48px);
  background: var(--grad-hero);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  z-index: 0;
}

#hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -160px;
  top: -220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.35), transparent 65%);
  filter: blur(10px);
  pointer-events: none;
  animation: floatGlow 12s ease-in-out infinite alternate;
}

#hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  left: -140px;
  bottom: -200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(83, 52, 131, 0.4), transparent 65%);
  filter: blur(10px);
  pointer-events: none;
  background-image: none;
  opacity: 1;
  z-index: 0;
  animation: floatGlow 16s ease-in-out infinite alternate-reverse;
}

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

#hero p {
  max-width: 72ch;
  font-size: 1.02rem;
  color: var(--text-soft);
}

#hero figure {
  margin: 24px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  background: var(--bg-elevated);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

#hero figure:hover {
  transform: translateY(-4px) scale(1.005);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}

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

#hero figcaption {
  padding: 10px 16px;
  font-size: 0.82rem;
  color: var(--text-mute);
  background: var(--glass);
  border-top: 1px solid var(--border);
  text-align: center;
}

article {
  position: relative;
  margin: 0 0 16px;
  padding: 18px 20px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}

article:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  background: var(--bg-card);
}

article h3 {
  margin-bottom: 0.35em;
  transition: color 0.3s var(--ease);
}

article:hover h3 {
  color: var(--primary-2);
}

article p {
  margin-bottom: 0.5em;
  font-size: 0.94rem;
}

article p:first-of-type {
  font-size: 0.8rem;
  color: var(--text-mute);
  letter-spacing: 0.02em;
}

article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: rgba(233, 69, 96, 0.08);
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

article a::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}

article a:hover {
  color: #fff;
  background: var(--grad-brand);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(233, 69, 96, 0.35);
}

article a:hover::after {
  transform: translateX(4px);
}

details {
  margin: 0 0 12px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
    transform 0.3s var(--ease);
}

details:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

details[open] {
  border-color: rgba(233, 69, 96, 0.45);
  box-shadow: 0 0 0 1px rgba(233, 69, 96, 0.18), var(--shadow-md);
}

details summary {
  position: relative;
  padding: 14px 48px 14px 20px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}

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

details summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  color: var(--primary-2);
  border-radius: 50%;
  border: 1px solid rgba(233, 69, 96, 0.4);
  background: rgba(233, 69, 96, 0.1);
  transition: transform 0.35s var(--ease), background 0.3s var(--ease),
    color 0.3s var(--ease);
}

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

details summary:hover {
  color: var(--primary-2);
  background: rgba(233, 69, 96, 0.06);
}

details > p {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 0.94rem;
  animation: fadeUp 0.4s var(--ease) both;
}

#contact ul,
#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}

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

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

#sitemap li a,
#links li a {
  display: block;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--glass);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-soft);
  transition: color 0.3s var(--ease), background 0.3s var(--ease),
    transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

#sitemap li a:hover,
#links li a:hover {
  color: #fff;
  background: var(--grad-brand);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(233, 69, 96, 0.3);
}

#contact ul li {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--glass);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-soft);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

#contact ul li:hover {
  transform: translateX(4px);
  border-color: rgba(233, 69, 96, 0.4);
}

#legal h3 {
  margin-top: 1.2em;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--border-strong);
}

footer {
  position: relative;
  margin-top: 20px;
  padding: 32px var(--gutter) 40px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border-top: 1px solid var(--border);
  text-align: center;
}

footer p {
  margin: 0 0 6px;
  font-size: 0.85rem;
  color: var(--text-mute);
}

footer nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

footer nav li {
  margin: 0;
}

footer nav a {
  font-size: 0.85rem;
  color: var(--text-soft);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}

footer nav a:hover {
  color: #fff;
  background: var(--grad-brand);
}

::selection {
  background: rgba(233, 69, 96, 0.45);
  color: #fff;
}

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

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

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

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

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatGlow {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-30px, 30px, 0) scale(1.12);
  }
}

@media (max-width: 900px) {
  header > div {
    justify-content: center;
    text-align: center;
  }

  header > div > span {
    display: none;
  }

  header nav {
    margin-left: 0;
    width: 100%;
  }

  header nav ul {
    justify-content: center;
  }

  header nav a {
    padding: 6px 10px;
    font-size: 0.82rem;
  }

  h2 {
    padding-left: 15px;
  }

  h2::before {
    width: 5px;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 130px;
  }

  body {
    line-height: 1.7;
  }

  header {
    padding: 8px 12px;
  }

  header nav ul {
    gap: 2px;
  }

  header nav a {
    padding: 5px 9px;
    font-size: 0.78rem;
  }

  main {
    padding-bottom: 24px;
  }

  section {
    padding: 18px 16px;
    border-radius: var(--radius);
    margin: 18px 0;
  }

  #hero {
    padding: 22px 16px;
  }

  #hero p {
    font-size: 0.95rem;
  }

  article {
    padding: 14px 16px;
  }

  details summary {
    padding: 12px 44px 12px 16px;
    font-size: 0.94rem;
  }

  details > p {
    padding: 0 16px 16px;
  }

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

  blockquote {
    padding: 12px 14px;
  }
}

@media (max-width: 400px) {
  #sitemap ul,
  #links ul {
    grid-template-columns: 1fr;
  }

  header nav a {
    font-size: 0.74rem;
    padding: 4px 8px;
  }
}

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

@media print {
  body {
    background: #fff;
    color: #000;
  }

  header,
  footer,
  #hero figure,
  main > nav[aria-label="面包屑导航"] {
    display: none;
  }

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

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