/* ========================================================
   WPS Office 下载站 · 套1（根目录）· 科技渐变风
   ======================================================== */
:root {
  --c-primary: #2f6bff;
  --c-primary-dark: #1b3fd6;
  --c-accent: #7c3aed;
  --c-bg: #f5f7fd;
  --c-surface: #ffffff;
  --c-text: #1c2233;
  --c-text-sub: #5a6178;
  --c-border: #e4e8f5;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(47, 107, 255, 0.10);
  --shadow-sm: 0 4px 14px rgba(28, 34, 51, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.75;
  font-size: 16px;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--c-primary-dark);
}

.brand .logo-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-nav {
  display: flex;
  gap: 8px;
}

.main-nav a {
  position: relative;
  padding: 10px 18px;
  font-weight: 500;
  color: var(--c-text-sub);
  border-radius: 8px;
  transition: color .2s ease, background .2s ease;
}

.main-nav a:hover { color: var(--c-primary-dark); background: #eef2ff; }

.main-nav a.active {
  color: var(--c-primary-dark);
  font-weight: 700;
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 4px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
}

.nav-cta {
  padding: 10px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(47,107,255,0.28);
  transition: transform .2s ease, box-shadow .2s ease;
}

.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(47,107,255,0.35); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 70px;
  background: radial-gradient(1200px 500px at 15% -10%, rgba(124,58,237,0.12), transparent),
              radial-gradient(900px 500px at 90% 0%, rgba(47,107,255,0.14), transparent);
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.5;
}

.hero-flex {
  display: flex;
  align-items: center;
  gap: 56px;
}

.hero-copy { flex: 1.1; }
.hero-visual { flex: 0.9; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--c-primary-dark);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}

