:root {
  --primary: #2b6cb0;
  --primary-dark: #1e4e8c;
  --primary-light: #4299e1;
  --accent: #ed64a6;
  --accent-2: #805ad5;
  --bg: #f7fafc;
  --bg-alt: #edf2f7;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --surface-glass-border: rgba(255, 255, 255, 0.5);
  --text: #1a202c;
  --text-muted: #4a5568;
  --text-soft: #718096;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(26, 32, 44, 0.06);
  --shadow-md: 0 4px 16px rgba(26, 32, 44, 0.08);
  --shadow-lg: 0 12px 32px rgba(26, 32, 44, 0.12);
  --shadow-glow: 0 8px 28px rgba(43, 108, 176, 0.22);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-full: 999px;
  --header-h: 64px;
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 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: #63b3ed;
    --primary-dark: #4299e1;
    --primary-light: #90cdf4;
    --accent: #f687b3;
    --accent-2: #b794f4;
    --bg: #0f1623;
    --bg-alt: #16202f;
    --surface: #1a2434;
    --surface-glass: rgba(26, 36, 52, 0.68);
    --surface-glass-border: rgba(255, 255, 255, 0.08);
    --text: #e8eef7;
    --text-muted: #a7b4c8;
    --text-soft: #8494ac;
    --border: #2a3a52;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.55);
    --shadow-glow: 0 8px 28px rgba(99, 179, 237, 0.25);
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 0% 0%, rgba(43, 108, 176, 0.10) 0%, transparent 42%),
    radial-gradient(circle at 100% 0%, rgba(237, 100, 166, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(128, 90, 213, 0.07) 0%, transparent 45%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

header nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

header nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

header nav li {
  flex-shrink: 0;
}

header nav a {
  position: relative;
  display: inline-block;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-full);
  transition: color var(--transition), background var(--transition), transform var(--transition);
}

header nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width var(--transition);
}

header nav a:hover,
header nav a:focus-visible {
  color: var(--primary);
  background: rgba(43, 108, 176, 0.08);
  outline: none;
}

header nav a:hover::after,
header nav a:focus-visible::after {
  width: 60%;
}

/* ============ 主体布局 ============ */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* ============ 渐变 Banner（H1 区域） ============ */
main > h1 {
  position: relative;
  margin: 28px 0 22px;
  padding: 56px 40px;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #fff;
  text-align: center;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, #2b6cb0 0%, #5a67d8 45%, #805ad5 70%, #ed64a6 100%);
  background-size: 200% 200%;
  box-shadow: var(--shadow-glow);
  overflow: hidden;
  animation: bannerShift 14s ease infinite;
}

main > h1::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.28) 0%, transparent 38%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.18) 0%, transparent 40%);
  pointer-events: none;
}

main > h1::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -20%;
  width: 60%;
  height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: rotate(18deg);
  animation: shine 6s ease-in-out infinite;
  pointer-events: none;
}

main > h1 + p {
  position: relative;
  margin: 0 0 40px;
  padding: 26px 30px;
  font-size: 1.02rem;
  color: var(--text-muted);
  background: var(--surface-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  line-height: 1.9;
}

@keyframes bannerShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes shine {
  0%, 70% { left: -30%; opacity: 0; }
  80% { opacity: 1; }
  100% { left: 130%; opacity: 0; }
}

/* ============ 区块通用 ============ */
section {
  margin: 0 0 44px;
  padding: 34px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section:hover {
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition);
}

section > h2 {
  position: relative;
  margin: 0 0 24px;
  padding-left: 20px;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text);
}

section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 1.2em;
  transform: translateY(-50%);
  border-radius: var(--radius-full);
  background: linear-gradient(180deg, var(--primary), var(--accent));
  box-shadow: 0 0 12px rgba(43, 108, 176, 0.35);
}

section h3 {
  position: relative;
  margin: 30px 0 12px;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.5;
  transition: color var(--transition);
}

