/* ==========================================================================
   WPS Office 官网入口 - 科技极简风格（站点1 / 根域名）
   主色：科技蓝 #2E5BFF ｜ 圆角卡片 + 磨砂玻璃导航 + 居中式排版
   ========================================================================== */
:root {
  --primary: #2E5BFF;
  --primary-dark: #1A3FCC;
  --primary-light: #EEF2FF;
  --primary-gradient: linear-gradient(120deg, #2E5BFF 0%, #6C8CFF 100%);
  --text-1: #0F1A33;
  --text-2: #4B5670;
  --text-3: #8A93AB;
  --bg: #FFFFFF;
  --bg-soft: #F5F7FC;
  --border: #E3E8F5;
  --success: #16A085;
  --gold: #F5A623;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 4px 16px rgba(15, 26, 51, 0.06);
  --shadow-md: 0 12px 32px rgba(46, 91, 255, 0.12);
  --header-h: 76px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", -apple-system, Roboto, sans-serif;
  color: var(--text-1);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- 按钮 ---------- */
button, .btn {
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 34px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary { background: var(--primary-gradient); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(46,91,255,0.22); }
.btn-outline { background: #fff; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-block { width: 100%; }
button:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 999;
}
.nav-wrap { max-width: 1180px; margin: 0 auto; height: 100%; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; color: var(--text-1); }
.brand svg { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 15px; font-weight: 600; color: var(--text-2); padding: 8px 2px; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.nav-links a:hover { color: var(--primary); }
.nav-links a.active { color: var(--primary); border-bottom-color: var(--primary); }
.nav-cta { padding: 10px 24px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--header-h) + 90px) 0 80px; text-align: center; background: radial-gradient(ellipse at top, var(--primary-light) 0%, #fff 65%); }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--primary-light); color: var(--primary); font-size: 13px; font-weight: 700; padding: 6px 16px; border-radius: 999px; margin-bottom: 22px; }
.hero h1 { font-size: 52px; font-weight: 800; line-height: 1.25; letter-spacing: -0.5px; margin-bottom: 20px; }
.hero h1 span { color: var(--primary); }
.hero p.lead { font-size: 19px; color: var(--text-2); max-width: 640px; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.hero-note { font-size: 13px; color: var(--text-3); }

/* ---------- 通用板块 ---------- */
section.block { padding: 90px 0; }
.block-alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-tag { font-size: 13px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; display: block; }
.section-head h2 { font-size: 34px; font-weight: 800; margin-bottom: 14px; }
.section-head p { font-size: 16px; color: var(--text-2); }

/* ---------- 特性卡片 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px 28px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature-icon { width: 56px; height: 56px; border-radius: var(--radius-md); background: var(--primary-light); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.feature-icon svg { width: 28px; height: 28px; color: var(--primary); }
.feature-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 14.5px; color: var(--text-2); }

/* ---------- 多平台 ---------- */
.platform-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.platform-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px 22px; text-align: center; box-shadow: var(--shadow-sm); }
.platform-icon { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%; background: var(--primary-light); display: flex; align-items: center; justify-content: center; }
.platform-icon svg { width: 30px; height: 30px; color: var(--primary); }
.platform-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.platform-card p.desc { font-size: 13px; color: var(--text-3); margin-bottom: 18px; min-height: 40px; }

/* ---------- 深入介绍（交替图文） ---------- */
.deep-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-bottom: 90px; }
.deep-row:last-child { margin-bottom: 0; }
.deep-row.reverse .deep-visual { order: 2; }
.deep-visual { aspect-ratio: 4/3; background: var(--primary-gradient); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); }
.deep-visual svg { width: 46%; height: 46%; color: #fff; opacity: 0.95; }
.deep-text .section-tag { margin-bottom: 10px; }
.deep-text h3 { font-size: 26px; font-weight: 800; margin-bottom: 16px; }
.deep-text p { font-size: 15px; color: var(--text-2); margin-bottom: 12px; }

/* ---------- 数据统计 ---------- */
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--primary-gradient); border-radius: var(--radius-lg); padding: 46px 20px; box-shadow: var(--shadow-md); }
.stat-item { text-align: center; color: #fff; border-right: 1px solid rgba(255,255,255,0.25); }
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 40px; font-weight: 800; margin-bottom: 6px; }
.stat-label { font-size: 14px; opacity: 0.9; }

/* ---------- 评价 ---------- */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.review-stars { display: flex; gap: 3px; color: var(--gold); margin-bottom: 12px; }
.review-stars svg { width: 16px; height: 16px; }
.review-card p.text { font-size: 14.5px; color: var(--text-2); margin-bottom: 18px; }
.review-user { display: flex; align-items: center; gap: 10px; }
.review-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.review-user span { font-size: 13.5px; font-weight: 700; color: var(--text-1); }

/* ---------- 对比表 ---------- */
.compare-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.compare-table th, .compare-table td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.compare-table thead th { background: var(--bg-soft); font-size: 15px; font-weight: 800; }
.compare-table th:nth-child(2), .compare-table td:nth-child(2) { color: var(--primary); font-weight: 700; }
.compare-table tr:last-child td { border-bottom: none; }
.tick { color: var(--success); }
.cross { color: var(--text-3); }

/* ---------- FAQ（原生 details/summary） ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); padding: 6px 0; }
.faq-item summary { cursor: pointer; list-style: none; font-size: 17px; font-weight: 700; padding: 20px 34px 20px 0; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute; right: 4px; top: 50%; width: 12px; height: 12px;
  border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .25s;
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-item p { padding: 0 0 22px; font-size: 14.5px; color: var(--text-2); }

/* ---------- CTA 区块 ---------- */
.cta-block { background: var(--primary-gradient); border-radius: var(--radius-lg); padding: 60px 40px; text-align: center; color: #fff; }
.cta-block h2 { font-size: 30px; font-weight: 800; margin-bottom: 14px; }
.cta-block p { font-size: 15px; opacity: 0.92; margin-bottom: 30px; }
.cta-block .btn-primary { background: #fff; color: var(--primary); box-shadow: none; }
.cta-block .btn-primary:hover { background: #f0f2ff; }

/* ---------- 下载页专用 ---------- */
.download-hero { padding: calc(var(--header-h) + 60px) 0 60px; background: var(--bg-soft); }
.dl-primary-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 44px; display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; }
.dl-primary-card .platform-icon { width: 76px; height: 76px; }
.dl-primary-card .platform-icon svg { width: 38px; height: 38px; }
.dl-meta { display: flex; gap: 26px; margin-top: 10px; flex-wrap: wrap; }
.dl-meta span { font-size: 13px; color: var(--text-3); }
.dl-meta b { color: var(--text-1); }

.steps-list { display: grid; gap: 20px; }
.step-item { display: grid; grid-template-columns: 52px 1fr; gap: 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px; }
.step-num { width: 52px; height: 52px; border-radius: 50%; background: var(--primary-light); color: var(--primary); font-weight: 800; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.step-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.step-item p { font-size: 14px; color: var(--text-2); }

.req-table { width: 100%; border-collapse: collapse; }
.req-table th, .req-table td { padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 14px; text-align: left; }
.req-table thead th { background: var(--bg-soft); font-weight: 800; }

.changelog { border-left: 3px solid var(--primary-light); padding-left: 26px; }
.changelog-item { position: relative; margin-bottom: 30px; }
.changelog-item::before { content: ""; position: absolute; left: -32px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.changelog-item .ver { font-size: 16px; font-weight: 800; color: var(--primary); }
.changelog-item .date { font-size: 13px; color: var(--text-3); margin-left: 10px; }
.changelog-item ul { margin-top: 10px; padding-left: 18px; list-style: disc; }
.changelog-item li { font-size: 14px; color: var(--text-2); margin-bottom: 4px; }

.safe-badges { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.safe-badge { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 12px 22px; font-size: 13.5px; font-weight: 700; color: var(--text-2); }
.safe-badge svg { width: 18px; height: 18px; color: var(--success); }

/* ---------- 中文页专用 ---------- */
.article-page { padding: calc(var(--header-h) + 70px) 0 40px; }
.article-hero h1 { font-size: 36px; font-weight: 800; margin-bottom: 16px; }
.article-hero p { font-size: 16px; color: var(--text-2); max-width: 720px; }
.article-body { max-width: 780px; margin: 40px auto 0; }
.article-body h2 { font-size: 24px; font-weight: 800; margin: 40px 0 16px; }
.article-body p { font-size: 15px; color: var(--text-2); margin-bottom: 14px; }
.article-body ul { padding-left: 20px; list-style: disc; margin-bottom: 14px; }
.article-body li { font-size: 15px; color: var(--text-2); margin-bottom: 6px; }
.article-cta { text-align: center; margin: 50px 0; padding: 44px; background: var(--primary-light); border-radius: var(--radius-lg); }
.article-cta h3 { font-size: 22px; font-weight: 800; margin-bottom: 14px; }

/* ---------- 页脚 ---------- */
.site-footer { background: #0F1A33; color: #B7C0DA; padding: 50px 0 30px; }
.footer-security { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; color: #fff; margin-bottom: 18px; font-weight: 600; }
.footer-security svg { width: 20px; height: 20px; color: var(--success); }
.footer-links { display: flex; justify-content: center; gap: 28px; margin-bottom: 22px; font-size: 13.5px; }
.footer-links a:hover { color: #fff; }
.footer-copy { text-align: center; font-size: 12.5px; color: #7C88AB; line-height: 1.8; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 22px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .feature-grid, .platform-grid, .review-grid { grid-template-columns: repeat(2, 1fr); }
  .deep-row { grid-template-columns: 1fr; gap: 30px; }
  .deep-row.reverse .deep-visual { order: 0; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat-item { border-right: none; }
  .nav-links { display: none; }
  .hero h1 { font-size: 36px; }
  .dl-primary-card { grid-template-columns: 1fr; text-align: center; }
}
@media (max-width: 600px) {
  .feature-grid, .platform-grid, .review-grid { grid-template-columns: 1fr; }
  .compare-table { font-size: 12px; }
}
