/* ===== WPS 下载中心 · 全局样式 =====
   设计令牌：主色 emerald、辅助 teal、中性 gray，圆角 8/12/16/24px，区块间距 96px */

: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-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, .06);
  --shadow-md: 0 4px 12px rgba(17, 24, 39, .08);
  --shadow-xl: 0 20px 40px -12px rgba(17, 24, 39, .18);
  --header-h: 68px;
}

* { 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, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-weight: 400;
  color: var(--gray-700);
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--emerald-600); text-decoration: none; }
a:hover { color: var(--emerald-700); }

h1, h2, h3 { color: var(--gray-900); line-height: 1.25; margin: 0 0 16px; font-weight: 700; }

p { margin: 0 0 16px; }

ul { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 8px; }

.container { width: 100%; max-width: 1152px; margin: 0 auto; padding: 0 16px; }
.section { padding: 96px 0; }
.section--tight { padding: 48px 0; }
.section--gray { background: var(--gray-50); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head h2 { font-size: 36px; }
.section-head p { font-size: 18px; color: var(--gray-600); margin: 0; }
.section-head--left { text-align: left; margin-left: 0; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; max-width: none; }
.section-head--left > div { max-width: 640px; }
.more-link { font-weight: 600; white-space: nowrap; }

/* ===== Header ===== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-100);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--gray-900); font-weight: 700; font-size: 18px; }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.nav { display: none; align-items: center; gap: 4px; }
.nav-link { padding: 8px 14px; border-radius: var(--radius-sm); color: var(--gray-600); font-size: 15px; font-weight: 500; }
.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; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; font-family: inherit; font-weight: 600;
  border-radius: var(--radius-md); padding: 10px 18px; font-size: 15px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary { background: var(--emerald-600); color: #fff; box-shadow: 0 8px 20px -8px rgba(5, 150, 105, .6); }
.btn-primary:hover { background: var(--emerald-700); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--gray-700); border: 1px solid var(--gray-200); }
.btn-ghost:hover { color: var(--gray-900); border-color: var(--gray-400); }
.btn-lg { padding: 16px 30px; font-size: 17px; border-radius: var(--radius-lg); }
.btn svg { width: 20px; height: 20px; }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  background: #fff; color: var(--gray-700); cursor: pointer;
}
.mobile-drawer {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
  background: #fff; border-bottom: 1px solid var(--gray-100);
  box-shadow: var(--shadow-md);
  padding: 16px; display: none;
}
.mobile-drawer.open { display: block; }
.mobile-drawer a { display: block; padding: 12px 10px; border-radius: var(--radius-sm); color: var(--gray-700); font-weight: 500; }
.mobile-drawer a:hover { background: var(--gray-50); }
.mobile-drawer .btn { width: 100%; margin-top: 8px; }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 56px) 0 80px;
  background: linear-gradient(160deg, var(--emerald-50) 0%, #fff 45%, var(--teal-50) 100%);
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(64px); opacity: .3; pointer-events: none;
}
.hero::before { width: 320px; height: 320px; background: var(--emerald-400); top: -60px; right: -60px; }
.hero::after { width: 280px; height: 280px; background: var(--teal-200); bottom: -80px; left: -80px; }
.hero-grid { position: relative; display: grid; gap: 40px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--emerald-100); color: var(--emerald-700);
  border-radius: 9999px; padding: 6px 14px; font-size: 13px; font-weight: 600; margin-bottom: 20px;
}
.badge svg { width: 16px; height: 16px; }
.hero h1 { font-size: 44px; margin-bottom: 20px; }
.hero h1 .text-gradient {
  background: linear-gradient(90deg, var(--emerald-600), #0ea5a4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 19px; color: var(--gray-600); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-visual img { width: 100%; height: auto; object-fit: contain; }
.animate-glow { animation: glow 2.6s ease-in-out infinite; }
@keyframes glow {
  0%, 100% { box-shadow: 0 8px 20px -8px rgba(5, 150, 105, .55); }
  50% { box-shadow: 0 14px 34px -8px rgba(5, 150, 105, .85); }
}

/* ===== 信任条 ===== */
.stats { background: var(--gray-900); color: #fff; padding: 44px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat svg { width: 32px; height: 32px; color: var(--emerald-400); margin: 0 auto 8px; }
.stat-num { font-size: 28px; font-weight: 700; line-height: 1.2; }
.stat-label { color: var(--gray-400); font-size: 14px; margin-top: 4px; }

/* ===== 功能卡 ===== */
.feature-grid { display: grid; gap: 24px; }
.feature-card {
  background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius-xl);
  padding: 32px; transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.feature-card:hover { border-color: var(--emerald-200); box-shadow: var(--shadow-xl); transform: translateY(-2px); }
.feature-icon {
  width: 64px; height: 64px; border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
  color: #fff; transition: transform .25s ease;
}
.feature-card:hover .feature-icon { transform: scale(1.08); }
.feature-icon svg { width: 30px; height: 30px; }
.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); }
.feature-card h3 { font-size: 22px; margin-bottom: 10px; }
.feature-card p { color: var(--gray-600); font-size: 17px; margin: 0; }

