:root {
  --primary: #1a73e8;
  --primary-light: #4a9eff;
  --primary-dark: #0d47a1;
  --accent: #7c4dff;
  --accent-light: #b388ff;
  --bg: #f5f7fb;
  --bg-alt: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-glass: rgba(255, 255, 255, 0.55);
  --text: #1a2332;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --border: rgba(26, 115, 232, 0.12);
  --border-glass: rgba(255, 255, 255, 0.6);
  --shadow-sm: 0 2px 8px rgba(26, 115, 232, 0.08);
  --shadow-md: 0 8px 24px rgba(26, 115, 232, 0.12);
  --shadow-lg: 0 16px 48px rgba(26, 115, 232, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --gradient-banner: linear-gradient(135deg, #1a73e8 0%, #7c4dff 50%, #4a9eff 100%);
  --gradient-soft: linear-gradient(135deg, rgba(26, 115, 232, 0.08) 0%, rgba(124, 77, 255, 0.08) 100%);
  --transition: 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #4a9eff;
    --primary-light: #7bb8ff;
    --primary-dark: #1a73e8;
    --accent: #b388ff;
    --accent-light: #d1b9ff;
    --bg: #0b1120;
    --bg-alt: #131c30;
    --bg-card: rgba(19, 28, 48, 0.7);
    --bg-glass: rgba(19, 28, 48, 0.55);
    --text: #e8edf5;
    --text-secondary: #a0aec0;
    --text-muted: #718096;
    --border: rgba(74, 158, 255, 0.18);
    --border-glass: rgba(74, 158, 255, 0.15);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --gradient-banner: linear-gradient(135deg, #0d47a1 0%, #4a2a9e 50%, #1565c0 100%);
    --gradient-soft: linear-gradient(135deg, rgba(74, 158, 255, 0.06) 0%, rgba(179, 136, 255, 0.06) 100%);
  }
}

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

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

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 10% 0%, rgba(26, 115, 232, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 20%, rgba(124, 77, 255, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(74, 158, 255, 0.04) 0%, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

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

header {
  position: relative;
  padding: 72px 24px 64px;
  background: var(--gradient-banner);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

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

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

header h1 {
  max-width: 900px;
  margin: 0 auto 20px;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-align: center;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  animation: fadeInUp 0.8s ease both;
}

header > p {
  max-width: 760px;
  margin: 0 auto 40px;
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  line-height: 1.8;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  animation: fadeInUp 0.8s ease 0.15s both;
}

header nav {
  max-width: 1000px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease 0.3s both;
}

header nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
}

header nav ul li a {
  display: inline-block;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition);
}

header nav ul li a:hover,
header nav ul li a:focus-visible {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  outline: none;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

main section {
  position: relative;
  margin-bottom: 32px;
  padding: 40px 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  animation: fadeInUp 0.7s ease both;
}

main section:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(26, 115, 232, 0.25);
}

main section:nth-child(even) {
  background: var(--bg-glass);
}

main section > h2 {
  position: relative;
  margin-bottom: 28px;
  padding-bottom: 16px;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

main section > h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 56px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

main section > h2::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 64px;
  width: 8px;
  height: 4px;
  border-radius: 4px;
  background: var(--accent);
  opacity: 0.4;
}

main section h3 {
  margin: 24px 0 10px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  transition: color var(--transition);
}

main section h3:first-of-type {
  margin-top: 0;
}

main section p {
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.8;
}

main section p:last-child {
  margin-bottom: 0;
}

main section ul,
main section ol {
  margin: 12px 0 16px;
  padding-left: 0;
  list-style: none;
}

main section ul li {
  position: relative;
  padding: 10px 16px 10px 40px;
  margin-bottom: 8px;
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: all var(--transition);
}

main section ul li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  transform: translateY(-50%);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12);
}

main section ul li:hover {
  transform: translateX(4px);
  border-color: rgba(26, 115, 232, 0.3);
  box-shadow: var(--shadow-sm);
}

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

main section ol li {
  position: relative;
  padding: 14px 16px 14px 56px;
  margin-bottom: 10px;
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.95rem;
  counter-increment: step-counter;
  transition: all var(--transition);
}

main section ol li::before {
  content: counter(step-counter);
  position: absolute;
  left: 14px;
  top: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

main section ol li:hover {
  transform: translateX(4px);
  border-color: rgba(26, 115, 232, 0.3);
  box-shadow: var(--shadow-sm);
}

main section article {
  position: relative;
  padding: 24px 24px 24px 28px;
  margin-bottom: 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  overflow: hidden;
}

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

main section article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(26, 115, 232, 0.25);
}

main section article:hover::before {
  opacity: 1;
}

main section article h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--text);
}

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

