:root {
  --bg: #f5f6fa;
  --bg-alt: #ffffff;
  --bg-soft: #eef0f7;
  --text: #1a1a2e;
  --text-soft: #4a4d63;
  --text-muted: #7c8098;
  --border: rgba(26, 26, 46, 0.08);
  --brand: #6c5ce7;
  --brand-2: #a55eea;
  --brand-3: #fd79a8;
  --accent: #00cec9;
  --gradient-hero: linear-gradient(135deg, #6c5ce7 0%, #a55eea 45%, #fd79a8 100%);
  --gradient-soft: linear-gradient(135deg, rgba(108, 92, 231, 0.12), rgba(253, 121, 168, 0.12));
  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 8px 28px rgba(26, 26, 46, 0.1);
  --shadow-lg: 0 18px 48px rgba(26, 26, 46, 0.16);
  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.55);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --maxw: 1180px;
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12121f;
    --bg-alt: #1a1a2e;
    --bg-soft: #202036;
    --text: #eef0f7;
    --text-soft: #c3c6da;
    --text-muted: #8f93ad;
    --border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(26, 26, 46, 0.55);
    --glass-border: rgba(255, 255, 255, 0.12);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.55);
    --gradient-soft: linear-gradient(135deg, rgba(108, 92, 231, 0.22), rgba(253, 121, 168, 0.18));
  }
}

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

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(
      circle at 12% 0%,
      rgba(108, 92, 231, 0.1),
      transparent 42%
    ),
    radial-gradient(circle at 88% 8%, rgba(253, 121, 168, 0.1), transparent 40%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

a:hover,
a:focus-visible {
  color: var(--brand-2);
}

a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

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

h1 {
  font-size: clamp(1.7rem, 4.2vw, 2.9rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  margin: 0 0 1.2rem;
  position: relative;
  padding-bottom: 0.7rem;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  border-radius: 4px;
  background: var(--gradient-hero);
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  margin: 1.8rem 0 0.8rem;
}

h4 {
  font-size: 1.02rem;
  margin: 1.2rem 0 0.5rem;
  color: var(--brand);
}

p {
  margin: 0 0 1rem;
  color: var(--text-soft);
}

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

blockquote {
  margin: 0;
  padding: 1.2rem 1.4rem;
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-md);
  background: var(--gradient-soft);
  color: var(--text-soft);
  font-style: normal;
}

blockquote p {
  margin: 0;
}

/* ============ 顶部导航 ============ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h);
  background: var(--glass-bg);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

header nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

header nav > a:first-child {
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
  padding: 0.4rem 0;
}

header nav > a:first-child:hover {
  filter: brightness(1.12);
}

header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  margin-left: auto;
}

header nav ul li a {
  display: inline-block;
  padding: 0.45rem 0.7rem;
  font-size: 0.9rem;
  color: var(--text-soft);
  border-radius: 999px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

header nav ul li a:hover,
header nav ul li a:focus-visible {
  color: var(--brand);
  background: rgba(108, 92, 231, 0.1);
  transform: translateY(-1px);
}

/* ============ 主内容容器 ============ */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

main > section,
main > nav {
  margin: 1.6rem 0;
  padding: 1.75rem 1.6rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
  animation: fadeUp 0.7s var(--ease) both;
}

main > section:hover,
main > nav:hover {
  box-shadow: var(--shadow-md);
}

/* ============ Hero 渐变 Banner ============ */
#hero {
  position: relative;
  margin-top: 1.75rem;
  padding: clamp(2rem, 5vw, 3.6rem) clamp(1.4rem, 4vw, 3rem);
  background: var(--gradient-hero);
  border: none;
  border-radius: var(--radius-xl);
  color: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

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

#hero::after {
  content: "";
  position: absolute;
  inset: auto auto -50% -12%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 206, 201, 0.35), transparent 65%);
  pointer-events: none;
  animation: floatBlob 18s ease-in-out infinite reverse;
}

#hero h1 {
  position: relative;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
  max-width: 22ch;
}

#hero p {
  position: relative;
  color: rgba(255, 255, 255, 0.94);
  max-width: 68ch;
  font-size: 1.02rem;
}

#hero p:last-child {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  margin-bottom: 0;
}

/* ============ 页面锚点导航 ============ */
main > nav[aria-label="页面锚点导航"] {
  background: var(--gradient-soft);
}

main > nav[aria-label="页面锚点导航"] h2 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

main > nav[aria-label="页面锚点导航"] h2::after {
  display: none;
}

main > nav[aria-label="页面锚点导航"] ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

main > nav[aria-label="页面锚点导航"] ul li a {
  display: inline-block;
  padding: 0.42rem 0.95rem;
  font-size: 0.9rem;
  color: var(--text-soft);
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: all 0.28s var(--ease);
}

main > nav[aria-label="页面锚点导航"] ul li a:hover,
main > nav[aria-label="页面锚点导航"] ul li a:focus-visible {
  color: #fff;
  background: var(--gradient-hero);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============ 文章卡片 ============ */
#articles {
  display: block;
}

#articles > article {
  margin: 1rem 0;
  padding: 1.25rem 1.35rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease),
    border-color 0.32s var(--ease), background 0.32s var(--ease);
}

#articles > article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(108, 92, 231, 0.35);
  background: var(--bg-alt);
}

#articles > article h3 {
  margin-top: 0;
  font-size: 1.08rem;
  color: var(--text);
}

#articles > article p {
  font-size: 0.94rem;
  margin-bottom: 0.6rem;
}

