:root {
  --brand: #5b3df5;
  --brand-2: #8b5cf6;
  --brand-3: #ec4899;
  --accent: #ffd166;
  --bg: #f6f5ff;
  --bg-soft: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.65);
  --bg-glass-strong: rgba(255, 255, 255, 0.85);
  --text: #1b1830;
  --text-soft: #4b4763;
  --text-mute: #7a7691;
  --border: rgba(91, 61, 245, 0.14);
  --border-soft: rgba(27, 24, 48, 0.08);
  --shadow-sm: 0 4px 14px rgba(91, 61, 245, 0.08);
  --shadow-md: 0 12px 34px rgba(91, 61, 245, 0.12);
  --shadow-lg: 0 22px 60px rgba(91, 61, 245, 0.18);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --header-h: 72px;
  --maxw: 1180px;
  --grad-hero: linear-gradient(135deg, #5b3df5 0%, #8b5cf6 42%, #ec4899 100%);
  --grad-soft: linear-gradient(135deg, rgba(91, 61, 245, 0.1), rgba(236, 72, 153, 0.08));
  --grad-btn: linear-gradient(135deg, #5b3df5, #8b5cf6 60%, #ec4899);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html[data-theme="dark"],
body.dark-mode {
  --bg: #0e0c1a;
  --bg-soft: #17142a;
  --bg-glass: rgba(23, 20, 42, 0.62);
  --bg-glass-strong: rgba(23, 20, 42, 0.86);
  --text: #f1efff;
  --text-soft: #c3bfe0;
  --text-mute: #8d88ab;
  --border: rgba(139, 92, 246, 0.28);
  --border-soft: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 34px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 22px 60px rgba(0, 0, 0, 0.62);
  --grad-soft: linear-gradient(135deg, rgba(91, 61, 245, 0.22), rgba(236, 72, 153, 0.16));
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg: #0e0c1a;
    --bg-soft: #17142a;
    --bg-glass: rgba(23, 20, 42, 0.62);
    --bg-glass-strong: rgba(23, 20, 42, 0.86);
    --text: #f1efff;
    --text-soft: #c3bfe0;
    --text-mute: #8d88ab;
    --border: rgba(139, 92, 246, 0.28);
    --border-soft: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 12px 34px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 22px 60px rgba(0, 0, 0, 0.62);
    --grad-soft: linear-gradient(135deg, rgba(91, 61, 245, 0.22), rgba(236, 72, 153, 0.16));
  }
}

*,
*::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(1100px 520px at 8% -8%, rgba(91, 61, 245, 0.16), transparent 62%),
    radial-gradient(900px 480px at 96% 4%, rgba(236, 72, 153, 0.13), transparent 60%),
    radial-gradient(760px 460px at 50% 108%, rgba(139, 92, 246, 0.12), transparent 62%);
  background-attachment: fixed;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

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 {
  color: var(--brand-3);
}

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

h1 {
  font-size: clamp(1.7rem, 4.4vw, 2.7rem);
  background: linear-gradient(120deg, var(--brand), var(--brand-2) 55%, var(--brand-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#hero h1 {
  -webkit-text-fill-color: #fff;
  background: none;
  color: #fff;
}

h2 {
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  position: relative;
  padding-left: 18px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: var(--radius-pill);
  background: var(--grad-btn);
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
}

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

ul, ol {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
  color: var(--text-soft);
}

li {
  margin-bottom: 0.45em;
}

strong {
  color: var(--text);
  font-weight: 700;
}

blockquote {
  margin: 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

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

::selection {
  background: rgba(91, 61, 245, 0.28);
  color: var(--text);
}

/* ============ Header ============ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 6px 24px rgba(27, 24, 48, 0.06);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  transition: transform 0.35s var(--ease);
}

.brand:hover {
  transform: translateY(-2px) scale(1.02);
}

.brand svg {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 6px 14px rgba(91, 61, 245, 0.35));
  border-radius: 10px;
}

.brand-name {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(120deg, var(--brand), var(--brand-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

#main-nav {
  flex: 1;
  min-width: 0;
}

#main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

#main-nav li {
  margin: 0;
}

#main-nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-soft);
  position: relative;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

#main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 0;
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--grad-btn);
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}

#main-nav a:hover,
#main-nav a:focus-visible {
  color: var(--brand);
  background: rgba(91, 61, 245, 0.08);
  transform: translateY(-1px);
}

#main-nav a:hover::after {
  width: 46%;
}

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

#site-search {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-glass-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px 4px 4px 14px;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#site-search:focus-within {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.16);
}

#search-input {
  width: 168px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  padding: 6px 0;
  outline: none;
}

#search-input::placeholder {
  color: var(--text-mute);
}

#site-search button {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad-btn);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

#site-search button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(91, 61, 245, 0.35);
  filter: brightness(1.06);
}

#theme-toggle,
#menu-toggle {
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand);
  background: var(--bg-glass-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 9px 16px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  white-space: nowrap;
}

#theme-toggle:hover,
#menu-toggle:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  background: rgba(91, 61, 245, 0.1);
}

#menu-toggle {
  display: none;
}

/* ============ Layout ============ */
main {
  display: block;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px 60px;
}

main > section {
  margin: 34px 0;
  padding: clamp(20px, 3.4vw, 40px);
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

main > section:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}

/* 滚动动画 */
main > section,
.article-card,
.case-item,
.slide,
.faq-list details,
.news-list li,
.stats-list li {
  opacity: 0;
  transform: translateY(28px);
  animation: riseIn 0.75s var(--ease) forwards;
}

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

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; }
main > section:nth-of-type(14) { animation-delay: 0.54s; }
main > section:nth-of-type(15) { animation-delay: 0.58s; }
main > section:nth-of-type(16) { animation-delay: 0.62s; }
main > section:nth-of-type(17) { animation-delay: 0.66s; }
main > section:nth-of-type(18) { animation-delay: 0.7s; }
main > section:nth-of-type(19) { animation-delay: 0.74s; }

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

/* ============ Breadcrumb ============ */
.breadcrumb {
  margin: 22px 0 0;
  font-size: 0.86rem;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 8px 16px;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  width: fit-content;
  max-width: 100%;
}

.breadcrumb li {
  margin: 0;
  display: inline-flex;
  align-items: center;
  color: var(--text-mute);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--text-mute);
  opacity: 0.6;
}

.breadcrumb a {
  color: var(--text-soft);
  font-weight: 600;
}

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

.breadcrumb [aria-current="page"] {
  color: var(--brand);
  font-weight: 700;
}

/* ============ Hero ============ */
#hero {
  margin-top: 26px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: hidden;
}

#hero:hover {
  box-shadow: none !important;
}