main section article p {
  margin-bottom: 6px;
  font-size: 0.92rem;
}

main section article p a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 100px;
  transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.25);
}

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

main section article p a:hover,
main section article p a:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 115, 232, 0.4);
  outline: none;
}

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

#faq h3 {
  position: relative;
  margin-top: 20px;
  padding: 16px 20px 16px 48px;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  cursor: pointer;
  transition: all var(--transition);
}

#faq h3::before {
  content: "?";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 50%;
  transform: translateY(-50%);
}

#faq h3:hover {
  background: var(--gradient-soft);
  border-color: rgba(26, 115, 232, 0.3);
}

#faq h3 + p {
  margin: 0 0 8px;
  padding: 16px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 0.94rem;
  transition: all var(--transition);
}

#faq h3 + p:hover {
  border-color: rgba(26, 115, 232, 0.25);
}

#howto {
  background: linear-gradient(135deg, rgba(26, 115, 232, 0.04) 0%, rgba(124, 77, 255, 0.04) 100%), var(--bg-card);
}

#contact p {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin-bottom: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: all var(--transition);
}

#contact p:hover {
  transform: translateX(4px);
  border-color: rgba(26, 115, 232, 0.3);
  box-shadow: var(--shadow-sm);
}

#contact p::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12);
}

#sitemap ul,
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#sitemap li,
#links li {
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  border-radius: 0;
}

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

#sitemap li a,
#links li a {
  display: inline-block;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all var(--transition);
}

#sitemap li a:hover,
#links li a:hover,
#sitemap li a:focus-visible,
#links li a:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 115, 232, 0.3);
  outline: none;
}

#legal h3 {
  color: var(--text);
  font-size: 1rem;
}

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

footer {
  position: relative;
  padding: 48px 24px 40px;
  text-align: center;
  background: var(--gradient-banner);
  color: rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

footer p {
  position: relative;
  margin-bottom: 8px;
  font-size: 0.9rem;
  line-height: 1.8;
}

footer p:last-child {
  margin-bottom: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}

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

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

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

@supports (animation-timeline: view()) {
  main section {
    animation: fadeInUp 0.7s ease both;
    animation-timeline: view();
    animation-range: entry 0% entry 30%;
  }
}

@media (max-width: 992px) {
  main section {
    padding: 32px 28px;
  }
}

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

  header {
    padding: 56px 18px 52px;
  }

  header::after {
    height: 50px;
  }

  header > p {
    margin-bottom: 28px;
  }

  header nav ul {
    gap: 8px;
  }

  header nav ul li a {
    padding: 8px 14px;
    font-size: 0.82rem;
  }

  main {
    padding: 0 16px 56px;
  }

  main section {
    margin-bottom: 20px;
    padding: 26px 20px;
    border-radius: var(--radius-md);
  }

  main section > h2 {
    margin-bottom: 22px;
    padding-bottom: 12px;
  }

  main section > h2::after {
    width: 44px;
    height: 3px;
  }

  main section > h2::before {
    left: 50px;
    height: 3px;
  }

  main section h3 {
    font-size: 1.02rem;
  }

  main section p {
    font-size: 0.94rem;
  }

  main section ul li,
  main section ol li {
    font-size: 0.9rem;
  }

  main section article {
    padding: 18px 18px 18px 22px;
  }

  #faq h3 {
    padding: 14px 16px 14px 44px;
    font-size: 0.94rem;
  }

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

  footer {
    padding: 36px 18px 30px;
  }

  footer p {
    font-size: 0.84rem;
  }
}

@media (max-width: 480px) {
  header {
    padding: 44px 14px 44px;
  }

  header h1 {
    font-size: 1.45rem;
  }

  header > p {
    font-size: 0.9rem;
  }

  header nav ul li a {
    padding: 7px 12px;
    font-size: 0.78rem;
  }

  main {
    padding: 0 12px 44px;
  }

  main section {
    padding: 22px 16px;
  }

  main section > h2 {
    font-size: 1.25rem;
  }

  main section article {
    padding: 16px 14px 16px 18px;
  }

  #sitemap li a,
  #links li a {
    padding: 7px 14px;
    font-size: 0.84rem;
  }
}

@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,
  footer {
    background: #fff !important;
    color: #000 !important;
  }

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

  header nav,
  #sitemap,
  #links {
    display: none;
  }
}