:root {
  --bg: #0d0d1a;
  --bg-alt: #131327;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-solid: #1a1a2e;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8e8f0;
  --text-muted: #9a9ab0;
  --primary: #e94560;
  --primary-soft: rgba(233, 69, 96, 0.14);
  --accent: #533483;
  --accent-2: #0f3460;
  --link: #ff6b85;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 16px 48px rgba(233, 69, 96, 0.22);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1180px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f4fb;
    --bg-alt: #ffffff;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-solid: #ffffff;
    --border: rgba(20, 20, 50, 0.08);
    --text: #1c1c2e;
    --text-muted: #5c5c72;
    --primary: #d62849;
    --primary-soft: rgba(214, 40, 73, 0.1);
    --accent: #533483;
    --accent-2: #1a4a8a;
    --link: #c81f3e;
    --shadow: 0 8px 32px rgba(30, 30, 70, 0.1);
    --shadow-hover: 0 16px 48px rgba(214, 40, 73, 0.18);
    --glass: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(20, 20, 50, 0.08);
  }
}

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

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

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 10% -10%, rgba(233, 69, 96, 0.12), transparent 60%),
    radial-gradient(1000px 500px at 100% 0%, rgba(83, 52, 131, 0.18), transparent 55%),
    radial-gradient(900px 500px at 50% 100%, rgba(15, 52, 96, 0.16), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: var(--primary);
  color: #fff;
}

/* ============ 头部导航 ============ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--glass-border);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

header nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

header nav > a {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  background: linear-gradient(120deg, var(--primary), #ff8a5c 50%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
  transition: filter 0.3s var(--ease);
}

header nav > a:hover {
  filter: brightness(1.2);
}

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

header nav ul li a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

header nav ul li a:hover,
header nav ul li a:focus-visible {
  color: var(--text);
  background: var(--primary-soft);
  transform: translateY(-1px);
}

/* ============ 主内容容器 ============ */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px 80px;
}

main > nav[aria-label="面包屑"] {
  padding: 20px 0 8px;
}

main > nav[aria-label="面包屑"] ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

main > nav[aria-label="面包屑"] ol li {
  display: flex;
  align-items: center;
  gap: 8px;
}

main > nav[aria-label="面包屑"] ol li + li::before {
  content: "›";
  color: var(--text-muted);
  opacity: 0.6;
}

main > nav[aria-label="面包屑"] a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

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

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

/* ============ 区块通用 ============ */
section {
  margin-top: 48px;
  padding: 40px 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: var(--shadow);
  animation: fadeUp 0.7s var(--ease) both;
  animation-timeline: view();
  animation-range: entry 0% cover 28%;
}

@supports not (animation-timeline: view()) {
  section {
    animation: none;
    opacity: 1;
  }
}

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

section h2 {
  position: relative;
  margin: 0 0 22px;
  padding-left: 18px;
  font-size: 1.6rem;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 0.01em;
}

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

section h3 {
  margin: 26px 0 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

section h3::after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), transparent);
  opacity: 0.7;
}

section p {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 0.98rem;
}

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

section a:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============ Hero ============ */
#hero {
  position: relative;
  margin-top: 24px;
  padding: 56px 44px;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) + 6px);
  background:
    linear-gradient(135deg, rgba(233, 69, 96, 0.9) 0%, rgba(83, 52, 131, 0.85) 48%, rgba(15, 52, 96, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 64px rgba(83, 52, 131, 0.35);
}

#hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 68%);
  pointer-events: none;
  animation: floatBlob 12s ease-in-out infinite;
}

#hero::after {
  content: "";
  position: absolute;
  inset: auto auto -30% -10%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.35), transparent 70%);
  pointer-events: none;
  animation: floatBlob 16s ease-in-out infinite reverse;
}

@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 24px) scale(1.08); }
}

#hero h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 20px;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
}

#hero p {
  position: relative;
  z-index: 1;
  max-width: 780px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.85;
}

#hero figure {
  position: relative;
  z-index: 1;
  margin: 32px 0 0;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

#hero figure:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
}

#hero figure svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 640px;
  margin: 0 auto;
  border-radius: var(--radius-sm);
}

#hero figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.04em;
}

/* ============ 列表 ============ */
section ul,
section ol {
  margin: 14px 0;
  padding-left: 22px;
  color: var(--text-muted);
}

section ul {
  list-style: none;
  padding-left: 0;
}

section ul li {
  position: relative;
  padding: 8px 0 8px 26px;
  border-bottom: 1px dashed var(--border);
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

section ul li:last-child {
  border-bottom: none;
}

section ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 1.05em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 0 4px var(--primary-soft);
  transition: transform 0.25s var(--ease);
}

section ul li:hover {
  color: var(--text);
  padding-left: 32px;
}

section ul li:hover::before {
  transform: scale(1.25);
}

section ol {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

section ol li {
  position: relative;
  counter-increment: step;
  padding: 12px 0 12px 46px;
  border-bottom: 1px solid var(--border);
  transition: background 0.25s var(--ease);
}

section ol li:last-child {
  border-bottom: none;
}

section ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 10px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 4px 14px rgba(233, 69, 96, 0.28);
}