.hero-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--grad-hero);
  box-shadow: var(--shadow-lg);
  min-height: 380px;
  isolation: isolate;
}

.hero-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(620px 320px at 12% 8%, rgba(255, 255, 255, 0.28), transparent 62%),
    radial-gradient(520px 300px at 88% 92%, rgba(255, 209, 102, 0.3), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero-slider::after {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 68%);
  animation: floatBlob 12s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes floatBlob {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-40px, 50px, 0) scale(1.12); }
}

.slide {
  position: absolute;
  inset: 0;
  padding: clamp(26px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.99);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), visibility 0.6s;
  z-index: 1;
  animation: none;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  position: relative;
  min-height: 380px;
}

.slide h1,
.slide h2 {
  color: #fff;
  -webkit-text-fill-color: #fff;
  background: none;
  padding-left: 0;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.22);
  max-width: 780px;
  margin: 0 0 10px;
}

.slide h2::before {
  display: none;
}

.slide p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 760px;
  font-size: clamp(0.95rem, 1.6vw, 1.06rem);
  margin: 0 0 22px;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 13px 30px;
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--brand);
  background: #fff;
  border-radius: var(--radius-pill);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.cta::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}

.cta:hover {
  color: var(--brand);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  background: #fffdf5;
}

.cta:hover::after {
  transform: translateX(5px);
}

