/* ===================================================
   WPS Office 官方平台 - 主题一：现代商务蓝
   风格：顶部固定导航 + 居中大标题 Hero + 卡片网格
   =================================================== */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eaf1ff;
  --accent: #f59e0b;
  --text-main: #1a2233;
  --text-secondary: #5b6579;
  --text-muted: #8b93a5;
  --bg-white: #ffffff;
  --bg-light: #f4f7fc;
  --border-color: #e3e8f2;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(30, 41, 71, 0.06);
  --shadow-hover: 0 12px 32px rgba(30, 41, 71, 0.12);
  --max-width: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", Helvetica, Arial, sans-serif;
  color: var(--text-main);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

section { padding: 88px 0; }
.section-title {
  font-size: 34px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 14px;
  color: var(--text-main);
}
.section-subtitle {
  text-align: center;
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 48px;
}

/* ---------- 导航栏：顶部固定 ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
}
.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; }
.logo svg { width: 36px; height: 36px; }
.nav-menu { display: flex; align-items: center; gap: 34px; }
.nav-item a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-item a:hover { color: var(--primary); }
.nav-item.active a { color: var(--primary); border-bottom-color: var(--primary); }
.nav-download-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.nav-download-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.nav-download-btn:disabled { opacity: .7; cursor: default; }
main { padding-top: 68px; }

/* ---------- 按钮通用 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-weight: 700;
  border-radius: 8px;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-secondary { background: var(--bg-light); color: var(--text-main); border: 1px solid var(--border-color); }
.btn-secondary:hover { background: #eef2fb; }
.btn:disabled { opacity: .7; cursor: default; transform: none; }

/* ---------- Hero：居中大标题 ---------- */
.hero {
  background: linear-gradient(180deg, var(--primary-light) 0%, #fff 100%);
  padding: 128px 0 72px;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--border-color);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 22px;
}
.hero-badge svg { width: 14px; height: 14px; }
.hero-title { font-size: 50px; font-weight: 800; line-height: 1.2; margin-bottom: 20px; letter-spacing: -1px; }
.hero-title span { color: var(--primary); }
.hero-desc { font-size: 18px; color: var(--text-secondary); max-width: 720px; margin: 0 auto 34px; }
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero-download-btn { padding: 16px 46px; font-size: 17px; border-radius: 30px; box-shadow: 0 14px 30px rgba(37,99,235,.28); }
.hero-meta { display: flex; gap: 16px; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; justify-content: center; }

