/* ============================================================
   WPS Office 安全下载站 · 第1套（商务蓝卡片风）
   ============================================================ */
:root {
  --primary: #1a56db;
  --primary-dark: #123f9e;
  --primary-light: #e8f0ff;
  --accent-gold: #f5a623;
  --accent-green: #16a34a;
  --accent-red: #dc2626;
  --text-main: #131b2e;
  --text-secondary: #545b6b;
  --text-muted: #8a90a1;
  --bg-white: #ffffff;
  --bg-light: #f4f6fb;
  --bg-dark: #0d1b3a;
  --border-color: #e3e7f0;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 4px 18px rgba(19, 27, 46, 0.06);
  --shadow-card-hover: 0 14px 34px rgba(19, 27, 46, 0.12);
  --container-w: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", 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; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.container { max-width: var(--container-w); margin: 0 auto; padding: 0 24px; }

/* ---------- Header / Nav ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
}
.nav-container {
  max-width: var(--container-w); 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; color: var(--text-main); }
.logo svg { width: 36px; height: 36px; }
.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-item a {
  display: inline-block; padding: 10px 18px; font-size: 15px; font-weight: 600;
  color: var(--text-secondary); border-radius: var(--radius-sm); position: relative;
  transition: color .2s ease;
}
.nav-item a:hover { color: var(--primary); }
.nav-item.active a { color: var(--primary); }
.nav-item.active a::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 4px; height: 3px;
  background: var(--primary); border-radius: 3px;
}
.nav-download-btn {
  background: var(--primary); color: #fff; border: none; padding: 10px 22px;
  font-size: 14px; font-weight: 700; border-radius: 20px; cursor: pointer;
  transition: background .2s ease, transform .15s ease;
}
.nav-download-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.nav-download-btn:disabled { opacity: .7; cursor: default; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; border: none; font-weight: 700; transition: all .2s ease; font-family: inherit; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 8px 20px rgba(26,86,219,.25); }
.btn-secondary { background: var(--bg-white); color: var(--primary); border: 1.5px solid var(--primary); }
.btn-secondary:hover { background: var(--primary-light); }
.btn:disabled { opacity: .7; cursor: default; }

/* ---------- Section basics ---------- */
section { padding: 88px 0; }
.section-title { font-size: 34px; font-weight: 800; text-align: center; margin-bottom: 14px; letter-spacing: -.5px; }
.section-subtitle { font-size: 16px; color: var(--text-secondary); text-align: center; max-width: 620px; margin: 0 auto 56px; }
.section-tag {
  display: inline-block; font-size: 13px; font-weight: 700; color: var(--primary);
  background: var(--primary-light); padding: 5px 14px; border-radius: 14px; margin-bottom: 14px;
}
.tag-center { display: block; text-align: center; margin: 0 auto 14px; width: fit-content; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--primary-light) 0%, #ffffff 65%);
  padding: 96px 0 60px; text-align: center;
}
.hero-title { font-size: 50px; font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.hero-title span { color: var(--primary); }
.hero-desc { font-size: 18px; color: var(--text-secondary); max-width: 700px; margin: 0 auto 32px; }
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 44px; }
.hero-download-btn { padding: 16px 44px; font-size: 17px; border-radius: 30px; box-shadow: 0 12px 28px rgba(26,86,219,.28); }
.hero-meta { font-size: 13px; color: var(--text-muted); display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.hero-stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); max-width: 900px; margin: 0 auto;
  background: var(--bg-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  padding: 28px 12px; border: 1px solid var(--border-color);
}
.hero-stat-item { text-align: center; border-right: 1px solid var(--border-color); }
.hero-stat-item:last-child { border-right: none; }
.hero-stat-num { font-size: 30px; font-weight: 800; color: var(--primary); }
.hero-stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ---------- Highlights grid (6 cards) ---------- */
.highlights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.highlight-card {
  background: var(--bg-white); border: 1px solid var(--border-color); border-radius: var(--radius-md);
  padding: 30px; transition: all .25s ease;
}
.highlight-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-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 ---------- */
.platforms-section { background: var(--bg-light); }
.platforms-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.platform-card {
  background: var(--bg-white); border-radius: var(--radius-md); padding: 30px 22px; text-align: center;
  box-shadow: var(--shadow-card); border: 1px solid transparent; transition: all .25s ease;
}
.platform-card:hover { box-shadow: var(--shadow-card-hover); border-color: var(--primary); }
.platform-card svg { width: 46px; height: 46px; margin: 0 auto 14px; }
.platform-name { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.platform-desc { font-size: 13.5px; color: var(--text-secondary); min-height: 42px; margin-bottom: 20px; }
.platform-btn { width: 100%; padding: 11px; font-size: 14px; border-radius: var(--radius-sm); }

/* ---------- Feature detail rows ---------- */
.feature-row { display: flex; align-items: center; gap: 60px; margin-bottom: 76px; }
.feature-row:nth-child(even) { flex-direction: row-reverse; }
.feature-row:last-child { margin-bottom: 0; }
.feature-text { flex: 1; }
.feature-title { font-size: 27px; font-weight: 800; margin: 6px 0 16px; }
.feature-p { font-size: 15.5px; color: var(--text-secondary); margin-bottom: 18px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; margin-bottom: 10px; }
.feature-list svg { width: 18px; height: 18px; color: var(--accent-green); margin-top: 2px; flex-shrink: 0; }
.feature-graphic {
  flex: 1; height: 280px; background: var(--bg-light); border-radius: var(--radius-md);
  border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center;
}

/* ---------- Comparison table ---------- */
.compare-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border-color); box-shadow: var(--shadow-card); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.compare-table th, .compare-table td { padding: 16px 22px; text-align: left; font-size: 14.5px; border-bottom: 1px solid var(--border-color); }
.compare-table th { background: var(--bg-light); font-weight: 700; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td:nth-child(2) { color: var(--primary); font-weight: 700; }
.badge-yes { background: rgba(22,163,74,.1); color: var(--accent-green); padding: 3px 10px; border-radius: var(--radius-sm); font-weight: 700; font-size: 12.5px; }
.badge-no { background: rgba(138,144,161,.12); color: var(--text-muted); padding: 3px 10px; border-radius: var(--radius-sm); font-size: 12.5px; }

/* ---------- Reviews ---------- */
.reviews-section { background: var(--bg-light); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review-card { background: var(--bg-white); border-radius: var(--radius-md); padding: 26px; box-shadow: var(--shadow-card); }
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.review-avatar { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; background: var(--primary); }
.review-name { font-size: 14.5px; font-weight: 700; }
.review-sub { font-size: 12px; color: var(--text-muted); }
.review-stars { display: flex; gap: 2px; color: var(--accent-gold); margin-bottom: 10px; }
.review-stars svg { width: 15px; height: 15px; fill: currentColor; }
.review-text { font-size: 13.8px; color: var(--text-secondary); }

/* ---------- Stats dark ---------- */
.stats-section { background: linear-gradient(135deg, var(--bg-dark) 0%, #16234b 100%); color: #fff; }
.stats-section .section-title, .stats-section .section-subtitle { color: #fff; }
.stats-section .section-subtitle { color: #a9b4d4; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-num { font-size: 42px; font-weight: 800; color: #7ea6ff; }
.stat-label { font-size: 14px; color: #a9b4d4; margin-top: 6px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--bg-white); overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 18px 22px; font-size: 15.5px; font-weight: 700; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 22px; top: 16px; font-size: 22px; color: var(--primary); font-weight: 400;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-answer { padding: 0 22px 20px; font-size: 14.3px; color: var(--text-secondary); }

/* ---------- Generic content sections (download / zh-cn pages) ---------- */
.page-header { background: var(--primary-light); padding: 64px 0 44px; text-align: center; }
.page-header h1 { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.page-header p { color: var(--text-secondary); font-size: 15.5px; max-width: 640px; margin: 0 auto; }

.download-hero { background: var(--bg-white); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 44px; box-shadow: var(--shadow-card); display: flex; align-items: center; gap: 40px; margin-top: -20px; }
.download-hero-icon { width: 96px; height: 96px; flex-shrink: 0; }
.download-hero-info h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.download-hero-info p { color: var(--text-secondary); font-size: 14.5px; margin-bottom: 16px; }
.download-hero-meta { display: flex; gap: 20px; font-size: 13px; color: var(--text-muted); margin-bottom: 22px; flex-wrap: wrap; }
.download-hero-meta b { color: var(--text-main); }

.platform-detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.platform-detail-card { border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 26px; background: var(--bg-white); }
.platform-detail-card svg { width: 40px; height: 40px; margin-bottom: 14px; }
.platform-detail-card h3 { font-size: 17px; margin-bottom: 8px; }
.platform-detail-card p { font-size: 13.5px; color: var(--text-secondary); margin-bottom: 14px; }
.platform-detail-card ol { padding-left: 18px; font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; }
.platform-detail-card ol li { margin-bottom: 4px; }

.steps-list { display: flex; flex-direction: column; gap: 0; max-width: 780px; margin: 0 auto; }
.step-item { display: flex; gap: 22px; padding: 22px 0; border-bottom: 1px dashed var(--border-color); }
.step-item:last-child { border-bottom: none; }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.step-body h4 { font-size: 16px; margin-bottom: 6px; }
.step-body p { font-size: 14px; color: var(--text-secondary); }

.req-table-wrap { overflow-x: auto; }
.req-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.req-table th, .req-table td { padding: 14px 18px; border: 1px solid var(--border-color); font-size: 14px; text-align: left; }
.req-table th { background: var(--bg-light); }

.changelog-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.changelog-item { border-left: 3px solid var(--primary); padding: 4px 0 4px 20px; }
.changelog-item h4 { font-size: 16px; margin-bottom: 6px; }
.changelog-item span { font-size: 12.5px; color: var(--text-muted); margin-left: 10px; }
.changelog-item ul { padding-left: 18px; font-size: 13.8px; color: var(--text-secondary); margin-top: 6px; }
.changelog-item ul li { margin-bottom: 3px; }

.safety-banner { display: flex; align-items: center; gap: 16px; background: rgba(22,163,74,.08); border: 1px solid rgba(22,163,74,.25); border-radius: var(--radius-md); padding: 22px 26px; }
.safety-banner svg { width: 34px; height: 34px; color: var(--accent-green); flex-shrink: 0; }
.safety-banner p { font-size: 14px; color: var(--text-secondary); }

.zhcn-article { max-width: 780px; margin: 0 auto; }
.zhcn-article h2 { font-size: 24px; margin: 40px 0 14px; }
.zhcn-article h3 { font-size: 19px; margin: 28px 0 10px; }
.zhcn-article p { font-size: 15px; color: var(--text-secondary); margin-bottom: 14px; }
.zhcn-article ul { padding-left: 20px; margin-bottom: 14px; }
.zhcn-article li { font-size: 15px; color: var(--text-secondary); margin-bottom: 6px; }
.cta-box { text-align: center; background: var(--primary-light); border-radius: var(--radius-lg); padding: 44px; margin-top: 50px; }
.cta-box h3 { font-size: 24px; margin-bottom: 10px; }
.cta-box p { color: var(--text-secondary); margin-bottom: 22px; }
.cta-btn { padding: 15px 40px; font-size: 16px; border-radius: 30px; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-dark); color: #a9b4d4; padding: 40px 0; }
.footer-container { max-width: var(--container-w); margin: 0 auto; padding: 0 24px; text-align: center; }
.footer-safety { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: #cdd6ee; margin-bottom: 14px; }
.footer-safety svg { width: 16px; height: 16px; color: var(--accent-green); }
.footer-warning { font-size: 12.5px; line-height: 1.8; max-width: 780px; margin: 0 auto 10px; }
.footer-copyright { font-size: 12px; color: #6b7699; }

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

@media (max-width: 992px) {
  .highlights-grid, .platforms-grid, .stats-grid, .reviews-grid, .platform-detail-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-row, .feature-row:nth-child(even) { flex-direction: column; gap: 28px; }
  .hero-title { font-size: 36px; }
  .download-hero { flex-direction: column; text-align: center; }
  .nav-menu .nav-item:not(.always-show) { display: none; }
}
@media (max-width: 620px) {
  .highlights-grid, .platforms-grid, .stats-grid, .reviews-grid, .platform-detail-grid, .hero-stats-bar { grid-template-columns: 1fr; }
  .section-title { font-size: 26px; }
  .hero-title { font-size: 28px; }
}