.slider-controls {
  position: absolute;
  right: clamp(18px, 4vw, 40px);
  bottom: clamp(18px, 4vw, 34px);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.slider-controls button {
  cursor: pointer;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background 0.28s var(--ease), transform 0.28s var(--ease), border-color 0.28s var(--ease);
}

.slider-controls button:hover {
  background: rgba(255, 255, 255, 0.32);
  transform: translateY(-2px);
  border-color: #fff;
}

/* ============ Stats ============ */
#stats {
  text-align: center;
}

#stats h2 {
  padding-left: 0;
  display: inline-block;
}

#stats h2::before {
  display: none;
}

.stats-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stats-list li {
  margin: 0;
  padding: 26px 16px;
  border-radius: var(--radius);
  background: var(--grad-soft);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.stats-list li:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--brand), var(--brand-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-mute);
  font-weight: 600;
}

/* ============ Lists & Cards ============ */
.team-list,
.advantage-list,
.contact-list,
.sitemap-list,
.friend-links,
.news-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2em;
}

.team-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.team-list li {
  margin: 0;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--bg-glass-strong);
  border: 1px solid var(--border-soft);
  font-size: 0.94rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.team-list li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
  border-color: var(--border);
}

.advantage-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.advantage-list li {
  margin: 0;
  padding: 16px 18px 16px 20px;
  border-radius: var(--radius);
  background: var(--grad-soft);
  border: 1px solid var(--border-soft);
  position: relative;
  font-size: 0.94rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.advantage-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: var(--radius-pill);
  background: var(--grad-btn);
}

.advantage-list li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

/* 案例 */
.case-item {
  margin: 0 0 16px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--bg-glass-strong);
  border: 1px solid var(--border-soft);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.case-item:last-child {
  margin-bottom: 0;
}

.case-item h3 {
  margin-top: 0;
}

.case-item p:last-child {
  margin-bottom: 0;
}

.case-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}

/* 评价 */
#testimonials blockquote {
  margin: 0 0 14px;
  padding: 20px 24px 20px 30px;
  border-radius: var(--radius);
  background: var(--bg-glass-strong);
  border: 1px solid var(--border-soft);
  position: relative;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

#testimonials blockquote::before {
  content: "“";
  position: absolute;
  left: 10px;
  top: 2px;
  font-size: 2.6rem;
  line-height: 1;
  font-family: Georgia, serif;
  color: var(--brand-2);
  opacity: 0.45;
}

#testimonials blockquote p {
  margin: 0;
  font-style: italic;
}

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

/* 新闻 */
.news-list li {
  margin: 0 0 10px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-glass-strong);
  border: 1px solid var(--border-soft);
  font-size: 0.94rem;
  color: var(--text-soft);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.news-list li:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-sm);
  border-color: var(--border);
}

.news-list time {
  display: inline-block;
  margin-right: 10px;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand);
  background: rgba(91, 61, 245, 0.1);
  font-variant-numeric: tabular-nums;
}

/* 文章卡片 */
#articles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
  align-items: start;
}

#articles > h2,
#articles > p {
  grid-column: 1 / -1;
}

.article-card {
  margin: 0;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--bg-glass-strong);
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.article-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--grad-btn);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}

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

.article-card h3 {
  margin: 4px 0 6px;
  font-size: 1.04rem;
  line-height: 1.45;
}

.article-card h3 a {
  color: var(--text);
  background-image: linear-gradient(var(--brand-3), var(--brand-3));
  background-size: 0 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: color 0.3s var(--ease), background-size 0.35s var(--ease);
}

