:root {
  --primary: #6d5dfc;
  --primary-dark: #4c3fd6;
  --primary-light: #a89bff;
  --accent: #ff6b9d;
  --accent-dark: #e04a7d;
  --gradient-start: #6d5dfc;
  --gradient-mid: #8b5cf6;
  --gradient-end: #ff6b9d;
  --bg: #f5f6fa;
  --bg-alt: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.72);
  --bg-glass: rgba(255, 255, 255, 0.55);
  --bg-glass-border: rgba(255, 255, 255, 0.65);
  --text: #1a1a2e;
  --text-secondary: #4a4a6a;
  --text-muted: #7a7a9a;
  --border: rgba(109, 93, 252, 0.12);
  --shadow-sm: 0 2px 8px rgba(109, 93, 252, 0.08);
  --shadow-md: 0 8px 32px rgba(109, 93, 252, 0.12);
  --shadow-lg: 0 16px 48px rgba(109, 93, 252, 0.18);
  --shadow-glow: 0 0 40px rgba(109, 93, 252, 0.15);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f1a;
    --bg-alt: #16162a;
    --bg-card: rgba(30, 30, 55, 0.75);
    --bg-glass: rgba(30, 30, 55, 0.6);
    --bg-glass-border: rgba(255, 255, 255, 0.08);
    --text: #e8e8f0;
    --text-secondary: #b0b0c8;
    --text-muted: #7a7a9a;
    --border: rgba(109, 93, 252, 0.2);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(109, 93, 252, 0.25);
  }
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(109, 93, 252, 0.08), transparent),
    radial-gradient(ellipse 60% 50% at 90% 20%, rgba(255, 107, 157, 0.06), transparent),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(139, 92, 246, 0.05), transparent);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-color-scheme: dark) {
  body {
    background-image:
      radial-gradient(ellipse 80% 60% at 10% 0%, rgba(109, 93, 252, 0.12), transparent),
      radial-gradient(ellipse 60% 50% at 90% 20%, rgba(255, 107, 157, 0.08), transparent),
      radial-gradient(ellipse 70% 60% at 50% 100%, rgba(139, 92, 246, 0.08), transparent);
  }
}

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

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

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

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

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

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

ul,
ol {
  list-style: none;
}

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

h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  position: relative;
  padding-bottom: 0.6em;
  margin-bottom: 1.2em;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
  transition: width var(--transition);
}

section:hover > h2::after {
  width: 88px;
}

h3 {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  margin-bottom: 0.6em;
  color: var(--text);
}

h4 {
  font-size: 1rem;
  margin-bottom: 0.5em;
}

p {
  margin-bottom: 1em;
  color: var(--text-secondary);
}

header {
  position: relative;
  padding: 0;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid) 45%, var(--gradient-end) 100%);
  overflow: hidden;
  isolation: isolate;
}

header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.15), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1), transparent 50%);
  z-index: -1;
}

header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--bg);
  clip-path: ellipse(75% 100% at 50% 100%);
  z-index: 1;
  transition: background-color var(--transition);
}

header > h1 {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 0.5rem;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  animation: fadeInUp 0.8s ease-out both;
}

header > p {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem 2rem;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  line-height: 1.8;
  animation: fadeInUp 0.8s ease-out 0.15s both;
}

header nav {
  position: relative;
  z-index: 3;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

header nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

header nav ul li a {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transition);
  white-space: nowrap;
}

header nav ul li a:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  color: #fff;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

section {
  margin-bottom: 2.5rem;
  padding: 2rem 2rem 2.2rem;
  background: var(--bg-card);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--bg-glass-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: fadeInUp 0.7s ease-out both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
}

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

section:hover {
  box-shadow: var(--shadow-md), var(--shadow-glow);
  border-color: rgba(109, 93, 252, 0.25);
}

