:root {
  --primary: #6c5ce7;
  --primary-light: #a29bfe;
  --primary-dark: #4834d4;
  --secondary: #00cec9;
  --accent: #fd79a8;
  --gradient-1: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  --gradient-2: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 50%, #00cec9 100%);
  --gradient-3: linear-gradient(135deg, #fd79a8 0%, #6c5ce7 100%);
  --gradient-banner: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  --bg-body: #f0f2f5;
  --bg-card: rgba(255, 255, 255, 0.72);
  --bg-card-solid: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.25);
  --bg-glass-border: rgba(255, 255, 255, 0.35);
  --bg-header: rgba(26, 26, 46, 0.85);
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a6a;
  --text-muted: #8888a0;
  --text-inverse: #ffffff;
  --border-color: rgba(108, 92, 231, 0.12);
  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 8px 32px rgba(26, 26, 46, 0.1);
  --shadow-lg: 0 16px 48px rgba(26, 26, 46, 0.14);
  --shadow-glow: 0 0 24px rgba(108, 92, 231, 0.3);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max-width: 1200px;
  --header-height: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-body: #0d0d1a;
    --bg-card: rgba(30, 30, 55, 0.72);
    --bg-card-solid: #1a1a30;
    --bg-glass: rgba(30, 30, 55, 0.45);
    --bg-glass-border: rgba(108, 92, 231, 0.2);
    --bg-header: rgba(13, 13, 26, 0.9);
    --text-primary: #e8e8f0;
    --text-secondary: #b0b0c8;
    --text-muted: #707090;
    --border-color: rgba(108, 92, 231, 0.18);
    --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 24px rgba(108, 92, 231, 0.45);
  }
}

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

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

body {
  font-family: var(--font-stack);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-primary);
  background-color: var(--bg-body);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(108, 92, 231, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(0, 206, 201, 0.06) 0%, transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

::selection {
  background-color: 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);
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: var(--header-height);
  background: var(--bg-header);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--bg-glass-border);
  transition: background var(--transition-smooth), box-shadow var(--transition-smooth);
}

header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-2);
  opacity: 0.8;
}

nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

nav a {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-bounce);
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-2);
  border-radius: 1px;
  transform: translateX(-50%);
  transition: width var(--transition-smooth);
}

nav a:hover {
  color: #fff;
  background: rgba(108, 92, 231, 0.25);
  transform: translateY(-2px);
}

nav a:hover::after {
  width: 60%;
}

nav a:active {
  transform: translateY(0) scale(0.97);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px 60px;
}

section {
  position: relative;
  margin-top: 48px;
  padding: 40px 36px;
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(32px);
  animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transition: box-shadow var(--transition-smooth), transform var(--transition-smooth), border-color var(--transition-smooth);
}

section:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(108, 92, 231, 0.22);
}

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

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

#home {
  margin-top: 32px;
  padding: 56px 40px;
  background: var(--gradient-banner);
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  overflow: hidden;
  color: var(--text-inverse);
}

#home::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.35) 0%, transparent 70%);
  border-radius: 50%;
  animation: floatOrb 8s ease-in-out infinite;
  pointer-events: none;
}

#home::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 206, 201, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  animation: floatOrb 10s ease-in-out infinite reverse;
  pointer-events: none;
}

@keyframes floatOrb {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

#home:hover {
  box-shadow: var(--shadow-lg), 0 0 40px rgba(108, 92, 231, 0.4);
}

#home h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #a29bfe 50%, #00cec9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(108, 92, 231, 0.3);
}

#home p {
  position: relative;
  z-index: 1;
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 16px;
}

#home p:last-child {
  margin-bottom: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
}

h2 {
  position: relative;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  padding-left: 18px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  transition: color var(--transition-smooth);
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: var(--gradient-2);
  border-radius: 2px;
  transition: height var(--transition-smooth), box-shadow var(--transition-smooth);
}

section:hover h2::before {
  height: 90%;
  box-shadow: 0 0 12px rgba(108, 92, 231, 0.5);
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 28px;
  margin-bottom: 12px;
  line-height: 1.5;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border-color);
  transition: color var(--transition-smooth), padding-left var(--transition-smooth);
}

h3:hover {
  padding-left: 6px;
  color: var(--primary);
}

p {
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 14px;
  transition: color var(--transition-smooth);
}

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

a:hover {
  color: var(--primary-dark);
  opacity: 0.85;
}

article {
  position: relative;
  margin-top: 20px;
  padding: 24px 28px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-bounce), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
  overflow: hidden;
}

article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-smooth);
}

article:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(108, 92, 231, 0.25);
}

article:hover::before {
  transform: scaleX(1);
}

article h3 {
  margin-top: 0;
  border-bottom: none;
  padding-bottom: 0;
  font-size: 1.05rem;
}

article h3:hover {
  padding-left: 0;
}

article p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  padding: 6px 14px;
  border: 1px solid rgba(108, 92, 231, 0.3);
  border-radius: 50px;
  transition: all var(--transition-fast);
}

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