.article-card h3 a:hover {
  color: var(--brand);
  background-size: 100% 2px;
}

.article-card .meta {
  font-size: 0.8rem;
  color: var(--text-mute);
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.article-card .meta time {
  font-variant-numeric: tabular-nums;
}

.article-card > p:not(.meta) {
  font-size: 0.9rem;
  margin: 0 0 14px;
  flex: 1;
}

.read-more {
  align-self: flex-start;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--brand);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: rgba(91, 61, 245, 0.08);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.read-more::after {
  content: " →";
}

.read-more:hover {
  color: #fff;
  background: var(--grad-btn);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(91, 61, 245, 0.3);
}

/* HowTo */
#howto ol {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 12px;
}

#howto ol li {
  counter-increment: step;
  position: relative;
  margin: 0;
  padding: 14px 18px 14px 58px;
  border-radius: var(--radius);
  background: var(--bg-glass-strong);
  border: 1px solid var(--border-soft);
  font-size: 0.94rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.86rem;
  font-weight: 800;
  color: #fff;
  background: var(--grad-btn);
  box-shadow: 0 6px 14px rgba(91, 61, 245, 0.3);
}

#howto ol li:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-sm);
}

#howto ul li {
  padding-left: 4px;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border-radius: var(--radius);
  background: var(--bg-glass-strong);
  border: 1px solid var(--border-soft);
  padding: 4px 20px;
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}

.faq-list details[open] {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--bg-glass);
}

.faq-list details:hover {
  border-color: var(--border);
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 15px 34px 15px 0;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text);
  position: relative;
  transition: color 0.25s var(--ease);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand);
  background: rgba(91, 61, 245, 0.1);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}

.faq-list details[open] summary {
  color: var(--brand);
}

.faq-list details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
  color: #fff;
  background: var(--grad-btn);
}

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

.faq-list details p {
  margin: 0 0 16px;
  padding-top: 4px;
  font-size: 0.94rem;
  border-top: 1px dashed var(--border-soft);
  padding-top: 14px;
  animation: fadeSlide 0.4s var(--ease);
}

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

/* 联系 */
.contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 1.4em;
}

.contact-list li {
  margin: 0;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--grad-soft);
  border: 1px solid var(--border-soft);
  font-size: 0.94rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.contact-list li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.contact-list a {
  font-weight: 700;
  word-break: break-all;
}

/* 站点地图 & 友链 */
.sitemap-list,
.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sitemap-list li,
.friend-links li {
  margin: 0;
}

.sitemap-list a,
.friend-links a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--bg-glass-strong);
  border: 1px solid var(--border-soft);
  transition: transform 0.28s var(--ease), color 0.28s var(--ease), background 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}

.sitemap-list a:hover,
.friend-links a:hover {
  color: #fff;
  background: var(--grad-btn);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(91, 61, 245, 0.3);
}

/* ============ Footer ============ */
#site-footer {
  position: relative;
  margin-top: 40px;
  padding: 48px 20px 28px;
  background:
    radial-gradient(720px 320px at 12% 0%, rgba(91, 61, 245, 0.28), transparent 62%),
    radial-gradient(620px 300px at 88% 10%, rgba(236, 72, 153, 0.2), transparent 60%),
    #14112a;
  color: #d6d2ee;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px 34px;
}

#site-footer h2 {
  font-size: 1.02rem;
  color: #fff;
  margin: 0 0 10px;
  padding-left: 14px;
}

#site-footer h2::before {
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--brand-3));
}

#site-footer p {
  color: rgba(214, 210, 238, 0.78);
  font-size: 0.9rem;
  margin: 0 0 8px;
}

#site-footer a {
  color: var(--accent);
}

#site-footer a:hover {
  color: #fff;
}

.copyright-line {
  grid-column: 1 / -1;
  margin: 14px 0 0 !important;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.84rem !important;
  color: rgba(214, 210, 238, 0.62) !important;
}