section h3:first-of-type {
  margin-top: 4px;
}

section h3:hover {
  color: var(--accent);
}

section p {
  margin: 0 0 14px;
  color: var(--text-muted);
  line-height: 1.9;
}

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

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

section ul li {
  position: relative;
  margin: 0 0 10px;
  padding: 10px 16px 10px 38px;
  color: var(--text-muted);
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

section ul li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  transform: translateY(-50%) rotate(45deg);
  border-radius: 2px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

section ul li:hover {
  transform: translateX(4px);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

/* ============ 链接 ============ */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

main a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============ 引用 / 客户评价 ============ */
blockquote {
  position: relative;
  margin: 0 0 18px;
  padding: 24px 28px 24px 60px;
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--surface-glass-border);
  border-left: 4px solid transparent;
  border-image: linear-gradient(180deg, var(--primary), var(--accent)) 1;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

blockquote::before {
  content: "\201C";
  position: absolute;
  left: 18px;
  top: 6px;
  font-size: 3.4rem;
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  opacity: 0.55;
}

blockquote:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

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

/* ============ 文章卡片 ============ */
article {
  position: relative;
  margin: 0 0 18px;
  padding: 24px 26px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}

article:hover {
  transform: translateY(-4px);
  background: var(--surface);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
}

article h3 {
  margin: 0 0 8px;
  color: var(--text);
}

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

article p {
  font-size: 0.95rem;
}

article p:first-of-type {
  font-size: 0.85rem;
  color: var(--text-soft);
}

article a {
  display: inline-block;
  margin-top: 6px;
  padding: 7px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent-2));
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

article a:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  filter: brightness(1.08);
}

/* ============ 新闻 / 知识 中的时间信息 ============ */
section > h3 + p {
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* ============ 联系方式区块 ============ */
#contact p {
  padding: 10px 16px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary-light);
  transition: border-color var(--transition), transform var(--transition);
}

#contact p:hover {
  border-left-color: var(--accent);
  transform: translateX(4px);
}

/* ============ 页脚 ============ */
footer {
  position: relative;
  padding: 44px 20px;
  text-align: center;
  color: var(--text-soft);
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(26, 32, 44, 0.04);
}

footer p {
  margin: 0 0 8px;
  font-size: 0.9rem;
  line-height: 1.7;
}

footer p:last-child {
  margin-bottom: 0;
  font-size: 0.82rem;
  color: var(--text-soft);
  letter-spacing: 0.02em;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 120px;
  height: 3px;
  transform: translateX(-50%);
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  main {
    padding: 0 16px 48px;
  }

  section {
    padding: 26px 22px;
    border-radius: var(--radius);
  }

  main > h1 {
    padding: 44px 24px;
    border-radius: var(--radius);
  }

  main > h1 + p {
    padding: 20px 22px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  header nav {
    padding: 0 12px;
  }

  header nav a {
    padding: 8px 10px;
    font-size: 13px;
  }

  main {
    padding: 0 12px 40px;
  }

  main > h1 {
    margin: 18px 0 16px;
    padding: 36px 18px;
    font-size: 1.45rem;
  }

  main > h1 + p {
    margin-bottom: 28px;
    padding: 18px 18px;
    font-size: 0.95rem;
  }

  section {
    margin-bottom: 28px;
    padding: 22px 18px;
    border-radius: var(--radius-sm);
  }

  section > h2 {
    padding-left: 16px;
    margin-bottom: 18px;
  }

  section h3 {
    margin-top: 22px;
  }

  blockquote {
    padding: 20px 18px 20px 46px;
  }

  blockquote::before {
    left: 12px;
    font-size: 2.8rem;
  }

  article {
    padding: 18px 18px;
  }

  article a {
    display: block;
    text-align: center;
  }
}

/* ============ 无障碍与动效偏好 ============ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

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

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

::selection {
  background: rgba(43, 108, 176, 0.25);
  color: var(--text);
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

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

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

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