/* ===========================================================
   WPS Office 官网 · 站点一「科技蓝」主题样式
   风格：现代 SaaS 风格，顶部固定纯色导航，居中式 Hero，卡片网格
=========================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #2F6BFF;
  --primary-dark: #1A4FDB;
  --primary-light: #EAF0FF;
  --accent: #00C2A8;
  --accent-light: #E1FBF7;
  --gold: #FFB020;
  --text-main: #10182B;
  --text-secondary: #4B5875;
  --text-muted: #8A93A6;
  --bg-page: #FFFFFF;
  --bg-soft: #F5F7FC;
  --border: #E4E9F5;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 10px rgba(16, 24, 43, 0.05);
  --shadow-md: 0 12px 32px rgba(16, 24, 43, 0.09);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text-main);
  background: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }

.section-tag {
  display: inline-block;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: var(--primary-light);
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 34px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head { text-align: center; }
.section-head .section-desc { margin-left: auto; margin-right: auto; }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-family: inherit;
}

.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.75; cursor: default; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(47, 107, 255, 0.28);
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-outline {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-light); }

.btn-ghost {
  background: var(--bg-soft);
  color: var(--text-main);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--border); }

.btn-block { width: 100%; }
.btn-lg { padding: 17px 40px; font-size: 17px; border-radius: 12px; }

/* ============ 顶部导航 ============ */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-bar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.brand svg { width: 36px; height: 36px; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-menu a:hover { color: var(--primary); background: var(--primary-light); }

.nav-menu li.active a {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-cta { margin-left: 12px; }

.nav-toggle { display: none; }

/* ============ Hero ============ */
.hero {
  text-align: center;
  padding: 100px 24px 60px;
  background: radial-gradient(ellipse at 50% -10%, var(--primary-light) 0%, rgba(255,255,255,0) 60%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-light);
  color: #06806D;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 30px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -1.4px;
  line-height: 1.18;
  max-width: 820px;
  margin: 0 auto 22px;
}

.hero h1 em {
  font-style: normal;
  color: var(--primary);
}

.hero-sub {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-panel {
  max-width: 980px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  background: var(--bg-soft);
}

.hero-panel-bar {
  height: 40px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
}

.hero-panel-dot { width: 11px; height: 11px; border-radius: 50%; }

.hero-panel-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 340px;
}

.hero-panel-side {
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 20px;
}

.hero-panel-side .bar { height: 22px; border-radius: 6px; background: var(--bg-soft); margin-bottom: 12px; }

.hero-panel-main { padding: 32px; text-align: left; }
.hero-panel-main .line { height: 13px; border-radius: 6px; background: #fff; border: 1px solid var(--border); margin-bottom: 14px; }

/* ============ 特性卡片 ============ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--primary);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: var(--primary-light);
  color: var(--primary);
}

.feature-icon svg { width: 26px; height: 26px; }

.feature-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 14.5px; color: var(--text-secondary); }

/* ============ 平台下载 ============ */
.platform-section { background: var(--bg-soft); }

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.platform-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 28px 20px;
  text-align: center;
}

.platform-card svg { width: 44px; height: 44px; margin: 0 auto 16px; }
.platform-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.platform-card p { font-size: 13.5px; color: var(--text-secondary); margin-bottom: 20px; min-height: 40px; }

/* ============ 图文详情行 ============ */
.detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 76px;
}

.detail-row:last-child { margin-bottom: 0; }
.detail-row:nth-child(even) { direction: rtl; }
.detail-row:nth-child(even) > * { direction: ltr; }

.detail-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-light);
  padding: 5px 12px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.detail-text h3 { font-size: 27px; font-weight: 800; margin-bottom: 14px; }
.detail-text p { font-size: 15.5px; color: var(--text-secondary); margin-bottom: 18px; }

.detail-text ul li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  margin-bottom: 10px;
  color: var(--text-main);
}

.detail-text ul svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }

.detail-visual {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============ 统计数据 ============ */
.stats-section {
  background: linear-gradient(135deg, #10182B 0%, #1C2C52 100%);
  color: #fff;
}

.stats-section .section-title, .stats-section .section-tag { color: #fff; background: rgba(255,255,255,0.1); }
.stats-section .section-desc { color: #B7C0DA; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-num { font-size: 42px; font-weight: 800; color: #6FA1FF; margin-bottom: 8px; }
.stat-label { font-size: 14.5px; color: #B7C0DA; }

/* ============ 对比表格 ============ */
.compare-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

table.compare {
  width: 100%;
  border-collapse: collapse;
}

table.compare th, table.compare td {
  padding: 16px 22px;
  text-align: left;
  font-size: 14.5px;
  border-bottom: 1px solid var(--border);
}

table.compare thead th {
  background: var(--bg-soft);
  font-weight: 700;
  color: var(--text-main);
}

table.compare tbody tr:last-child td { border-bottom: none; }
table.compare td.win { color: var(--primary); font-weight: 700; }

.tag-yes { color: #0F9D58; background: #E7F8EF; padding: 3px 10px; border-radius: 6px; font-size: 12.5px; font-weight: 700; }
.tag-no { color: var(--text-muted); background: var(--bg-soft); padding: 3px 10px; border-radius: 6px; font-size: 12.5px; }

/* ============ 用户评价 ============ */
.review-section { background: var(--bg-soft); }

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.review-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 24px;
}

.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.review-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--primary);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
}
.review-name { font-size: 14.5px; font-weight: 700; }
.review-role { font-size: 12.5px; color: var(--text-muted); }
.review-stars { display: flex; gap: 2px; color: var(--gold); margin-bottom: 10px; }
.review-stars svg { width: 15px; height: 15px; fill: currentColor; }
.review-content { font-size: 14px; color: var(--text-secondary); }

/* ============ FAQ ============ */
.faq-list { max-width: 840px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-size: 15.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--primary);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-body {
  padding: 0 22px 20px;
  font-size: 14.5px;
  color: var(--text-secondary);
}

/* ============ 更新日志时间线 ============ */
.timeline { max-width: 760px; margin: 0 auto; position: relative; padding-left: 28px; border-left: 2px solid var(--border); }

.timeline-item { position: relative; padding-bottom: 36px; }
.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--primary-light);
}

.timeline-version { font-size: 16px; font-weight: 800; color: var(--text-main); }
.timeline-date { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.timeline-item ul { font-size: 14.5px; color: var(--text-secondary); }
.timeline-item ul li { margin-bottom: 4px; padding-left: 14px; position: relative; }
.timeline-item ul li::before { content: "·"; position: absolute; left: 0; color: var(--primary); }

/* ============ 安装步骤 ============ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.step-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  position: relative;
}

.step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px;
  margin-bottom: 14px;
}

.step-card h4 { font-size: 15.5px; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 13.5px; color: var(--text-secondary); }

/* ============ 需求列表 ============ */
.req-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.req-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px; }
.req-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.req-card h4 svg { width: 20px; height: 20px; color: var(--primary); }
.req-card ul li { font-size: 13.5px; color: var(--text-secondary); margin-bottom: 6px; }

/* ============ 下载页主区 ============ */
.dl-primary {
  max-width: 920px;
  margin: 0 auto;
  background: linear-gradient(135deg, #F5F8FF 0%, #EAF0FF 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.dl-primary-icon { width: 88px; height: 88px; flex-shrink: 0; }
.dl-primary-body { flex: 1; }
.dl-primary-body h2 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.dl-primary-body p { font-size: 14.5px; color: var(--text-secondary); margin-bottom: 20px; }
.dl-primary-tags { display: flex; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.dl-primary-tags span { font-size: 12.5px; background: #fff; border: 1px solid var(--border); padding: 5px 12px; border-radius: 20px; color: var(--text-secondary); }

/* ============ 安全说明 ============ */
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.security-card { text-align: center; padding: 20px; }
.security-card svg { width: 42px; height: 42px; color: var(--accent); margin: 0 auto 14px; }
.security-card h4 { font-size: 15.5px; font-weight: 700; margin-bottom: 8px; }
.security-card p { font-size: 13.5px; color: var(--text-secondary); }

/* ============ zh-cn 软文页 ============ */
.article-page { max-width: 820px; margin: 0 auto; padding: 60px 24px 0; }
.article-page h1 { font-size: 34px; font-weight: 800; margin-bottom: 18px; line-height: 1.3; }
.article-lead { font-size: 16.5px; color: var(--text-secondary); margin-bottom: 36px; }
.article-page h2 { font-size: 23px; font-weight: 800; margin: 40px 0 16px; }
.article-page p { font-size: 15.5px; color: var(--text-secondary); margin-bottom: 16px; }
.article-page ul { margin: 0 0 16px 0; }
.article-page ul li { font-size: 15px; color: var(--text-secondary); margin-bottom: 8px; padding-left: 18px; position: relative; }
.article-page ul li::before { content: "•"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

.cta-banner {
  margin: 56px 0 0;
  background: linear-gradient(135deg, var(--primary) 0%, #6FA1FF 100%);
  border-radius: var(--radius-lg);
  padding: 44px;
  text-align: center;
  color: #fff;
}
.cta-banner h3 { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 22px; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--primary);
  padding: 14px 36px; border-radius: 10px; font-weight: 800; font-size: 15.5px;
}
.cta-btn:hover { background: var(--bg-soft); }

/* ============ 页脚 ============ */
.site-footer {
  background: #10182B;
  color: #B7C0DA;
  padding: 44px 24px 28px;
  text-align: center;
}

.footer-safe {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #6FA1FF;
  margin-bottom: 14px;
}
.footer-safe svg { width: 16px; height: 16px; }

.footer-warning { font-size: 12.5px; max-width: 720px; margin: 0 auto 10px; line-height: 1.7; }
.footer-copy { font-size: 12px; color: #6B7695; }

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ============ 响应式 ============ */
@media (max-width: 980px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .req-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-row { grid-template-columns: 1fr; }
  .detail-row:nth-child(even) { direction: ltr; }
  .dl-primary { flex-direction: column; text-align: center; }
  .hero h1 { font-size: 38px; }
  .nav-menu { display: none; }
  .nav-toggle { display: block; }
}

@media (max-width: 600px) {
  .feature-grid, .platform-grid, .stats-grid, .req-grid, .review-grid, .security-grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .hero { padding: 72px 20px 40px; }
  .hero h1 { font-size: 30px; }
  .hero-panel-body { grid-template-columns: 1fr; }
  .hero-panel-side { display: none; }
}
