:root {
  --brand: #6c5ce7;
  --brand-2: #a29bfe;
  --brand-3: #fd79a8;
  --accent: #00cec9;
  --bg: #f4f5fb;
  --bg-soft: #ffffff;
  --bg-elev: rgba(255, 255, 255, 0.72);
  --text: #22252b;
  --text-soft: #5b6270;
  --text-mute: #7a8290;
  --line: #e2e6ee;
  --line-soft: #edf0f6;
  --shadow-sm: 0 3px 14px rgba(20, 30, 60, 0.06);
  --shadow-md: 0 10px 30px rgba(20, 30, 60, 0.10);
  --shadow-lg: 0 20px 50px rgba(20, 30, 60, 0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --glass-blur: 14px;
  --grad-1: linear-gradient(120deg, #6c5ce7 0%, #a29bfe 55%, #fd79a8 100%);
  --grad-2: linear-gradient(120deg, #00b894 0%, #00cec9 60%, #6c5ce7 100%);
  --grad-3: linear-gradient(120deg, #fd79a8 0%, #e84393 55%, #6c5ce7 100%);
}

body.dark {
  --brand: #8f83ff;
  --brand-2: #b3abff;
  --brand-3: #ff8fb8;
  --accent: #2ee6e0;
  --bg: #0f1117;
  --bg-soft: #171a22;
  --bg-elev: rgba(26, 29, 37, 0.72);
  --text: #d8dbe2;
  --text-soft: #a8b0be;
  --text-mute: #8b93a3;
  --line: #2a2f3c;
  --line-soft: #22262f;
  --shadow-sm: 0 3px 14px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
  overflow-x: hidden;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(600px 400px at 8% -5%, rgba(108, 92, 231, 0.16), transparent 70%),
    radial-gradient(500px 380px at 95% 8%, rgba(253, 121, 168, 0.14), transparent 70%),
    radial-gradient(520px 420px at 50% 105%, rgba(0, 206, 201, 0.12), transparent 70%);
}

body.dark::before {
  background:
    radial-gradient(600px 400px at 8% -5%, rgba(143, 131, 255, 0.18), transparent 70%),
    radial-gradient(500px 380px at 95% 8%, rgba(255, 143, 184, 0.12), transparent 70%),
    radial-gradient(520px 420px at 50% 105%, rgba(46, 230, 224, 0.10), transparent 70%);
}

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

a:hover {
  color: var(--brand-3);
  text-decoration: none;
}

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

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

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

header.site {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-elev);
  -webkit-backdrop-filter: saturate(180%) blur(var(--glass-blur));
  backdrop-filter: saturate(180%) blur(var(--glass-blur));
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  color: var(--text);
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.logo svg {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(108, 92, 231, 0.35);
  transition: transform 0.4s var(--ease);
}

.logo:hover svg {
  transform: rotate(-8deg) scale(1.06);
}

nav.main ul {
  display: flex;
  gap: 22px;
  list-style: none;
  font-size: 15px;
}

nav.main a {
  position: relative;
  color: var(--text-soft);
  padding: 4px 0;
}

nav.main a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

nav.main a:hover {
  color: var(--brand);
}

nav.main a:hover::after {
  transform: scaleX(1);
}

.tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.searchbox {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 4px 3px 14px;
  background: var(--bg-soft);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.4s var(--ease);
}

.searchbox:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.14);
}

.searchbox input {
  border: none;
  outline: none;
  background: transparent;
  width: 130px;
  font-size: 14px;
  color: var(--text);
  font-family: inherit;
}

.searchbox input::placeholder {
  color: var(--text-mute);
}

.btn {
  border: none;
  background: var(--grad-1);
  color: #fff;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), opacity 0.25s var(--ease);
  box-shadow: 0 4px 14px rgba(108, 92, 231, 0.28);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(108, 92, 231, 0.4);
}

.btn:active {
  transform: translateY(0) scale(0.97);
}

.btn.ghost {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--brand);
  box-shadow: none;
}

.btn.ghost:hover {
  background: rgba(108, 92, 231, 0.1);
  box-shadow: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text);
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.25s var(--ease);
}

.menu-toggle:hover {
  background: rgba(108, 92, 231, 0.12);
}

.banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin: 24px 0;
  box-shadow: var(--shadow-md);
}

.slides {
  display: flex;
  transition: transform 0.6s var(--ease);
  will-change: transform;
}

.slide {
  min-width: 100%;
  padding: 56px 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.slide::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.slide::before {
  content: "";
  position: absolute;
  right: 80px;
  bottom: -90px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.slide h2 {
  font-size: 30px;
  margin-bottom: 12px;
  border: none;
  padding: 0;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.slide p {
  max-width: 640px;
  opacity: 0.94;
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}

.slide.s1 {
  background: var(--grad-1);
}

.slide.s2 {
  background: var(--grad-2);
}

.slide.s3 {
  background: var(--grad-3);
}

.dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), width 0.3s var(--ease);
}

.dots span:hover {
  background: rgba(255, 255, 255, 0.8);
}

.dots span.active {
  background: #fff;
  width: 22px;
  border-radius: 999px;
}

section {
  padding: 38px 0;
}

h1 {
  font-size: 30px;
  line-height: 1.4;
  margin-bottom: 16px;
  letter-spacing: 0.3px;
  background: var(--grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 24px;
  margin: 0 0 16px;
  border-left: 5px solid var(--brand);
  padding-left: 12px;
  line-height: 1.4;
  position: relative;
}

h2::after {
  content: "";
  position: absolute;
  left: -5px;
  bottom: -6px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--brand);
  opacity: 0.5;
}

h3 {
  font-size: 19px;
  margin: 22px 0 10px;
  color: var(--brand);
  transition: color 0.3s var(--ease);
}

h4 {
  font-size: 16px;
  margin: 16px 0 8px;
}

p {
  margin-bottom: 14px;
  text-align: justify;
  color: var(--text);
}

.lead {
  font-size: 17px;
  background: linear-gradient(120deg, rgba(108, 92, 231, 0.10), rgba(253, 121, 168, 0.08));
  padding: 18px 20px;
  border-radius: var(--radius);
  border-left: 4px solid var(--brand);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-sm);
}

.grid {
  display: grid;
  gap: 20px;
}

.g2 {
  grid-template-columns: repeat(2, 1fr);
}

.g3 {
  grid-template-columns: repeat(3, 1fr);
}

.g4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  position: relative;
  background: var(--bg-elev);
  -webkit-backdrop-filter: saturate(160%) blur(var(--glass-blur));
  backdrop-filter: saturate(160%) blur(var(--glass-blur));
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  overflow: hidden;
}

body.dark .card {
  border-color: rgba(255, 255, 255, 0.06);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-1);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
  mix-blend-mode: overlay;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(108, 92, 231, 0.4);
}

.card:hover::before {
  opacity: 0.06;
}

.card h3 {
  margin-top: 0;
}

.stat {
  text-align: center;
}

.stat .num {
  font-size: 32px;
  font-weight: 700;
  background: var(--grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.3;
}

.stat .label {
  font-size: 14px;
  color: var(--text-mute);
}

.article-item {
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
  transition: padding-left 0.3s var(--ease), background 0.3s var(--ease);
}

.article-item:hover {
  padding-left: 10px;
}

.article-item:last-child {
  border-bottom: none;
}

.article-item h4 {
  font-size: 17px;
  margin: 0 0 6px;
}

.article-item h4 a {
  color: var(--text);
  transition: color 0.25s var(--ease);
}

.article-item h4 a:hover {
  color: var(--brand);
}

.article-item p {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 15px;
}

.meta {
  font-size: 13px;
  color: var(--text-mute);
  margin-bottom: 6px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  background: var(--bg-elev);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.faq-item:hover {
  border-color: var(--brand-2);
}

.faq-item.open {
  border-color: var(--brand);
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.16);
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--text);
  transition: color 0.25s var(--ease);
}

.faq-q:hover {
  color: var(--brand);
}

.faq-q span {
  font-size: 20px;
  font-weight: 400;
  color: var(--brand);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}

.faq-item.open .faq-q span {
  transform: rotate(180deg);
}

.faq-a {
  display: none;
  padding: 0 16px 16px;
  color: var(--text-soft);
  animation: fadeSlide 0.4s var(--ease);
}