article a:hover {
  background: var(--gradient-2);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(108, 92, 231, 0.35);
  transform: translateY(-2px);
  opacity: 1;
}

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

#faq h3 {
  margin-top: 24px;
  padding: 14px 20px;
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  border-bottom: none;
  cursor: default;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

#faq h3:hover {
  background: rgba(108, 92, 231, 0.08);
  border-color: rgba(108, 92, 231, 0.2);
  padding-left: 20px;
  transform: translateX(4px);
}

#faq h3 + p {
  margin-top: 0;
  padding: 16px 20px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 0.9rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

#faq h3 + p:hover {
  border-color: rgba(108, 92, 231, 0.2);
  box-shadow: var(--shadow-sm);
}

#howto h3 {
  margin-top: 24px;
  padding: 12px 18px;
  background: var(--gradient-3);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 16px rgba(253, 121, 168, 0.25);
  transition: transform var(--transition-bounce), box-shadow var(--transition-smooth);
}

#howto h3:hover {
  padding-left: 18px;
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 8px 24px rgba(253, 121, 168, 0.4);
  color: #fff;
}

#howto p {
  padding-left: 4px;
}

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

#sitemap ul,
#links ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

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

#sitemap a,
#links a {
  display: block;
  padding: 12px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  text-align: center;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

#sitemap a::before,
#links a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-2);
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: -1;
}

#sitemap a:hover,
#links a:hover {
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.3);
  opacity: 1;
}

#sitemap a:hover::before,
#links a:hover::before {
  opacity: 1;
}

#legal h2 {
  margin-top: 32px;
}

#legal h2:first-child {
  margin-top: 0;
}

#legal p {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 16px 20px;
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

#legal p:hover {
  border-color: rgba(108, 92, 231, 0.2);
  box-shadow: var(--shadow-sm);
}

#author {
  background: var(--gradient-banner);
  border: none;
  color: var(--text-inverse);
}

#author h2 {
  color: #fff;
}

#author h2::before {
  background: var(--gradient-2);
  box-shadow: 0 0 12px rgba(108, 92, 231, 0.6);
}

#author p {
  color: rgba(255, 255, 255, 0.75);
}

#author p:last-child {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

footer {
  position: relative;
  margin-top: 48px;
  padding: 40px 20px;
  background: var(--gradient-banner);
  text-align: center;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-2);
}

footer p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
  transition: color var(--transition-fast);
}

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

footer a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  transition: color var(--transition-fast), text-shadow var(--transition-fast);
}

footer a:hover {
  color: #fff;
  text-shadow: 0 0 12px rgba(108, 92, 231, 0.8);
  opacity: 1;
}

@media (max-width: 768px) {
  :root {
    --header-height: 56px;
  }

  nav {
    justify-content: flex-start;
    padding: 0 12px;
    gap: 2px;
  }

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

  main {
    padding: 0 12px 40px;
  }

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

  #home {
    margin-top: 20px;
    padding: 36px 24px;
    border-radius: var(--radius-lg);
  }

  #home h1 {
    font-size: 1.35rem;
    margin-bottom: 18px;
  }

  #home p {
    font-size: 0.9rem;
  }

  h2 {
    font-size: 1.15rem;
    margin-bottom: 18px;
    padding-left: 14px;
  }

  h3 {
    font-size: 0.95rem;
    margin-top: 22px;
  }

  p {
    font-size: 0.875rem;
  }

  article {
    padding: 18px 20px;
    border-radius: var(--radius-sm);
  }

  article h3 {
    font-size: 0.95rem;
  }

  #faq h3 {
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  #faq h3 + p {
    padding: 14px 16px;
    font-size: 0.85rem;
  }

  #howto h3 {
    padding: 10px 14px;
    font-size: 0.9rem;
  }

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

  #sitemap a,
  #links a {
    padding: 10px 12px;
    font-size: 0.82rem;
  }

  footer {
    padding: 28px 16px;
  }

  footer p {
    font-size: 0.78rem;
  }

  footer a {
    font-size: 0.78rem;
  }
}

@media (max-width: 380px) {
  section {
    padding: 18px 14px;
  }

  #home {
    padding: 28px 18px;
  }

  #home h1 {
    font-size: 1.2rem;
  }

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

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

@media (min-width: 1200px) {
  section {
    padding: 48px 44px;
  }

  #home {
    padding: 72px 56px;
  }

  #home h1 {
    font-size: 2.4rem;
  }
}

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

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

@media print {
  header {
    position: static;
    background: #fff;
    border-bottom: 2px solid #000;
  }

  header::after {
    display: none;
  }

  nav a {
    color: #000;
  }

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

  #home,
  #author,
  footer {
    background: #f5f5f5;
    color: #000;
  }

  #home h1 {
    -webkit-text-fill-color: #000;
    background: none;
  }

  #home p,
  #author p,
  footer p,
  footer a {
    color: #333;
  }
}