/* WPS 官方下载站 - 全局样式
   设计令牌：主色 emerald #059669；辅助 teal；中性 gray */
: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-900: #111827;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-weight: 400;
  color: var(--gray-600);
  background: #fff;
  line-height: 1.6;
}

h1, h2, h3, h4 { color: var(--gray-900); font-weight: 700; line-height: 1.25; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; }

.container { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.container-narrow { max-width: 48rem; }

.section { padding: 6rem 0; }
.section-gray { background: var(--gray-50); }
.section-head { text-align: center; max-width: 44rem; margin: 0 auto 3rem; }
.section-head h2 { font-size: 2.25rem; }
.section-head p { margin-top: 0.75rem; font-size: 1.125rem; color: var(--gray-600); }
.section-head-left { text-align: left; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; max-width: none; }
.link-more { color: var(--emerald-600); font-weight: 600; display: none; }
.link-more:hover { color: var(--emerald-700); }
@media (min-width: 768px) { .link-more { display: inline-flex; align-items: center; gap: 0.25rem; } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-100);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 4.5rem; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.625rem; font-weight: 700; color: var(--gray-900); }
.brand img { width: 36px; height: 36px; border-radius: var(--radius-md); }
.brand span { font-size: 1.125rem; }
.nav { display: none; align-items: center; gap: 0.25rem; }
.nav-link { padding: 0.5rem 0.875rem; border-radius: var(--radius-sm); font-size: 0.95rem; color: var(--gray-600); }
.nav-link:hover { color: var(--gray-900); background: var(--gray-100); }
.nav-link.active { background: var(--emerald-50); color: var(--emerald-600); font-weight: 600; }
.header-cta { display: none; align-items: center; gap: 0.5rem; padding: 0.625rem 1.125rem; border-radius: var(--radius-md); background: var(--emerald-600); color: #fff; font-weight: 600; font-size: 0.95rem; }
.header-cta:hover { background: var(--emerald-700); }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--gray-100); border-radius: var(--radius-md); background: #fff; cursor: pointer; color: var(--gray-700); }
.mobile-menu { display: none; border-top: 1px solid var(--gray-100); background: #fff; padding: 0.75rem 1rem 1rem; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 0.75rem 0.5rem; border-radius: var(--radius-sm); color: var(--gray-700); font-weight: 500; }
.mobile-menu a:hover { background: var(--gray-50); }
.mobile-menu .mobile-cta { margin-top: 0.5rem; text-align: center; background: var(--emerald-600); color: #fff; border-radius: var(--radius-md); }
@media (min-width: 768px) {
  .nav, .header-cta { display: flex; }
  .menu-toggle, .mobile-menu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 7rem 0 5rem;
  background: linear-gradient(160deg, var(--emerald-50) 0%, var(--teal-50) 55%, #fff 100%);
}
.hero-blob { position: absolute; border-radius: 9999px; filter: blur(48px); opacity: 0.3; pointer-events: none; }
.hero-blob-1 { width: 24rem; height: 24rem; background: var(--emerald-200); top: -6rem; right: -6rem; }
.hero-blob-2 { width: 20rem; height: 20rem; background: var(--teal-200); bottom: -6rem; left: -6rem; }
.hero-grid { position: relative; display: grid; gap: 3rem; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 0.375rem;
  background: var(--emerald-100); color: var(--emerald-700);
  border-radius: 9999px; padding: 0.375rem 0.875rem;
  font-size: 0.875rem; font-weight: 600;
}
.hero h1 { font-size: 3rem; margin-top: 1.25rem; }
.text-gradient {
  background: linear-gradient(90deg, var(--emerald-600), #14b8a6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin-top: 1.25rem; font-size: 1.25rem; color: var(--gray-600); max-width: 34rem; }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.875rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: var(--radius-lg); padding: 1rem 2rem;
  font-weight: 600; font-size: 1.0625rem; cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--emerald-600); color: #fff; }
.btn-primary:hover { background: var(--emerald-700); }
.btn-outline { background: #fff; color: var(--gray-700); border-color: var(--gray-100); }
.btn-outline:hover { border-color: var(--emerald-200); color: var(--emerald-700); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.75rem 1.25rem; font-size: 0.95rem; border-radius: var(--radius-md); }
.animate-glow { animation: glow 2.6s ease-in-out infinite; }
@keyframes glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.35); }
  50% { box-shadow: 0 12px 32px 0 rgba(5, 150, 105, 0.35); }
}
.hero-visual { justify-self: center; width: 100%; }
.hero-visual img { width: 100%; border-radius: var(--radius-xl); box-shadow: 0 24px 60px rgba(17, 24, 39, 0.12); }
@media (min-width: 1024px) {
  .hero { padding: 8rem 0 6rem; }
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 4.5rem; }
}

/* ---------- 信任条 ---------- */
.trust-strip { background: var(--gray-900); color: #fff; padding: 3rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; text-align: center; }
.stat svg { width: 2rem; height: 2rem; color: var(--emerald-400); margin: 0 auto 0.5rem; }
.stat strong { display: block; font-size: 1.875rem; font-weight: 700; }
.stat span { color: var(--gray-400); font-size: 0.95rem; }
@media (min-width: 1024px) { .stat strong { font-size: 2.25rem; } }

/* ---------- 功能卡 ---------- */
.feature-grid { display: grid; gap: 1.5rem; }
.card {
  background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius-xl);
  padding: 2rem; transition: border-color .25s, box-shadow .25s, transform .25s;
}
.card:hover { border-color: var(--emerald-200); box-shadow: 0 20px 40px rgba(17, 24, 39, 0.08); }
.feature-icon {
  width: 4rem; height: 4rem; border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center; color: #fff;
  transition: transform .25s;
}
.card:hover .feature-icon { transform: scale(1.1); }
.feature-icon svg { width: 2rem; height: 2rem; }
.g1 { background: linear-gradient(135deg, #a855f7, #ec4899); }
.g2 { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.g3 { background: linear-gradient(135deg, #f59e0b, #f97316); }
.g4 { background: linear-gradient(135deg, #10b981, #14b8a6); }
.card h3 { font-size: 1.5rem; margin-top: 1.25rem; }
.card p { margin-top: 0.75rem; font-size: 1.0625rem; color: var(--gray-600); }
@media (min-width: 768px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 平台卡 ---------- */
.platform-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.platform-card {
  display: block; background: #fff; border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl); padding: 2rem; text-align: center;
  transition: border-color .25s, box-shadow .25s;
}
.platform-card:hover { border-color: var(--emerald-200); box-shadow: 0 20px 40px rgba(17, 24, 39, 0.08); }
.platform-card svg { width: 3rem; height: 3rem; margin: 0 auto 0.75rem; color: var(--gray-700); transition: color .25s; }
.platform-card:hover svg { color: var(--emerald-600); }
.platform-card h3 { font-size: 1.25rem; }
.platform-card .version { font-size: 0.875rem; color: var(--gray-500); margin-top: 0.25rem; }
.platform-card .dl-hint {
  display: inline-flex; align-items: center; gap: 0.25rem; margin-top: 0.75rem;
  color: var(--emerald-600); font-weight: 600; font-size: 0.95rem; opacity: 0;
  transition: opacity .25s;
}
.platform-card:hover .dl-hint, .platform-card:focus-visible .dl-hint { opacity: 1; }
@media (min-width: 1024px) { .platform-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- 文章卡 ---------- */
.blog-grid { display: grid; gap: 1.5rem; }
.post-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .25s, border-color .25s; }
.post-card:hover { border-color: var(--emerald-200); box-shadow: 0 18px 36px rgba(17, 24, 39, 0.08); }
.post-cover { position: relative; height: 11rem; overflow: hidden; background: linear-gradient(135deg, var(--emerald-50), var(--teal-50)); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-cover img { transform: scale(1.05); }
.post-cat { position: absolute; top: 0.75rem; left: 0.75rem; background: var(--emerald-500); color: #fff; font-size: 0.75rem; border-radius: var(--radius-sm); padding: 0.125rem 0.5rem; }
.post-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-body h3 { font-size: 1.125rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card:hover h3 { color: var(--emerald-600); }
.post-body p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--gray-500); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { margin-top: auto; padding-top: 0.75rem; border-top: 1px solid var(--gray-50); display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; font-size: 0.75rem; color: var(--gray-400); }
.post-meta span { display: inline-flex; align-items: center; gap: 0.25rem; }
.post-meta svg { width: 0.875rem; height: 0.875rem; }
@media (min-width: 768px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 0.75rem; }
.faq-item { background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius-lg); overflow: hidden; }
.faq-item.open { border-color: var(--emerald-200); }
.faq-q {
  width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.125rem 1.25rem; background: none; border: 0; cursor: pointer;
  color: var(--gray-900); font-size: 1.0625rem; font-weight: 600;
}
.faq-q:hover { color: var(--emerald-700); }
.faq-q .chev { flex: none; transition: transform .25s; color: var(--gray-400); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); color: var(--emerald-600); }
.faq-a { display: none; padding: 0 1.25rem 1.25rem; color: var(--gray-600); font-size: 0.975rem; }
.faq-item.open .faq-a { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--gray-900); color: var(--gray-400); padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.footer-brand img { width: 40px; height: 40px; border-radius: var(--radius-md); }
.footer-brand strong { display: block; color: #fff; font-size: 1.125rem; margin-top: 0.75rem; }
.footer-brand p { margin-top: 0.5rem; font-size: 0.9rem; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; font-size: 0.9rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.875rem; color: var(--gray-500); display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: space-between; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- 内页 ---------- */
.page-hero { padding: 8.5rem 0 3.5rem; background: linear-gradient(160deg, var(--emerald-50), var(--teal-50) 60%, #fff); }
.page-hero h1 { font-size: 2.5rem; }
.page-hero p { margin-top: 0.75rem; font-size: 1.125rem; max-width: 44rem; }
@media (min-width: 1024px) { .page-hero h1 { font-size: 3rem; } }
.download-grid { display: grid; gap: 1.5rem; }
.download-card { background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius-xl); padding: 2rem; }
.download-card h2 { font-size: 1.375rem; display: flex; align-items: center; gap: 0.5rem; }
.download-card .req { margin-top: 0.75rem; font-size: 0.9rem; color: var(--gray-500); }
.download-card ul { margin: 1rem 0 1.5rem; padding-left: 1.1rem; font-size: 0.95rem; color: var(--gray-600); }
.article { padding: 8rem 0 4rem; }
.article h1 { font-size: 2.25rem; }
.article .meta { margin-top: 0.75rem; font-size: 0.9rem; color: var(--gray-400); }
.article-body { margin-top: 2rem; font-size: 1.0625rem; color: var(--gray-700); }
.article-body h2 { font-size: 1.5rem; margin: 2rem 0 0.75rem; }
.article-body h3 { font-size: 1.175rem; margin: 1.5rem 0 0.5rem; }
.article-body p { margin-bottom: 1rem; }
.article-body ul, .article-body ol { margin: 0 0 1rem; padding-left: 1.25rem; }
.article-body li { margin-bottom: 0.375rem; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.95rem; }
.article-body th, .article-body td { border: 1px solid var(--gray-100); padding: 0.625rem 0.75rem; text-align: left; }
.article-body th { background: var(--gray-50); color: var(--gray-900); }
.article-cover { margin: 1.5rem 0 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--gray-100); }
.article-cover img { width: 100%; display: block; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.875rem; color: var(--gray-400); margin-bottom: 1rem; }
.breadcrumb a { color: var(--emerald-600); }
.breadcrumb a:hover { color: var(--emerald-700); }
.related { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--gray-100); }
.related h2 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.related a { color: var(--emerald-600); }
.related a:hover { color: var(--emerald-700); }
.article-cta { margin-top: 2.5rem; padding: 1.75rem; border-radius: var(--radius-xl); background: var(--emerald-50); border: 1px solid var(--emerald-100); }
.article-cta h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.article-cta .btn { margin-top: 1rem; }
.about-grid { display: grid; gap: 1.5rem; }
.prose-block p { margin-bottom: 1rem; }

/* 滚动淡入 */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

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