.copyright-line time {
  font-variant-numeric: tabular-nums;
}

/* ============ Back to top ============ */
#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  padding: 12px 16px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--grad-btn);
  box-shadow: 0 12px 30px rgba(91, 61, 245, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s, box-shadow 0.35s var(--ease);
}

#back-to-top.show,
#back-to-top:focus-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(91, 61, 245, 0.52);
}

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 10px 18px;
    gap: 10px;
  }

  #main-nav {
    order: 3;
    flex-basis: 100%;
  }

  #main-nav ul {
    gap: 4px;
    padding-bottom: 4px;
  }

  #main-nav a {
    font-size: 0.86rem;
    padding: 7px 10px;
  }

  #search-input {
    width: 130px;
  }

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

@media (max-width: 820px) {
  :root {
    --header-h: 64px;
  }

  .header-inner {
    flex-wrap: nowrap;
  }

  #main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    order: initial;
    flex-basis: auto;
    background: var(--bg-glass-strong);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: var(--shadow-md);
    padding: 12px 18px 18px;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }

  #main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  #main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  #main-nav a {
    display: block;
    padding: 12px 14px;
    font-size: 0.96rem;
    border-radius: var(--radius-sm);
  }

  #main-nav a::after {
    display: none;
  }

  #menu-toggle {
    display: inline-block;
  }

  #site-search {
    flex: 1;
    min-width: 0;
  }

  #search-input {
    width: 100%;
    min-width: 0;
  }

  #theme-toggle {
    padding: 9px 12px;
    font-size: 0.8rem;
  }

  #menu-toggle {
    padding: 9px 12px;
    font-size: 0.8rem;
  }

  main {
    padding: 0 14px 48px;
  }

  main > section {
    margin: 22px 0;
    border-radius: var(--radius);
  }

  .hero-slider,
  .slide.active {
    min-height: 420px;
  }

  .slider-controls {
    right: 16px;
    bottom: 16px;
  }

  .slide {
    padding: 26px 22px 74px;
  }

  #articles {
    grid-template-columns: 1fr;
  }

  .breadcrumb ol {
    padding: 7px 12px;
    font-size: 0.8rem;
  }
}

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

  .header-inner {
    gap: 8px;
    padding: 8px 12px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand svg {
    width: 34px;
    height: 34px;
  }

  #theme-toggle {
    display: none;
  }

  #site-search button {
    padding: 7px 12px;
    font-size: 0.8rem;
  }

  .stats-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .stats-list li {
    padding: 18px 10px;
  }

  .stat-number {
    font-size: 1.55rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .team-list,
  .advantage-list,
  .contact-list {
    grid-template-columns: 1fr;
  }

  .hero-slider,
  .slide.active {
    min-height: 460px;
  }

  .slide {
    padding: 24px 18px 84px;
  }

  .cta {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }

  .slider-controls {
    left: 18px;
    right: 18px;
    justify-content: space-between;
  }

  .slider-controls button {
    flex: 1;
    padding: 9px 10px;
  }

  .sitemap-list a,
  .friend-links a {
    padding: 7px 14px;
    font-size: 0.82rem;
  }

  #back-to-top {
    right: 14px;
    bottom: 14px;
    padding: 10px 14px;
    font-size: 0.76rem;
  }

  #site-footer {
    padding: 36px 16px 24px;
  }
}

@media (hover: none) {
  .article-card:hover,
  .case-item:hover,
  .stats-list li:hover,
  .news-list li:hover,
  .team-list li:hover,
  .advantage-list li:hover,
  .contact-list li:hover,
  #testimonials blockquote:hover,
  .faq-list details:hover {
    transform: none;
  }
}

@media print {
  #site-header,
  #back-to-top,
  .slider-controls,
  #site-footer {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  main > section {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
    animation: none;
    opacity: 1;
    transform: none;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}