/* ============================================================
   WPS Office 安全下载站 · Set 1 · Corporate Blue SaaS
   ============================================================ */
:root {
  --primary: #1a56db;
  --primary-dark: #0e3a8c;
  --primary-light: #e8f0fe;
  --primary-muted: #dbeafe;
  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --bg-white: #ffffff;
  --bg-light: #f4f7fc;
  --border: #e2e8f0;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 8px 28px rgba(15, 23, 42, 0.1);
  --radius: 8px;
  --container: 1180px;
  --header-h: 64px;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text-main);
  background: var(--bg-light);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-dark);
  flex-shrink: 0;
}

.logo svg { width: 34px; height: 34px; flex-shrink: 0; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  border-left: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.main-nav a:hover {
  color: var(--primary);
}

.main-nav a.active {
  color: var(--primary);
  border-left-color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  color: var(--text-main);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(26, 86, 219, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary-light);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }

/* ---------- Main offset for fixed header ---------- */
main { padding-top: var(--header-h); }

/* ---------- Section utilities ---------- */
section { padding: 72px 0; }

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 16px;
  color: var(--text-secondary);
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: var(--radius);
  margin-bottom: 12px;
}

.bg-white { background: var(--bg-white); }
.bg-light { background: var(--bg-light); }

/* ---------- Hero (index) ---------- */
.hero {
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 50%, var(--primary-light) 100%);
  padding: 56px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content h1 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-content h1 span { color: var(--primary); }

.hero-slogan {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.hero-badge svg { width: 16px; height: 16px; color: var(--primary); }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual svg {
  width: 100%;
  max-width: 520px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(14, 58, 140, 0.15));
}

/* ---------- Stats strip ---------- */
.stats-strip {
  background: var(--primary-dark);
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item { color: #fff; }

.stat-number {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 14px;
  opacity: 0.85;
}

/* ---------- Feature cards ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.card-icon svg { width: 24px; height: 24px; }

.card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-main);
}

.card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- Deep dive alternating ---------- */
.deep-dive-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 64px;
}

.deep-dive-item:last-child { margin-bottom: 0; }

.deep-dive-item.reverse .deep-dive-text { order: 2; }
.deep-dive-item.reverse .deep-dive-visual { order: 1; }

.deep-dive-text h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-main);
}

.deep-dive-text p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.deep-dive-text ul {
  margin-top: 16px;
}

.deep-dive-text li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.deep-dive-text li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

.deep-dive-visual {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.deep-dive-visual svg { width: 100%; max-width: 360px; height: auto; }

/* ---------- Platform downloads ---------- */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.platform-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.platform-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius);
}

.platform-icon svg { width: 28px; height: 28px; }

.platform-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.platform-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  min-height: 40px;
}

.platform-card .btn { width: 100%; }

/* ---------- Comparison table ---------- */
.comparison-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  font-size: 14px;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table thead th {
  background: var(--primary-dark);
  color: #fff;
  font-weight: 600;
}

.comparison-table thead th:first-child { border-radius: var(--radius) 0 0 0; }
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:nth-child(even) { background: var(--bg-light); }

.comparison-table .check { color: var(--primary); font-weight: 700; }
.comparison-table .cross { color: var(--text-muted); }

/* ---------- Reviews ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 12px;
  color: #f59e0b;
}

.review-stars svg { width: 16px; height: 16px; }

.review-text {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}

.review-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.review-role {
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--primary);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item[open] summary::after { content: "−"; }

.faq-item .faq-answer {
  padding: 0 24px 18px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.9);
  padding: 40px 0 32px;
}

.footer-inner { text-align: center; }

.footer-security {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 20px;
}

.footer-security svg { width: 18px; height: 18px; flex-shrink: 0; }

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-nav a {
  font-size: 14px;
  opacity: 0.85;
}

.footer-nav a:hover { opacity: 1; text-decoration: underline; }

.footer-disclaimer {
  font-size: 13px;
  opacity: 0.75;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---------- Download page ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--bg-white) 100%);
  padding: 48px 0 56px;
  text-align: center;
}

.page-hero h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-main);
}

.page-hero p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 24px;
}

.download-hero-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  max-width: 640px;
  margin: 32px auto 0;
  text-align: left;
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.download-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.download-meta svg { width: 16px; height: 16px; color: var(--primary); }

.download-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.download-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.download-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.download-card h3 svg { width: 24px; height: 24px; color: var(--primary); }

.download-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.steps-list {
  counter-reset: step;
  max-width: 720px;
  margin: 0 auto;
}

.step-item {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.step-item::before {
  counter-increment: step;
  content: counter(step);
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.step-content p {
  font-size: 14px;
  color: var(--text-secondary);
}

.req-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.req-item {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.req-item h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.req-item ul li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.req-item ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
}

.changelog-list { max-width: 800px; margin: 0 auto; }

.changelog-item {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary);
}

.changelog-item h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.changelog-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.changelog-item ul li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 3px 0;
  padding-left: 16px;
  position: relative;
}

.changelog-item ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--primary);
}

.security-box {
  background: var(--primary-light);
  border: 1px solid var(--primary-muted);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.security-box h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.security-box p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* ---------- zh-cn article page ---------- */
.article-page { background: var(--bg-white); }

.article-header {
  background: linear-gradient(180deg, var(--primary-light), var(--bg-white));
  padding: 48px 0 32px;
  text-align: center;
}

.article-header h1 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 12px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.article-meta {
  font-size: 14px;
  color: var(--text-muted);
}

.article-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.article-body h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 40px 0 16px;
  color: var(--primary-dark);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
}

.article-body h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 28px 0 12px;
}

.article-body p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.85;
  text-align: justify;
}

.article-body ul,
.article-body ol {
  margin: 0 0 20px 24px;
}

.article-body li {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.75;
}

.article-cta {
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  margin-top: 48px;
  border: 1px solid var(--primary-muted);
}

.article-cta h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.article-cta p {
  text-align: center;
  margin-bottom: 20px;
}

.inline-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

.inline-table th,
.inline-table td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}

.inline-table th {
  background: var(--primary-light);
  font-weight: 600;
}

.tip-box {
  background: var(--bg-light);
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.tip-box p { margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { order: -1; }
  .hero-content h1 { font-size: 34px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .deep-dive-item,
  .deep-dive-item.reverse { grid-template-columns: 1fr; }
  .deep-dive-item.reverse .deep-dive-text,
  .deep-dive-item.reverse .deep-dive-visual { order: unset; }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .download-cards-grid { grid-template-columns: 1fr; }
  .two-col-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .main-nav.open { display: flex; }

  .main-nav a {
    width: 100%;
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 12px 16px;
  }

  .main-nav a.active {
    border-left: 3px solid var(--primary);
    border-bottom: none;
  }

  .site-header .container { position: relative; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .req-list { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
  .section-header h2 { font-size: 26px; }
  .hero-content h1 { font-size: 28px; }
  .page-hero h1 { font-size: 28px; }
  .article-header h1 { font-size: 26px; }
}
