/* ============================================================
   WPS Office 安全下载站 · 站点一（根域名）「科技蓝」主题
   设计基调：居中式 Hero、卡片网格、玻璃拟态导航、深色数据带
   ============================================================ */

:root {
  --primary: #0B5FFF;
  --primary-dark: #0842C4;
  --primary-light: #EAF1FF;
  --primary-gradient: linear-gradient(135deg, #3D8BFF 0%, #0B5FFF 60%, #0842C4 100%);
  --ink: #101828;
  --ink-soft: #475467;
  --ink-mute: #8A94A6;
  --bg: #FFFFFF;
  --bg-alt: #F5F8FF;
  --line: #E3E8F0;
  --gold: #F5A623;
  --green: #17A673;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 4px 16px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 14px 36px rgba(16, 24, 40, 0.10);
  --header-h: 76px;
  font-synthesis: none;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Microsoft YaHei", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

section { padding: 88px 0; }
section + section { border-top: 1px solid var(--line); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-title { font-size: 38px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 14px; }
.section-desc { font-size: 17px; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
button, .btn {
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15.5px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--primary-gradient); color: #fff; box-shadow: 0 10px 24px rgba(11, 95, 255, 0.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(11, 95, 255, 0.36); }
.btn-outline { background: #fff; color: var(--primary); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--primary); background: var(--primary-light); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #26324a; }
.btn-block { width: 100%; }
button:disabled { opacity: 0.75; cursor: not-allowed; transform: none !important; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(16, 24, 40, 0.06);
}
.nav-wrap {
  max-width: 1180px; height: 100%; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink); }
.brand svg { width: 36px; height: 36px; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  position: relative;
  display: inline-block; padding: 10px 18px; font-weight: 600; font-size: 15px; color: var(--ink-soft);
}
.main-nav a::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 4px; height: 2px;
  background: var(--primary); transform: scaleX(0); transition: transform 0.25s ease;
}
.main-nav a:hover { color: var(--ink); }
.main-nav li.active a { color: var(--primary); }
.main-nav li.active a::after { transform: scaleX(1); }
.nav-cta { margin-left: 12px; }
.nav-cta button { padding: 10px 22px; font-size: 14px; }
.main-content { padding-top: var(--header-h); }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 64px;
  text-align: center;
  background: radial-gradient(ellipse at 50% -10%, var(--primary-light) 0%, rgba(255,255,255,0) 60%);
}
.hero h1 { font-size: 52px; font-weight: 800; line-height: 1.18; letter-spacing: -1px; max-width: 880px; margin: 0 auto 22px; }
.hero h1 em { font-style: normal; background: var(--primary-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { font-size: 19px; color: var(--ink-soft); max-width: 700px; margin: 0 auto 36px; }
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 56px; }
.hero-btn-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-btn-row .btn-primary { padding: 16px 38px; font-size: 17px; border-radius: 12px; }
.hero-meta { display: flex; gap: 18px; font-size: 13px; color: var(--ink-mute); flex-wrap: wrap; justify-content: center; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 14px; height: 14px; }

.hero-panel {
  max-width: 980px; margin: 0 auto; background: #fff; border-radius: 20px;
  box-shadow: var(--shadow-md); border: 1px solid var(--line); padding: 10px;
}
.hero-panel-inner { background: var(--bg-alt); border-radius: 14px; overflow: hidden; }
.hero-panel-bar { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 16px; background: #fff; border-bottom: 1px solid var(--line); }
.hp-dot { width: 10px; height: 10px; border-radius: 50%; }
.hero-panel-body { display: grid; grid-template-columns: 200px 1fr; min-height: 320px; }
.hp-side { padding: 18px; display: flex; flex-direction: column; gap: 10px; border-right: 1px solid var(--line); background: #fff; }
.hp-side i { display: block; height: 22px; border-radius: 6px; background: var(--bg-alt); }
.hp-main { padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.hp-main i { display: block; height: 12px; border-radius: 4px; background: var(--line); }
.hp-chip-row { display: flex; gap: 14px; margin-top: 12px; }
.hp-chip { flex: 1; height: 90px; border-radius: 10px; border: 1.5px dashed; }

/* ---------- Feature grid (6 cards) ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature-ico {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-ico 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(--ink-soft); }

/* ---------- Platforms ---------- */
.platforms-section { background: var(--bg-alt); }
.platform-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.platform-card {
  background: #fff; border-radius: var(--radius-lg); padding: 30px 22px; text-align: center;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.platform-card svg { width: 46px; height: 46px; margin: 0 auto 16px; }
.platform-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.platform-card p { font-size: 13.5px; color: var(--ink-soft); min-height: 54px; margin-bottom: 18px; }

/* ---------- Feature detail rows ---------- */
.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.reverse { direction: rtl; }
.detail-row.reverse > * { direction: ltr; }
.detail-tag { display: inline-block; font-size: 13px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.detail-row h3 { font-size: 28px; font-weight: 800; margin-bottom: 14px; }
.detail-row > div > p { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 16px; }
.detail-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; margin-bottom: 10px; }
.detail-list svg { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; margin-top: 2px; }
.detail-visual { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-lg); height: 300px; display: flex; align-items: center; justify-content: center; }

/* ---------- Stats dark band ---------- */
.stats-section { background: linear-gradient(135deg, #0B1B3A 0%, #0842C4 100%); color: #fff; }
.stats-section .section-title, .stats-section .section-desc { color: #fff; }
.stats-section .section-desc { color: #C7D6FF; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-num { font-size: 44px; font-weight: 800; margin-bottom: 8px; }
.stat-lbl { font-size: 14.5px; color: #C7D6FF; }

/* ---------- Comparison table ---------- */
.compare-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
table.compare { width: 100%; border-collapse: collapse; min-width: 680px; }
table.compare th, table.compare td { padding: 18px 24px; text-align: left; font-size: 14.5px; border-bottom: 1px solid var(--line); }
table.compare thead th { background: var(--bg-alt); font-weight: 700; }
table.compare tr:last-child td { border-bottom: none; }
table.compare td:nth-child(2) { color: var(--primary); font-weight: 700; }
.tag-yes { color: var(--green); font-weight: 700; }
.tag-no { color: var(--ink-mute); }

/* ---------- Reviews ---------- */
.reviews-section { background: var(--bg-alt); }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review-card { background: #fff; border-radius: var(--radius-lg); padding: 26px; border: 1px solid var(--line); }
.review-top { 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; }
.review-name { font-size: 14.5px; font-weight: 700; }
.review-role { font-size: 12px; color: var(--ink-mute); }
.stars { display: flex; gap: 2px; color: var(--gold); margin-bottom: 12px; }
.stars svg { width: 15px; height: 15px; fill: currentColor; }
.review-card p { font-size: 14px; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 840px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.faq-item summary {
  padding: 20px 22px; font-weight: 700; font-size: 16px; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex-shrink: 0; width: 10px; height: 10px; border-right: 2px solid var(--ink-mute); border-bottom: 2px solid var(--ink-mute);
  transform: rotate(45deg); transition: transform 0.25s ease;
}
.faq-item details[open] summary::after { transform: rotate(-135deg); }
.faq-item details[open] summary { color: var(--primary); }
.faq-a { padding: 0 22px 20px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.8; }

/* ---------- Download page specific ---------- */
.dl-hero { background: linear-gradient(135deg, var(--primary-light) 0%, #fff 70%); text-align: center; padding: 90px 0 70px; }
.dl-hero h1 { font-size: 42px; font-weight: 800; margin-bottom: 14px; }
.dl-hero p { color: var(--ink-soft); font-size: 17px; max-width: 640px; margin: 0 auto 34px; }
.dl-primary-card { max-width: 640px; margin: 0 auto; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-md); padding: 36px; }
.dl-primary-card .plat-row { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.dl-primary-card .plat-row svg { width: 54px; height: 54px; }
.dl-meta-row { display: flex; gap: 20px; font-size: 13.5px; color: var(--ink-mute); margin-top: 18px; flex-wrap: wrap; justify-content: center; }

.other-platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.op-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.op-card .plat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.op-card svg { width: 36px; height: 36px; }
.op-card h3 { font-size: 17px; font-weight: 700; }
.op-steps { font-size: 13.5px; color: var(--ink-soft); margin: 14px 0 18px; padding-left: 18px; }
.op-steps li { margin-bottom: 4px; }

.steps-list { display: flex; flex-direction: column; gap: 0; max-width: 760px; margin: 0 auto; }
.step-item { display: flex; gap: 22px; padding: 0 0 34px; position: relative; }
.step-item::before { content: ""; position: absolute; left: 21px; top: 46px; bottom: 0; width: 2px; background: var(--line); }
.step-item:last-child::before { display: none; }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--primary-gradient); color: #fff; font-weight: 800; font-size: 17px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step-body h4 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.step-body p { font-size: 14.5px; color: var(--ink-soft); }

.req-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.req-card { background: var(--bg-alt); border-radius: var(--radius-md); padding: 24px; }
.req-card h4 { font-size: 16px; 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 { font-size: 14px; color: var(--ink-soft); display: flex; flex-direction: column; gap: 6px; }

.changelog { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.changelog-item { padding: 22px 26px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.changelog-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; flex-wrap: wrap; gap: 8px; }
.changelog-ver { font-weight: 800; font-size: 17px; color: var(--primary); }
.changelog-date { font-size: 13px; color: var(--ink-mute); }
.changelog-item ul { font-size: 14px; color: var(--ink-soft); padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }

.safe-banner { background: var(--primary-light); border-radius: var(--radius-lg); padding: 30px 36px; display: flex; gap: 18px; align-items: flex-start; }
.safe-banner svg { width: 30px; height: 30px; color: var(--primary); flex-shrink: 0; }
.safe-banner h4 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.safe-banner p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- zh-cn page specific ---------- */
.article-wrap { max-width: 760px; margin: 0 auto; }
.article-wrap h1 { font-size: 36px; font-weight: 800; margin-bottom: 16px; line-height: 1.3; }
.article-lead { font-size: 17px; color: var(--ink-soft); margin-bottom: 40px; }
.article-wrap h2 { font-size: 25px; font-weight: 800; margin: 44px 0 16px; }
.article-wrap h3 { font-size: 19px; font-weight: 700; margin: 28px 0 10px; }
.article-wrap p { font-size: 15.5px; color: var(--ink-soft); margin-bottom: 16px; }
.article-wrap ul { padding-left: 22px; margin-bottom: 16px; }
.article-wrap li { font-size: 15.5px; color: var(--ink-soft); margin-bottom: 8px; list-style: disc; }
.mini-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.mini-table th, .mini-table td { border: 1px solid var(--line); padding: 12px 16px; font-size: 14.5px; text-align: left; }
.mini-table th { background: var(--bg-alt); }
.cta-panel {
  margin-top: 50px; text-align: center; background: var(--primary-gradient); color: #fff;
  border-radius: var(--radius-lg); padding: 46px 30px;
}
.cta-panel h3 { font-size: 26px; font-weight: 800; margin-bottom: 12px; }
.cta-panel p { color: #E4EEFF; margin-bottom: 24px; }
.cta-panel a.btn { background: #fff; color: var(--primary); padding: 15px 40px; font-size: 16px; border-radius: 10px; display: inline-flex; }
.cta-panel a.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.2); }

/* ---------- Footer ---------- */
.site-footer { background: #0D1526; color: #9AA6BF; padding: 56px 24px 30px; }
.footer-inner { max-width: 1180px; margin: 0 auto; text-align: center; }
.footer-safe { display: inline-flex; align-items: center; gap: 8px; background: rgba(23, 166, 115, 0.12); color: #4ADE9A; padding: 10px 22px; border-radius: 100px; font-weight: 700; font-size: 14px; margin-bottom: 22px; }
.footer-safe svg { width: 17px; height: 17px; }
.footer-warn { max-width: 780px; margin: 0 auto 20px; font-size: 13.5px; line-height: 1.8; }
.footer-copy { border-top: 1px solid #223052; padding-top: 20px; font-size: 12.5px; color: #5F6D8C; }

/* ---------- Loading spin ---------- */
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .other-platforms { grid-template-columns: repeat(1, 1fr); }
  .req-grid { grid-template-columns: 1fr; }
  .detail-row { grid-template-columns: 1fr; gap: 28px; }
  .detail-row.reverse { direction: ltr; }
}
@media (max-width: 680px) {
  .hero h1 { font-size: 34px; }
  .section-title { font-size: 27px; }
  .feature-grid, .platform-grid, .stats-grid, .review-grid { grid-template-columns: 1fr; }
  .main-nav a span.lbl { display: none; }
  .nav-cta { display: none; }
  .hero-panel-body { grid-template-columns: 1fr; }
  .hp-side { display: none; }
}