/* ===== 平台卡 ===== */
.platform-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.platform-card {
  display: block; background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius-xl);
  padding: 32px; color: var(--gray-700); transition: border-color .25s ease, box-shadow .25s ease;
}
.platform-card:hover { border-color: var(--emerald-200); box-shadow: var(--shadow-xl); color: var(--gray-700); }
.platform-card svg { width: 48px; height: 48px; color: var(--gray-700); margin-bottom: 16px; transition: color .2s ease; }
.platform-card:hover svg { color: var(--emerald-600); }
.platform-card h3 { font-size: 20px; margin-bottom: 6px; }
.platform-card .version { color: var(--gray-500); font-size: 14px; }
.platform-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--emerald-600); opacity: 0; transition: opacity .2s ease; }
.platform-more svg { width: 16px; height: 16px; margin: 0; }
.platform-card:hover .platform-more { opacity: 1; }

/* ===== 文章卡 ===== */
.card-grid { display: grid; gap: 24px; }
.article-card {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: border-color .25s ease, box-shadow .25s ease;
  color: inherit;
}
.article-card:hover { border-color: var(--emerald-200); box-shadow: var(--shadow-xl); color: inherit; }
.article-cover { position: relative; height: 176px; overflow: hidden; background: var(--gray-100); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.article-card:hover .article-cover img { transform: scale(1.05); }
.article-tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--emerald-500); color: #fff; font-size: 12px; font-weight: 600;
  border-radius: var(--radius-sm); padding: 3px 8px;
}
.article-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.article-body h3 {
  font-size: 18px; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-card:hover .article-body h3 { color: var(--emerald-600); }
.article-body p {
  color: var(--gray-500); font-size: 14px; margin: 0 0 16px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-meta {
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--gray-100);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--gray-400);
}
.article-meta span { display: inline-flex; align-items: center; gap: 5px; }
.article-meta svg { width: 14px; height: 14px; }

/* ===== FAQ ===== */
.faq-list { max-width: 768px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-md); overflow: hidden; }
.faq-item.open { border-color: var(--emerald-200); box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: inherit; font-size: 16px; font-weight: 600; color: var(--gray-900);
}
.faq-q:hover { color: var(--emerald-700); }
.faq-q svg { width: 18px; height: 18px; flex: none; color: var(--gray-400); transition: transform .2s ease; }
.faq-item.open .faq-q svg { transform: rotate(180deg); color: var(--emerald-600); }
.faq-a { display: none; padding: 0 20px 20px; color: var(--gray-600); }
.faq-item.open .faq-a { display: block; }
.faq-a p:last-child { margin-bottom: 0; }

/* ===== Footer ===== */
.site-footer { background: var(--gray-900); color: var(--gray-400); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.site-footer h3 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer .footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 18px; margin-bottom: 12px; }
.site-footer .footer-brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-footer p { font-size: 14px; }
.site-footer a { color: var(--gray-400); font-size: 14px; display: block; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 13px; color: var(--gray-500); display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between;
}

/* ===== 内容页（下载/教程/FAQ/关于） ===== */
.page-hero {
  padding: calc(var(--header-h) + 48px) 0 40px;
  background: linear-gradient(150deg, var(--emerald-50), #fff 70%);
  border-bottom: 1px solid var(--gray-100);
}
.page-hero h1 { font-size: 36px; margin-bottom: 12px; }
.page-hero p { color: var(--gray-600); font-size: 17px; max-width: 720px; margin: 0; }
.prose { max-width: 820px; }
.prose h2 { font-size: 26px; margin-top: 40px; }
.prose h3 { font-size: 20px; margin-top: 28px; }
.prose p, .prose li { color: var(--gray-600); }
.download-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.download-table th, .download-table td { padding: 14px 16px; border-bottom: 1px solid var(--gray-100); text-align: left; }
.download-table th { background: var(--gray-50); color: var(--gray-900); font-weight: 600; }
.download-table tr:hover td { background: var(--emerald-50); }
.note { background: var(--teal-50); border-left: 4px solid var(--emerald-500); padding: 16px 20px; border-radius: var(--radius-sm); color: var(--gray-700); }
.table-wrap { overflow-x: auto; border: 1px solid var(--gray-100); border-radius: var(--radius-md); background: #fff; }
.feature-icon[class*="grad-"]:not(:has(svg)) { font-size: 24px; font-weight: 700; }
.prose code { background: var(--gray-100); border-radius: 6px; padding: 2px 6px; font-size: 14px; color: var(--gray-900); }
.prose figure { margin: 28px 0; }
.prose figure img { width: 100%; height: auto; border-radius: var(--radius-md); }
.prose figcaption { color: var(--gray-500); font-size: 13px; margin-top: 10px; }

/* ===== 移动端抽屉/响应式 ===== */
@media (min-width: 768px) {
  .mobile-drawer { display: none !important; }
  .menu-toggle { display: none; }
  .nav { display: flex; }
  .header-cta { display: inline-flex; }
  .hero h1 { font-size: 54px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .stat-num { font-size: 34px; }
}

@media (min-width: 1024px) {
  .hero { padding: calc(var(--header-h) + 80px) 0 104px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 56px; }
  .hero h1 { font-size: 64px; }
  .platform-grid { grid-template-columns: repeat(4, 1fr); }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-num { font-size: 38px; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 38px; }
  .section { padding: 64px 0; }
  .section-head h2 { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .hero::before, .hero::after { display: none; }
}