/* ---------- 特性卡片网格 ---------- */
.highlights-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 24px; }
.highlight-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.highlight-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.highlight-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.highlight-icon svg { width: 26px; height: 26px; }
.highlight-title { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.highlight-desc { font-size: 14.5px; color: var(--text-secondary); }

/* ---------- 平台下载 ---------- */
.platforms-section { background: var(--bg-light); }
.platforms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 24px; }
.platform-card {
  background: #fff; border-radius: var(--radius); padding: 30px 22px; text-align: center;
  box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,.03);
  display: flex; flex-direction: column; align-items: center; transition: transform .25s, box-shadow .25s;
}
.platform-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.platform-card svg { width: 46px; height: 46px; margin-bottom: 14px; }
.platform-name { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.platform-desc { font-size: 13.5px; color: var(--text-secondary); min-height: 40px; margin-bottom: 20px; }
.platform-btn { width: 100%; padding: 10px 18px; font-size: 14px; border-radius: 6px; }

/* ---------- 功能详细介绍（图文交错） ---------- */
.feature-detail-row { display: flex; align-items: center; gap: 60px; margin-bottom: 76px; }
.feature-detail-row:nth-child(even) { flex-direction: row-reverse; }
.feature-detail-row:last-child { margin-bottom: 0; }
.feature-detail-text { flex: 1; }
.feature-tag { display: inline-block; font-size: 12.5px; font-weight: 800; color: var(--accent); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; }
.feature-detail-title { font-size: 28px; font-weight: 800; margin-bottom: 14px; }
.feature-detail-p { font-size: 15.5px; color: var(--text-secondary); margin-bottom: 16px; }
.feature-detail-list li { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; margin-bottom: 10px; }
.feature-detail-list svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.feature-detail-img { flex: 1; height: 280px; background: var(--bg-light); border-radius: var(--radius); border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; }

/* ---------- 数据统计 ---------- */
.stats-section { background: linear-gradient(135deg, #101f3d 0%, #1e3a72 100%); color: #fff; text-align: center; }
.stats-section .section-title, .stats-section .section-subtitle { color: #fff; }
.stats-section .section-subtitle { opacity: .75; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 36px; }
.stat-number { font-size: 44px; font-weight: 800; color: var(--accent); margin-bottom: 6px; }
.stat-label { font-size: 14.5px; opacity: .85; }

/* ---------- 对比表格 ---------- */
.table-responsive { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border-color); box-shadow: var(--shadow); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.compare-table th, .compare-table td { padding: 16px 22px; border-bottom: 1px solid var(--border-color); font-size: 14.5px; text-align: left; }
.compare-table th { background: var(--bg-light); font-weight: 700; }
.compare-table tr:last-child td { border-bottom: none; }
.badge-yes { background: rgba(37,99,235,.1); color: var(--primary); padding: 3px 10px; border-radius: 4px; font-weight: 700; font-size: 12.5px; }
.badge-no { background: rgba(139,147,165,.12); color: var(--text-muted); padding: 3px 10px; border-radius: 4px; font-size: 12.5px; }

/* ---------- 用户评价 ---------- */
.reviews-section { background: var(--bg-light); }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 22px; }
.review-card { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.review-author { 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; }
.review-info h4 { font-size: 14.5px; font-weight: 700; }
.review-info span { font-size: 12px; color: var(--text-muted); }
.review-stars { display: flex; gap: 2px; color: var(--accent); margin-bottom: 10px; }
.review-stars svg { width: 15px; height: 15px; fill: currentColor; }
.review-content { font-size: 13.5px; color: var(--text-secondary); }

/* ---------- FAQ ---------- */
.faq-grid { display: flex; flex-direction: column; gap: 14px; max-width: 820px; margin: 0 auto; }
.faq-card { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius); overflow: hidden; }
.faq-card summary { padding: 18px 22px; font-size: 15.5px; font-weight: 700; cursor: pointer; list-style: none; position: relative; }
.faq-card summary::-webkit-details-marker { display: none; }
.faq-card summary::after { content: "+"; position: absolute; right: 22px; top: 16px; font-size: 22px; color: var(--primary); transition: transform .2s; }
.faq-card details[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 22px 20px; font-size: 14px; color: var(--text-secondary); }

/* ---------- 页脚 ---------- */
.footer { background: #101f3d; color: #b8c2dc; padding: 44px 0 30px; }
.footer-container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; text-align: center; }
.footer-safety { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.06); padding: 8px 18px; border-radius: 20px; font-size: 13.5px; margin-bottom: 18px; color: #fff; }
.footer-safety svg { width: 16px; height: 16px; }
.footer-warning { font-size: 13px; line-height: 1.8; opacity: .8; max-width: 720px; margin: 0 auto 6px; }
.footer-copyright { font-size: 12.5px; opacity: .55; }

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ---------- 下载页专属 ---------- */
.download-hero { background: linear-gradient(180deg, var(--primary-light), #fff); padding: 130px 0 60px; text-align: center; }
.download-main-card { background: #fff; border: 1px solid var(--border-color); border-radius: 16px; box-shadow: var(--shadow-hover); padding: 44px; max-width: 640px; margin: 0 auto; }
.download-main-card svg.win-icon { width: 64px; height: 64px; margin: 0 auto 18px; }
.download-version-tags { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 18px 0 26px; font-size: 13px; color: var(--text-muted); }
.download-version-tags span { background: var(--bg-light); padding: 5px 14px; border-radius: 14px; }
.big-download-btn { padding: 18px 50px; font-size: 18px; border-radius: 30px; box-shadow: 0 14px 30px rgba(37,99,235,.28); }
.platform-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 24px; }
.platform-detail-card { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius); padding: 28px; }
.platform-detail-card h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; margin-bottom: 10px; }
.platform-detail-card h3 svg { width: 32px; height: 32px; }
.platform-detail-card ul { margin: 14px 0; font-size: 13.5px; color: var(--text-secondary); }
.platform-detail-card ul li { margin-bottom: 6px; padding-left: 18px; position: relative; }
.platform-detail-card ul li::before { content: "›"; position: absolute; left: 0; color: var(--primary); font-weight: 800; }
.steps-list { display: flex; flex-direction: column; gap: 18px; }
.step-item { display: flex; gap: 18px; background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius); padding: 22px; align-items: flex-start; }
.step-num { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.step-body h4 { font-size: 16px; margin-bottom: 6px; }
.step-body p { font-size: 14px; color: var(--text-secondary); }
.requirements-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 20px; }
.requirement-card { background: var(--bg-light); border-radius: var(--radius); padding: 22px; }
.requirement-card h4 { margin-bottom: 12px; font-size: 15.5px; }
.requirement-card ul li { font-size: 13.5px; color: var(--text-secondary); margin-bottom: 6px; }
.changelog-list { display: flex; flex-direction: column; gap: 16px; }
.changelog-item { background: #fff; border-left: 3px solid var(--primary); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; box-shadow: var(--shadow); }
.changelog-item .cl-head { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; margin-bottom: 8px; color: var(--primary); }
.changelog-item ul { font-size: 13.5px; color: var(--text-secondary); }
.changelog-item ul li { margin-bottom: 4px; }
.safety-banner { display: flex; gap: 20px; background: var(--primary-light); border-radius: var(--radius); padding: 28px; align-items: center; }
.safety-banner svg { width: 44px; height: 44px; color: var(--primary); flex-shrink: 0; }

/* ---------- 中文引流页专属 ---------- */
.zh-hero { background: linear-gradient(180deg, var(--primary-light), #fff); padding: 130px 0 60px; text-align: center; }
.zh-article { max-width: 780px; margin: 0 auto; }
.zh-article h2 { font-size: 26px; margin: 40px 0 14px; font-weight: 800; }
.zh-article p { font-size: 15.5px; color: var(--text-secondary); margin-bottom: 14px; }
.zh-cta-box { text-align: center; background: var(--bg-light); border-radius: 16px; padding: 44px; margin-top: 50px; }
.zh-cta-box h3 { font-size: 24px; margin-bottom: 12px; }
.zh-cta-btn { display: inline-block; margin-top: 16px; padding: 15px 42px; background: var(--primary); color: #fff; border-radius: 30px; font-weight: 700; font-size: 16px; transition: background .2s, transform .2s; }
.zh-cta-btn:hover { background: var(--primary-dark); transform: translateY(-2px); }

@media (max-width: 992px) {
  .hero-title { font-size: 38px; }
  .feature-detail-row, .feature-detail-row:nth-child(even) { flex-direction: column; gap: 28px; }
  .feature-detail-img { width: 100%; }
}
@media (max-width: 700px) {
  .nav-menu { gap: 16px; }
  .nav-item a { font-size: 13.5px; }
  section { padding: 60px 0; }
  .hero-title { font-size: 30px; }
  .feature-detail-row { margin-bottom: 48px; }
}