/* ============ 新闻/文章卡片 ============ */
#news article,
#articles article {
  position: relative;
  margin: 18px 0;
  padding: 24px 26px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  overflow: hidden;
}

#news article::before,
#articles article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

#news article:hover,
#articles article:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(233, 69, 96, 0.35);
}

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

#news article h3,
#articles article h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  transition: color 0.25s var(--ease);
}

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

#news article h3::after,
#articles article h3::after {
  display: none;
}

#news article time,
#articles article time {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 10px;
  font-size: 0.78rem;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 999px;
  letter-spacing: 0.02em;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap 0.25s var(--ease);
}

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

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

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

/* ============ 引用 ============ */
blockquote {
  position: relative;
  margin: 18px 0;
  padding: 20px 24px 20px 52px;
  background: var(--primary-soft);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

blockquote::before {
  content: "\201C";
  position: absolute;
  left: 14px;
  top: 2px;
  font-size: 3rem;
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--primary);
  opacity: 0.5;
}

blockquote:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(233, 69, 96, 0.14);
}

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

/* ============ FAQ 折叠 ============ */
#faq details {
  margin: 12px 0;
  padding: 0;
  background: var(--surface-solid);
  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 {
  border-color: rgba(233, 69, 96, 0.3);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
}

#faq details[open] {
  border-color: rgba(233, 69, 96, 0.45);
  box-shadow: 0 8px 28px rgba(233, 69, 96, 0.14);
}

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

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50%;
  color: var(--primary);
  background: var(--primary-soft);
  transition: transform 0.35s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

#faq details[open] summary {
  color: var(--primary);
  background: var(--primary-soft);
}

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

#faq details p {
  margin: 0;
  padding: 0 22px 18px;
  color: var(--text-muted);
  font-size: 0.94rem;
  animation: fadeIn 0.4s var(--ease);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ 联系信息 ============ */
#contact address {
  font-style: normal;
  padding: 22px 26px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

#contact address p {
  margin: 0 0 8px;
  color: var(--text-muted);
}

#contact address p:last-child {
  margin-bottom: 0;
}

#contact address a {
  color: var(--primary);
  font-weight: 600;
}

/* ============ 站点地图 & 友情链接 ============ */
#sitemap ul,
#links ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

#sitemap ul li,
#links ul li {
  padding: 0;
  border: none;
}

#sitemap ul li::before,
#links ul li::before {
  display: none;
}

#sitemap ul li a,
#links ul li a {
  display: block;
  padding: 12px 16px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: transform 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#sitemap ul li a:hover,
#links ul li a:hover {
  transform: translateY(-3px);
  color: var(--primary);
  border-color: rgba(233, 69, 96, 0.4);
  box-shadow: 0 8px 20px rgba(233, 69, 96, 0.14);
  text-decoration: none;
}

/* ============ 页脚 ============ */
footer {
  margin-top: 40px;
  padding: 48px 24px 32px;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-top: 1px solid var(--glass-border);
}

footer section {
  max-width: var(--maxw);
  margin: 0 auto 28px;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  animation: none;
}

footer section:last-child {
  margin-bottom: 0;
}

footer h2 {
  margin: 0 0 12px;
  padding-left: 14px;
  font-size: 1.05rem;
  font-weight: 700;
}

footer h2::before {
  width: 4px;
}

footer p {
  margin: 0 0 8px;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.7;
}

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

footer nav ul li {
  padding: 0;
  border: none;
}

footer nav ul li::before {
  display: none;
}

footer nav ul li a {
  font-size: 0.86rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

footer nav ul li a:hover {
  color: var(--primary);
  text-decoration: none;
}

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  header nav {
    gap: 16px;
    padding: 12px 18px;
  }

  header nav ul {
    gap: 2px;
  }

  header nav ul li a {
    padding: 6px 10px;
    font-size: 0.86rem;
  }

  main {
    padding: 0 18px 60px;
  }

  section {
    padding: 28px 22px;
    margin-top: 32px;
    border-radius: var(--radius-md);
  }

  section h2 {
    font-size: 1.35rem;
    padding-left: 15px;
  }

  #hero {
    padding: 40px 24px;
    border-radius: var(--radius-lg);
  }

  #hero h1 {
    font-size: clamp(1.4rem, 5.5vw, 2rem);
  }

  #hero figure {
    padding: 12px;
  }
}

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

  header nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
  }

  header nav ul {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  header nav ul::-webkit-scrollbar {
    display: none;
  }

  header nav ul li a {
    white-space: nowrap;
  }

  main {
    padding: 0 14px 48px;
  }

  section {
    padding: 22px 16px;
    margin-top: 24px;
  }

  section h2 {
    font-size: 1.2rem;
  }

  section h3 {
    font-size: 1.02rem;
  }

  #hero {
    padding: 32px 18px;
    margin-top: 16px;
  }

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

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

  blockquote {
    padding: 16px 16px 16px 44px;
  }

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

  #faq details p {
    padding: 0 16px 14px;
  }

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

  footer {
    padding: 32px 16px 24px;
  }
}

/* ============ 可访问性 & 动效偏好 ============ */
a:focus-visible,
summary:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

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

  section {
    opacity: 1;
    transform: none;
  }
}