section:nth-child(1) { animation-delay: 0s; }
section:nth-child(2) { animation-delay: 0.05s; }
section:nth-child(3) { animation-delay: 0.1s; }
section:nth-child(4) { animation-delay: 0.15s; }
section:nth-child(5) { animation-delay: 0.2s; }
section:nth-child(6) { animation-delay: 0.25s; }
section:nth-child(7) { animation-delay: 0.3s; }
section:nth-child(8) { animation-delay: 0.35s; }
section:nth-child(9) { animation-delay: 0.4s; }
section:nth-child(10) { animation-delay: 0.45s; }
section:nth-child(11) { animation-delay: 0.5s; }
section:nth-child(12) { animation-delay: 0.55s; }
section:nth-child(13) { animation-delay: 0.6s; }
section:nth-child(14) { animation-delay: 0.65s; }
section:nth-child(15) { animation-delay: 0.7s; }
section:nth-child(16) { animation-delay: 0.75s; }

section ul,
section ol {
  padding-left: 0;
}

section ul li,
section ol li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.8rem;
  color: var(--text-secondary);
  transition: color var(--transition), transform var(--transition);
}

section ul li::before {
  content: '';
  position: absolute;
  left: 0.3rem;
  top: 0.95rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  transition: transform var(--transition-bounce), box-shadow var(--transition);
}

section ul li:hover {
  color: var(--text);
  transform: translateX(4px);
}

section ul li:hover::before {
  transform: scale(1.4);
  box-shadow: 0 0 12px rgba(109, 93, 252, 0.5);
}

section ol {
  counter-reset: ol-counter;
}

section ol li {
  counter-increment: ol-counter;
  padding-left: 2.6rem;
}

section ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
  border-radius: 50%;
  transition: transform var(--transition-bounce), box-shadow var(--transition);
}

section ol li:hover {
  color: var(--text);
  transform: translateX(4px);
}

section ol li:hover::before {
  transform: scale(1.15);
  box-shadow: 0 0 16px rgba(109, 93, 252, 0.45);
}

section ul li a,
section ol li a {
  font-weight: 500;
}

blockquote {
  position: relative;
  margin: 1.2rem 0;
  padding: 1.2rem 1.5rem 1.2rem 2rem;
  background: linear-gradient(135deg, rgba(109, 93, 252, 0.06), rgba(255, 107, 157, 0.04));
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

blockquote:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
  border-left-color: var(--accent);
}

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

blockquote p::before {
  content: '\201C';
  font-size: 2rem;
  line-height: 0;
  vertical-align: -0.4em;
  color: var(--primary-light);
  margin-right: 0.15em;
}

blockquote p::after {
  content: '\201D';
  font-size: 2rem;
  line-height: 0;
  vertical-align: -0.4em;
  color: var(--primary-light);
  margin-left: 0.15em;
}

article {
  position: relative;
  margin: 1.2rem 0;
  padding: 1.5rem 1.6rem;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background-color var(--transition);
  overflow: hidden;
}

article::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--gradient-start), var(--gradient-end));
  opacity: 0;
  transition: opacity var(--transition), width var(--transition);
}

article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(109, 93, 252, 0.25);
}

article:hover::before {
  opacity: 1;
  width: 5px;
}

article h3 {
  margin-bottom: 0.4em;
  transition: color var(--transition);
}

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

article p:first-of-type {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.5em;
  letter-spacing: 0.02em;
}

article p:last-of-type {
  margin-bottom: 0;
}

article p:last-of-type a {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  transition: gap var(--transition), color var(--transition);
}

article p:last-of-type a::after {
  content: '\2192';
  transition: transform var(--transition);
}

article p:last-of-type a:hover {
  gap: 0.6em;
  color: var(--accent);
}

article p:last-of-type a:hover::after {
  transform: translateX(3px);
}

#news ul li {
  padding-left: 0;
  padding: 0.65rem 1rem;
  margin-bottom: 0.4rem;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  border: 1px solid transparent;
  transition: all var(--transition);
  font-size: 0.92rem;
}

#news ul li::before {
  display: none;
}

#news ul li:hover {
  background: linear-gradient(135deg, rgba(109, 93, 252, 0.08), rgba(255, 107, 157, 0.05));
  border-color: var(--border);
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
}