.faq-item.open .faq-a {
  display: block;
}

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

.steps {
  counter-reset: step;
}

.steps li {
  list-style: none;
  position: relative;
  padding: 10px 0 10px 46px;
  margin-bottom: 8px;
  transition: transform 0.3s var(--ease);
}

.steps li:hover {
  transform: translateX(4px);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--grad-1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.35);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.show {
  opacity: 1;
  transform: none;
}

footer.site {
  background: var(--bg-soft);
  color: var(--text-soft);
  padding: 40px 0 20px;
  margin-top: 30px;
  border-top: 1px solid var(--line-soft);
  transition: background 0.4s var(--ease);
}

body.dark footer.site {
  background: #0b0d12;
}

footer.site a {
  color: var(--text-soft);
  transition: color 0.25s var(--ease);
}

footer.site a:hover {
  color: var(--brand);
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.foot-grid h4 {
  color: var(--text);
  margin-bottom: 10px;
  font-size: 16px;
}

.foot-grid ul {
  list-style: none;
  font-size: 14px;
  line-height: 2;
}

.foot-grid li {
  transition: transform 0.25s var(--ease);
}

.foot-grid li:hover {
  transform: translateX(3px);
}

.copy {
  text-align: center;
  font-size: 13px;
  color: var(--text-mute);
  margin-top: 24px;
  border-top: 1px solid var(--line-soft);
  padding-top: 16px;
}

.copy p {
  text-align: center;
  margin-bottom: 6px;
}

#totop {
  position: fixed;
  right: 22px;
  bottom: 26px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--grad-1);
  color: #fff;
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: none;
  z-index: 99;
  box-shadow: 0 8px 22px rgba(108, 92, 231, 0.4);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#totop:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 12px 28px rgba(108, 92, 231, 0.55);
}

.breadcrumb {
  font-size: 14px;
  color: var(--text-mute);
  padding-top: 16px;
}

.breadcrumb a {
  color: var(--brand);
}

.tag {
  display: inline-block;
  background: rgba(108, 92, 231, 0.12);
  color: var(--brand);
  font-size: 13px;
  padding: 2px 10px;
  border-radius: 999px;
  margin: 0 6px 6px 0;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.tag:hover {
  background: rgba(108, 92, 231, 0.22);
  transform: translateY(-1px);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 15px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

th,
td {
  border: 1px solid var(--line);
  padding: 10px;
  text-align: left;
}

th {
  background: rgba(108, 92, 231, 0.10);
  font-weight: 600;
}

tbody tr {
  transition: background 0.25s var(--ease);
}

tbody tr:hover {
  background: rgba(108, 92, 231, 0.06);
}

ul {
  padding-left: 22px;
}

section ul:not(.steps) {
  margin-bottom: 14px;
}

section ul:not(.steps) li {
  margin-bottom: 6px;
  color: var(--text-soft);
}

@media (max-width: 900px) {
  .g3,
  .g4,
  .g2,
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }

  nav.main {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-elev);
    -webkit-backdrop-filter: saturate(180%) blur(var(--glass-blur));
    backdrop-filter: saturate(180%) blur(var(--glass-blur));
    padding: 12px 20px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid var(--line-soft);
    animation: fadeSlide 0.3s var(--ease);
  }

  nav.main.open {
    display: block;
  }

  nav.main ul {
    flex-direction: column;
    gap: 12px;
  }

  .menu-toggle {
    display: block;
  }

  .searchbox {
    display: none;
  }

  .slide {
    padding: 44px 28px;
  }

  .slide h2 {
    font-size: 25px;
  }
}

@media (max-width: 600px) {
  .g2,
  .g3,
  .g4,
  .foot-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 23px;
  }

  h2 {
    font-size: 20px;
  }

  h3 {
    font-size: 17px;
  }

  .slide {
    padding: 36px 22px;
  }

  .slide h2 {
    font-size: 22px;
  }

  .slide p {
    font-size: 15px;
  }

  section {
    padding: 28px 0;
  }

  .stat .num {
    font-size: 26px;
  }

  table {
    font-size: 13px;
  }

  th,
  td {
    padding: 8px;
  }

  #totop {
    right: 16px;
    bottom: 18px;
    width: 42px;
    height: 42px;
  }
}

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