h1.hero-title {
  font-size: 42px;
  line-height: 1.35;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #1c2233, #2f4bd6 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  font-size: 17px;
  color: var(--c-text-sub);
  margin-bottom: 28px;
  max-width: 560px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  color: #fff;
  box-shadow: 0 10px 24px rgba(47,107,255,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(47,107,255,0.4); }
.btn-primary:disabled { opacity: .7; cursor: default; transform: none; }

.btn-ghost {
  background: #fff;
  color: var(--c-primary-dark);
  border: 1px solid var(--c-border);
}
.btn-ghost:hover { border-color: var(--c-primary); color: var(--c-primary-dark); }

.hero-stats {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 24px; color: var(--c-primary-dark); }
.hero-stats span { font-size: 13px; color: var(--c-text-sub); }

.hero-visual .device-mock {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  border-radius: 20px;
  background: linear-gradient(160deg, #fff, #eef2ff);
  box-shadow: var(--shadow);
  padding: 22px;
}

/* ---------- Section generic ---------- */
.section { padding: 76px 0; }
.section-alt { background: #fff; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 46px; }
.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-primary-dark);
  background: #eef2ff;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section-head h2 { font-size: 30px; font-weight: 800; margin-bottom: 12px; }
.section-head p { color: var(--c-text-sub); font-size: 15.5px; }

/* ---------- Feature grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.feature-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(47,107,255,0.12), rgba(124,58,237,0.12));
  color: var(--c-primary-dark);
}

.feature-card h3 { font-size: 18px; margin-bottom: 10px; font-weight: 700; }
.feature-card p { color: var(--c-text-sub); font-size: 14.5px; }

/* ---------- Download platforms ---------- */
.platform-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.platform-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.platform-card .icon-badge { margin: 0 auto 16px; }
.platform-card h4 { font-size: 16px; margin-bottom: 6px; }
.platform-card p { font-size: 13px; color: var(--c-text-sub); margin-bottom: 16px; min-height: 40px; }
.platform-card .btn { width: 100%; }

/* ---------- Comparison table ---------- */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.compare-table th, .compare-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--c-border);
  font-size: 14.5px;
}
.compare-table th { background: #f3f6ff; color: var(--c-primary-dark); font-weight: 700; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td.yes { color: #17a34a; font-weight: 700; }
.compare-table td.no { color: #b5b9c6; }

/* ---------- Reviews ---------- */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
}
.review-stars { color: #f5a623; margin-bottom: 12px; display: flex; gap: 2px; }
.review-card p.quote { font-size: 14.5px; color: var(--c-text); margin-bottom: 18px; }
.reviewer { display: flex; align-items: center; gap: 12px; }
.reviewer .avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.reviewer .name { font-weight: 700; font-size: 14px; }
.reviewer .role { font-size: 12.5px; color: var(--c-text-sub); }

/* ---------- Stats band ---------- */
.stats-band {
  background: linear-gradient(135deg, var(--c-primary-dark), var(--c-accent));
  border-radius: 20px;
  padding: 46px 40px;
  color: #fff;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stats-band strong { display: block; font-size: 30px; margin-bottom: 6px; }
.stats-band span { font-size: 13.5px; opacity: .85; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.step-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 30px 22px 24px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; margin-bottom: 16px;
}
.step-card h4 { font-size: 15.5px; margin-bottom: 8px; }
.step-card p { font-size: 13.5px; color: var(--c-text-sub); }

/* ---------- Requirements table ---------- */
.req-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.req-card {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 24px 26px; box-shadow: var(--shadow-sm);
}
.req-card h4 { display:flex; align-items:center; gap:10px; margin-bottom: 14px; font-size: 16px; }
.req-card ul li {
  display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px;
  border-bottom: 1px dashed var(--c-border); color: var(--c-text-sub);
}
.req-card ul li b { color: var(--c-text); font-weight: 600; }
.req-card ul li:last-child { border-bottom: none; }

/* ---------- Changelog ---------- */
.changelog { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.changelog-card { background:#fff; border:1px solid var(--c-border); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow-sm); }
.changelog-card .ver-tag { display:inline-block; padding:4px 10px; border-radius:999px; background:#eef2ff; color:var(--c-primary-dark); font-size:12.5px; font-weight:700; margin-bottom:10px; }
.changelog-card ul { margin-top: 10px; }
.changelog-card ul li { position: relative; padding-left: 18px; font-size: 14px; color: var(--c-text-sub); margin-bottom: 8px; }
.changelog-card ul li::before { content:""; position:absolute; left:0; top:8px; width:6px; height:6px; border-radius:50%; background: var(--c-primary); }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--c-border); border-radius: 12px; padding: 22px 26px; box-shadow: var(--shadow-sm); }
.faq-item h3 { font-size: 16px; margin-bottom: 8px; display: flex; gap: 10px; align-items: flex-start; }
.faq-item h3 .q-mark { flex-shrink:0; width:24px; height:24px; border-radius:7px; background:linear-gradient(135deg,var(--c-primary),var(--c-accent)); color:#fff; display:flex; align-items:center; justify-content:center; font-size:13px; }
.faq-item p { color: var(--c-text-sub); font-size: 14.5px; padding-left: 34px; }

/* ---------- Article (zh-cn page) ---------- */
.article-wrap { max-width: 840px; margin: 0 auto; }
.article-wrap h2 { font-size: 25px; margin: 40px 0 16px; font-weight: 800; }
.article-wrap h2:first-child { margin-top: 0; }
.article-wrap h3 { font-size: 19px; margin: 26px 0 12px; font-weight: 700; color: var(--c-primary-dark); }
.article-wrap p { color: var(--c-text); font-size: 15.5px; margin-bottom: 14px; }
.article-wrap ul { margin: 12px 0 18px; }
.article-wrap ul li { position: relative; padding-left: 22px; margin-bottom: 10px; color: var(--c-text-sub); font-size: 15px; }
.article-wrap ul li::before { content:""; position:absolute; left:0; top:9px; width:7px; height:7px; border-radius:50%; background: var(--c-accent); }
.cta-banner {
  margin: 34px 0; padding: 30px 34px; border-radius: 18px;
  background: linear-gradient(135deg, var(--c-primary-dark), var(--c-accent));
  color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.cta-banner h3 { color: #fff; margin: 0; font-size: 19px; }
.cta-banner p { color: rgba(255,255,255,0.85); margin: 6px 0 0; font-size: 14px; }
.cta-banner .btn-ghost { background:#fff; color: var(--c-primary-dark); border:none; }

/* ---------- Footer ---------- */
.site-footer { background: #12162a; color: #b9bfd6; padding: 56px 0 26px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 34px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 18px; margin-bottom: 14px; }
.footer-grid h5 { color: #fff; font-size: 14.5px; margin-bottom: 16px; }
.footer-grid ul li { margin-bottom: 10px; font-size: 13.5px; }
.footer-grid ul li a:hover { color: #fff; }
.footer-security { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; background: rgba(255,255,255,0.03); margin-bottom: 22px; font-size: 13.5px; color: #d5d9ec; }
.footer-security svg { flex-shrink: 0; color: #22c55e; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 22px; font-size: 12.5px; color: #7c8298; text-align: center; line-height: 1.9; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-40 { margin-top: 40px; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-flex { flex-direction: column; }
  .grid-3, .platform-grid, .review-grid, .req-grid, .changelog, .stats-band, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .main-nav { display: none; }
  h1.hero-title { font-size: 30px; }
  .grid-3, .grid-2, .platform-grid, .review-grid, .req-grid, .changelog, .stats-band, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; align-items: flex-start; }
}