#faq h3 {
  position: relative;
  padding: 0.9rem 1.2rem;
  margin-bottom: 0.3rem;
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.98rem;
}

#faq h3:hover {
  background: linear-gradient(135deg, rgba(109, 93, 252, 0.08), rgba(255, 107, 157, 0.04));
  border-color: rgba(109, 93, 252, 0.2);
  transform: translateX(4px);
}

#faq h3 + p {
  padding: 0.8rem 1.2rem 1rem;
  margin-bottom: 0.8rem;
  color: var(--text-secondary);
  font-size: 0.93rem;
  border-left: 3px solid var(--primary-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(109, 93, 252, 0.03);
  transition: border-color var(--transition), background-color var(--transition);
}

#faq h3:hover + p {
  border-left-color: var(--accent);
  background: rgba(255, 107, 157, 0.04);
}

#contact ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.6rem;
}

#contact ul li {
  padding: 0.7rem 1rem 0.7rem 2.2rem;
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  transition: all var(--transition);
}

#contact ul li::before {
  left: 0.9rem;
  top: 1.15rem;
}

#contact ul li:hover {
  background: linear-gradient(135deg, rgba(109, 93, 252, 0.08), rgba(255, 107, 157, 0.04));
  border-color: rgba(109, 93, 252, 0.2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

#sitemap ul,
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

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

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

#sitemap ul li a,
#links ul li a {
  display: inline-block;
  padding: 0.45rem 1rem;
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: 50px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

#sitemap ul li a:hover,
#links ul li a:hover {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(109, 93, 252, 0.3);
}

footer {
  position: relative;
  padding: 2.5rem 1.5rem 2rem;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid) 50%, var(--gradient-end) 100%);
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.08), transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.06), transparent 50%);
}

footer > p {
  position: relative;
  margin-bottom: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
}

footer nav ul {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

footer nav ul li a {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all var(--transition);
}

footer nav ul li a:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  transform: translateY(-2px);
}

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@media (max-width: 900px) {
  main {
    padding: 0 1rem 3rem;
  }

  section {
    padding: 1.6rem 1.3rem 1.8rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.6rem;
  }

  header > h1 {
    padding-top: 2.5rem;
  }

  header nav ul li a {
    padding: 0.4rem 0.85rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 640px) {
  :root {
    --radius-lg: 20px;
    --radius-md: 14px;
  }

  body {
    font-size: 15px;
  }

  header > h1 {
    padding: 2rem 1rem 0.3rem;
  }

  header > p {
    padding: 0.3rem 1rem 1.5rem;
    font-size: 0.88rem;
  }

  header nav {
    padding: 0 0.8rem 2rem;
  }

  header nav ul {
    gap: 0.35rem;
  }

  header nav ul li a {
    padding: 0.35rem 0.7rem;
    font-size: 0.78rem;
  }

  header::after {
    height: 40px;
  }

  main {
    padding: 0 0.75rem 2rem;
  }

  section {
    padding: 1.3rem 1rem 1.4rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.2rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  h3 {
    font-size: 1rem;
  }

  blockquote {
    padding: 0.9rem 1rem 0.9rem 1.3rem;
  }

  article {
    padding: 1.1rem 1rem;
  }

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

  #sitemap ul li a,
  #links ul li a {
    padding: 0.38rem 0.8rem;
    font-size: 0.8rem;
  }

  footer {
    padding: 2rem 1rem 1.6rem;
  }
}

@media (max-width: 380px) {
  header nav ul li a {
    padding: 0.3rem 0.55rem;
    font-size: 0.72rem;
  }

  section {
    padding: 1rem 0.85rem 1.1rem;
  }
}

@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 {
  header {
    background: none;
    color: #000;
  }

  header > h1,
  header > p {
    color: #000;
    text-shadow: none;
  }

  header::after {
    display: none;
  }

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

  footer {
    background: none;
    color: #000;
  }
}