/* 企业微信下载落地页 — 全局样式（纯 CSS，无框架依赖） */

:root {
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-200: #a7f3d0;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --teal-50: #f0fdfa;
  --teal-200: #99f6e4;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --radius-lg: .5rem;
  --radius-xl: .75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, .06);
  --shadow-xl: 0 20px 45px -20px rgba(6, 95, 70, .35);
  --container: 72rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  font-weight: 400;
  color: var(--gray-700);
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1rem; }
.section { padding: 6rem 0; }
.section--tight { padding: 3rem 0; }
.section--muted { background: var(--gray-50); }
.section--dark { background: var(--gray-900); color: #fff; }

/* ---------- 排版 ---------- */
h1, h2, h3, h4 { color: var(--gray-900); font-weight: 700; line-height: 1.25; margin: 0; }
h1 { font-size: 3rem; letter-spacing: -.02em; }
h2 { font-size: 2.25rem; letter-spacing: -.01em; }
h3 { font-size: 1.5rem; }
p { margin: 0; }
.lead { font-size: 1.125rem; color: var(--gray-600); }
.text-center { text-align: center; }
.text-gradient {
  background: linear-gradient(90deg, var(--emerald-600), #0d9488 60%, #0891b2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-head { text-align: center; max-width: 42rem; margin: 0 auto 3rem; }
.section-head p { margin-top: .875rem; font-size: 1.125rem; color: var(--gray-600); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  border-radius: var(--radius-xl);
  padding: .75rem 1.25rem;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn--primary { background: var(--emerald-600); color: #fff; }
.btn--primary:hover { background: var(--emerald-700); transform: translateY(-1px); }
.btn--lg { border-radius: var(--radius-2xl); padding: 1rem 2rem; font-size: 1.0625rem; }
.btn--ghost { background: #fff; color: var(--gray-700); box-shadow: inset 0 0 0 1px var(--gray-200); }
.btn--ghost:hover { color: var(--emerald-700); box-shadow: inset 0 0 0 1px var(--emerald-200); }
.btn svg { width: 1.15em; height: 1.15em; }

.animate-glow { animation: glow 2.8s ease-in-out infinite; }
@keyframes glow {
  0%, 100% { box-shadow: 0 10px 30px -12px rgba(5, 150, 105, .55); }
  50% { box-shadow: 0 16px 42px -10px rgba(5, 150, 105, .8); }
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.header.is-scrolled { border-bottom-color: var(--gray-100); box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: .625rem; font-weight: 700; color: var(--gray-900); }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand span { font-size: 1.0625rem; letter-spacing: -.01em; }

.nav { display: none; align-items: center; gap: .25rem; }
.nav a {
  padding: .5rem .875rem;
  border-radius: var(--radius-lg);
  font-size: .9375rem;
  color: var(--gray-700);
  transition: background-color .18s ease, color .18s ease;
}
.nav a:hover { background: var(--gray-50); color: var(--gray-900); }
.nav a[aria-current="page"] { background: var(--emerald-50); color: var(--emerald-600); font-weight: 600; }
.header__cta { display: none; }

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.625rem;
  height: 2.625rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  background: #fff;
  color: var(--gray-700);
  cursor: pointer;
}
.menu-btn svg { width: 1.25rem; height: 1.25rem; }

.drawer {
  position: fixed;
  inset: 4.25rem 0 auto 0;
  z-index: 49;
  background: #fff;
  border-bottom: 1px solid var(--gray-100);
  padding: .75rem 1rem 1.25rem;
  display: none;
  box-shadow: 0 24px 40px -28px rgba(17, 24, 39, .4);
}
.drawer.is-open { display: block; }
.drawer a { display: block; padding: .75rem .5rem; border-radius: var(--radius-lg); color: var(--gray-700); }
.drawer a:hover { background: var(--gray-50); }
.drawer .btn { width: 100%; justify-content: center; margin-top: .5rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 8.5rem 0 5.5rem;
  background: linear-gradient(160deg, var(--emerald-50) 0%, var(--teal-50) 45%, #ffffff 100%);
}
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  opacity: .3;
  pointer-events: none;
}
.hero__blob--a { width: 22rem; height: 22rem; background: var(--emerald-400); top: -6rem; right: -5rem; }
.hero__blob--b { width: 20rem; height: 20rem; background: var(--teal-200); bottom: -7rem; left: -6rem; }
.hero__grid { position: relative; display: grid; gap: 3rem; align-items: center; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .4rem .9rem;
  border-radius: 999px;
  background: var(--emerald-100);
  color: var(--emerald-700);
  font-size: .875rem;
  font-weight: 600;
}
.badge svg { width: 1rem; height: 1rem; }

.hero h1 { margin-top: 1.25rem; font-size: 2.75rem; line-height: 1.15; }
.hero__sub { margin-top: 1.25rem; max-width: 34rem; font-size: 1.125rem; color: var(--gray-600); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .875rem; margin-top: 2rem; }
.hero__note { margin-top: 1rem; font-size: .8125rem; color: var(--gray-500); }

.hero__visual {
  border-radius: var(--radius-3xl);
  background: #fff;
  box-shadow: 0 40px 70px -40px rgba(6, 95, 70, .45), 0 0 0 1px rgba(17, 24, 39, .05);
  padding: 1rem;
}
.hero__visual img { width: 100%; height: auto; border-radius: var(--radius-2xl); }

/* ---------- 信任条 ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; text-align: center; }
.stats__item svg { width: 2rem; height: 2rem; margin: 0 auto .75rem; color: var(--emerald-400); }
.stats__num { font-size: 1.875rem; font-weight: 700; color: #fff; line-height: 1.2; }
.stats__label { margin-top: .35rem; font-size: .9375rem; color: var(--gray-400); }

/* ---------- 卡片通用 ---------- */
.card {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-3xl);
  padding: 2rem;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.card:hover { border-color: var(--emerald-200); box-shadow: var(--shadow-xl); transform: translateY(-3px); }

.features { display: grid; gap: 1.5rem; }
.feature__icon {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius-2xl);
  color: #fff;
  transition: transform .25s ease;
}
.feature:hover .feature__icon { transform: scale(1.1); }
.feature__icon svg { width: 1.75rem; height: 1.75rem; }
.feature h3 { margin: 1.25rem 0 .625rem; font-size: 1.375rem; }
.feature p { color: var(--gray-600); }

.grad-purple { background: linear-gradient(135deg, #a855f7, #ec4899); }
.grad-cyan { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.grad-amber { background: linear-gradient(135deg, #f59e0b, #f97316); }
.grad-emerald { background: linear-gradient(135deg, var(--emerald-500), #14b8a6); }

/* ---------- 平台 ---------- */
.platforms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.platform {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .25rem;
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-3xl);
  padding: 2rem;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.platform:hover { border-color: var(--emerald-200); box-shadow: var(--shadow-xl); transform: translateY(-3px); }
.platform > svg { width: 3rem; height: 3rem; color: var(--gray-700); transition: color .2s ease; }
.platform:hover > svg { color: var(--emerald-600); }
.platform h3 { margin-top: .875rem; font-size: 1.25rem; }
.platform__req { font-size: .875rem; color: var(--gray-500); }
.platform__link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .875rem;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--emerald-600);
  opacity: 0;
  transition: opacity .2s ease;
}
.platform:hover .platform__link, .platform:focus-within .platform__link { opacity: 1; }
.platform__link svg { width: 1rem; height: 1rem; }

/* ---------- 学习中心 ---------- */
.learn-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.5rem; }
.learn-head h2 { margin-top: .5rem; }
.learn-head p { margin-top: .75rem; color: var(--gray-600); }
.learn-all { display: none; align-items: center; gap: .35rem; font-weight: 600; color: var(--emerald-600); white-space: nowrap; }
.learn-all svg { width: 1rem; height: 1rem; }

.articles { display: grid; gap: 1.5rem; }
.article {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.article:hover { border-color: var(--emerald-200); box-shadow: var(--shadow-xl); transform: translateY(-3px); }
.article__cover { position: relative; height: 11rem; overflow: hidden; background: var(--gray-100); }
.article__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.article:hover .article__cover img { transform: scale(1.05); }
.article__tag {
  position: absolute;
  top: .75rem;
  left: .75rem;
  padding: .2rem .55rem;
  border-radius: var(--radius-lg);
  background: var(--emerald-500);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
}
.article__body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.25rem 0; }
.article__body h3 {
  font-size: 1.0625rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s ease;
}
.article:hover .article__body h3 { color: var(--emerald-600); }
.article__body p {
  margin-top: .5rem;
  font-size: .875rem;
  color: var(--gray-500);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-top: 1rem;
  padding: .75rem 1.25rem;
  border-top: 1px solid var(--gray-50);
  font-size: .75rem;
  color: var(--gray-400);
}
.article__meta span { display: inline-flex; align-items: center; gap: .3rem; }
.article__meta svg { width: .875rem; height: .875rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 48rem; margin: 0 auto; }
.faq__item { background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius-2xl); margin-bottom: .875rem; overflow: hidden; }
.faq__item:has(.faq__panel.is-open) { border-color: var(--emerald-200); box-shadow: var(--shadow-sm); }
.faq__q {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
}
.faq__q:hover { color: var(--emerald-700); }
.faq__icon { flex: none; width: 1.25rem; height: 1.25rem; color: var(--emerald-600); transition: transform .25s ease; }
.faq__q[aria-expanded="true"] .faq__icon { transform: rotate(45deg); }
.faq__panel { display: none; padding: 0 1.5rem 1.25rem; color: var(--gray-600); }
.faq__panel.is-open { display: block; }
.faq__panel ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.faq__panel li { margin-bottom: .35rem; }

/* ---------- 文章详情/通用内容页 ---------- */
.page-hero {
  padding: 8.5rem 0 4rem;
  background: linear-gradient(160deg, var(--emerald-50), #ffffff 70%);
  border-bottom: 1px solid var(--gray-100);
}
.page-hero h1 { font-size: 2.5rem; }
.page-hero p { margin-top: 1rem; max-width: 46rem; font-size: 1.0625rem; color: var(--gray-600); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .875rem; color: var(--gray-500); margin-bottom: 1rem; }
.breadcrumb a:hover { color: var(--emerald-600); }

.prose { max-width: 48rem; }
.prose h2 { margin-top: 2.5rem; font-size: 1.625rem; }
.prose h3 { margin-top: 1.75rem; font-size: 1.1875rem; }
.prose p { margin-top: 1rem; color: var(--gray-600); }
.prose ul, .prose ol { margin: 1rem 0 0; padding-left: 1.35rem; color: var(--gray-600); }
.prose li { margin-bottom: .5rem; }
.prose img { border-radius: var(--radius-2xl); margin-top: 1.5rem; }
.prose blockquote {
  margin: 1.75rem 0 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--emerald-500);
  background: var(--emerald-50);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  color: var(--gray-700);
}
.callout {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: var(--radius-2xl);
  background: var(--emerald-50);
  border: 1px solid var(--emerald-200);
}

/* 下载页 */
.dl-grid { display: grid; gap: 1.5rem; }
.dl-card { display: flex; flex-direction: column; gap: .75rem; }
.dl-card__row { display: flex; align-items: center; gap: 1rem; }
.dl-card__row > svg { width: 2.5rem; height: 2.5rem; color: var(--gray-700); flex: none; }
.dl-card h3 { font-size: 1.1875rem; }
.dl-card__req { font-size: .875rem; color: var(--gray-500); }
.dl-card .btn { margin-top: auto; justify-content: center; }
.dl-note { margin-top: 2.5rem; font-size: .875rem; color: var(--gray-500); }

/* Footer */
.footer { background: var(--gray-900); color: #fff; padding: 4rem 0 2rem; }
.footer__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.footer__brand { display: flex; align-items: center; gap: .625rem; font-weight: 700; }
.footer__brand img { width: 36px; height: 36px; border-radius: 10px; }
.footer__desc { margin-top: 1rem; font-size: .9375rem; color: var(--gray-400); max-width: 22rem; }
.footer h4 { color: #fff; font-size: .9375rem; margin-bottom: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .65rem; }
.footer li a { font-size: .9375rem; color: var(--gray-400); }
.footer li a:hover { color: var(--emerald-400); }
.footer__bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 2rem;
  justify-content: space-between;
  font-size: .875rem;
  color: var(--gray-500);
}

/* 滚动出现动画 */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (min-width: 768px) {
  h2 { font-size: 2.5rem; }
  .hero h1 { font-size: 3.25rem; }
  .nav { display: flex; }
  .header__cta { display: inline-flex; }
  .menu-btn { display: none; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .articles { grid-template-columns: repeat(2, 1fr); }
  .dl-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(4, 1fr); }
  .learn-all { display: inline-flex; }
}

@media (min-width: 1024px) {
  .hero { padding: 10rem 0 6.5rem; }
  .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 4rem; }
  .hero h1 { font-size: 4.25rem; }
  .page-hero h1 { font-size: 3rem; }
  .platforms { grid-template-columns: repeat(4, 1fr); }
  .articles { grid-template-columns: repeat(3, 1fr); }
  .stats__num { font-size: 2.25rem; }
}

@media (min-width: 1280px) {
  .articles { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .animate-glow { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}