#articles > article p:last-child {
  margin-bottom: 0;
}

#articles > article p:last-child a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  background: rgba(108, 92, 231, 0.12);
  transition: all 0.28s var(--ease);
}

#articles > article p:last-child a::after {
  content: "→";
  transition: transform 0.28s var(--ease);
}

#articles > article p:last-child a:hover {
  background: var(--gradient-hero);
  color: #fff;
}

#articles > article p:last-child a:hover::after {
  transform: translateX(3px);
}

/* ============ 客户评价 ============ */
#reviews blockquote {
  margin: 0.9rem 0;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#reviews blockquote:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

/* ============ 新闻中心 ============ */
#news h3 {
  position: relative;
  padding-left: 1rem;
}

#news h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient-hero);
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.14);
}

#news p {
  font-size: 0.94rem;
}

/* ============ FAQ ============ */
#faq h3 {
  padding: 0.85rem 1.1rem;
  margin: 1rem 0 0.5rem;
  font-size: 1rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  transition: background 0.28s var(--ease), border-color 0.28s var(--ease);
}

#faq h3:hover {
  background: var(--gradient-soft);
  border-left-color: var(--brand-3);
}

#faq p {
  padding: 0 0.4rem;
  font-size: 0.95rem;
}

/* ============ HowTo 教程 ============ */
#howto h4 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  margin: 0.9rem 0 0.5rem;
  background: var(--gradient-soft);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.98rem;
}

#howto h4::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-hero);
}

#howto h4 + p {
  padding-left: 1.5rem;
}

/* ============ 联系我们 ============ */
#contact {
  background: var(--gradient-hero);
  border: none;
  color: #fff;
  box-shadow: var(--shadow-lg);
}

#contact h2 {
  color: #fff;
}

#contact h2::after {
  background: rgba(255, 255, 255, 0.85);
}

#contact p {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0.55rem;
  font-size: 0.95rem;
}

#contact p:last-child {
  margin-bottom: 0;
  margin-top: 0.8rem;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-sm);
}

#contact a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============ 网站地图 / 友情链接 ============ */
#sitemap ul,
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

#sitemap ul li a,
#links ul li {
  display: inline-block;
  padding: 0.38rem 0.9rem;
  font-size: 0.88rem;
  color: var(--text-soft);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all 0.26s var(--ease);
}

#sitemap ul li a:hover,
#links ul li:hover {
  color: var(--brand);
  border-color: rgba(108, 92, 231, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ============ 版权声明等 ============ */
#legal h2 {
  font-size: 1.15rem;
  margin-top: 1.4rem;
}

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

#legal h2::after {
  width: 36px;
  height: 3px;
}

#legal p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ============ 页脚 ============ */
footer {
  padding: 2.2rem 1.25rem 2.6rem;
  text-align: center;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

footer p {
  margin: 0.35rem 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

footer p:first-child {
  color: var(--text-soft);
  font-weight: 600;
}

/* ============ 滚动动画 ============ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

main > section {
  animation: fadeUp 0.7s var(--ease) both;
}

main > section:nth-of-type(1) { animation-delay: 0.02s; }
main > section:nth-of-type(2) { animation-delay: 0.06s; }
main > section:nth-of-type(3) { animation-delay: 0.1s; }
main > section:nth-of-type(4) { animation-delay: 0.14s; }
main > section:nth-of-type(5) { animation-delay: 0.18s; }
main > section:nth-of-type(6) { animation-delay: 0.22s; }
main > section:nth-of-type(7) { animation-delay: 0.26s; }
main > section:nth-of-type(8) { animation-delay: 0.3s; }
main > section:nth-of-type(9) { animation-delay: 0.34s; }
main > section:nth-of-type(10) { animation-delay: 0.38s; }
main > section:nth-of-type(11) { animation-delay: 0.42s; }
main > section:nth-of-type(12) { animation-delay: 0.46s; }
main > section:nth-of-type(13) { animation-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  header nav {
    gap: 0.6rem;
  }
  header nav ul {
    margin-left: 0;
    width: 100%;
    padding-bottom: 0.6rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  header nav ul::-webkit-scrollbar {
    display: none;
  }
  header nav ul li a {
    white-space: nowrap;
    font-size: 0.86rem;
    padding: 0.4rem 0.62rem;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }
  main {
    padding: 0 0.85rem 2rem;
  }
  main > section,
  main > nav {
    margin: 1.1rem 0;
    padding: 1.25rem 1.05rem;
    border-radius: var(--radius-md);
  }
  #hero {
    margin-top: 1.1rem;
    border-radius: var(--radius-lg);
  }
  #hero p:last-child {
    display: block;
    text-align: center;
    font-size: 0.86rem;
  }
  h2 {
    padding-bottom: 0.55rem;
  }
  h2::after {
    width: 44px;
    height: 3px;
  }
  blockquote {
    padding: 1rem 1.1rem;
  }
  #articles > article {
    padding: 1rem 1.05rem;
  }
  #howto h4 + p {
    padding-left: 0;
  }
  #sitemap ul,
  #links ul {
    gap: 0.45rem;
  }
  #sitemap ul li a,
  #links ul li {
    font-size: 0.82rem;
    padding: 0.32rem 0.72rem;
  }
  footer {
    padding: 1.6rem 1rem 2rem;
  }
}

@media (max-width: 380px) {
  header nav > a:first-child {
    font-size: 0.98rem;
  }
  #hero h1 {
    font-size: 1.5rem;
  }
}