/* WPS Office Corporate Blue Theme */
:root {
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-light: #EFF6FF;
  --accent: #10B981;
  --accent-hover: #059669;
  --text: #1E293B;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --border: #E2E8F0;
  --bg: #FFFFFF;
  --bg-alt: #F8FAFC;
  --shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
  --shadow-hover: 0 8px 28px rgba(37, 99, 235, 0.14);
  --radius: 12px;
  --nav-h: 68px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  padding-top: var(--nav-h);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-hover);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: #fff;
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.logo:hover {
  color: var(--text);
}

.logo svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 14px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.nav-cta {
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  line-height: 1.4;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: var(--shadow-hover);
  color: #fff;
}

.btn-primary:disabled {
  opacity: 0.75;
  cursor: wait;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
  color: var(--primary-hover);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 17px;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  padding: 8px;
  color: var(--text);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(165deg, #EFF6FF 0%, #DBEAFE 40%, #F0F9FF 70%, #EFF6FF 100%);
  padding: 80px 0 90px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero h1 {
  font-size: 42px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.hero .subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-light);
}

/* ---------- Section Commons ---------- */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.section-header p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- Stats ---------- */
.stats {
  padding: 56px 0;
  background: var(--primary);
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item .stat-num {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.stat-item .stat-label {
  font-size: 14px;
  opacity: 0.85;
}

/* ---------- Features Grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s, transform 0.25s;
}

.feature-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ---------- Platforms ---------- */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.platform-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s, transform 0.25s;
}

.platform-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.platform-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.platform-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.platform-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.platform-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
  min-height: 42px;
}

/* ---------- Deep Intro (alternating) ---------- */
.deep-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 72px;
}

.deep-item:last-child {
  margin-bottom: 0;
}

.deep-item.reverse {
  direction: rtl;
}

.deep-item.reverse > * {
  direction: ltr;
}

.deep-visual {
  background: linear-gradient(145deg, var(--primary-light), #DBEAFE);
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  box-shadow: var(--shadow);
}

.deep-visual svg {
  width: 120px;
  height: 120px;
  color: var(--primary);
  opacity: 0.9;
}

.deep-content h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 16px;
}

.deep-content p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.85;
}

.deep-content ul {
  margin-top: 12px;
}

.deep-content li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.deep-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Comparison Table ---------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 14px;
}

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.compare-table th:first-child {
  border-radius: var(--radius) 0 0 0;
}

.compare-table th:last-child {
  border-radius: 0 var(--radius) 0 0;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table tr:hover td {
  background: var(--primary-light);
}

.compare-table .check {
  color: var(--accent);
  font-weight: 700;
}

.compare-table .cross {
  color: #EF4444;
  font-weight: 700;
}

.compare-table .highlight-col {
  background: rgba(37, 99, 235, 0.04);
  font-weight: 600;
}

/* ---------- Reviews ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s;
}

.review-card:hover {
  box-shadow: var(--shadow-hover);
}

.review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 14px;
}

.review-stars svg {
  width: 16px;
  height: 16px;
  color: #F59E0B;
}

.review-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 18px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  font-size: 15px;
}

.review-author strong {
  display: block;
  font-size: 14px;
}

.review-author span {
  font-size: 12px;
  color: var(--text-light);
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background 0.2s;
  color: var(--text);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.25s;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
}

.faq-item summary:hover {
  background: var(--primary-light);
}

.faq-item .faq-body {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.85;
}

.faq-item .faq-body p + p {
  margin-top: 10px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0F172A;
  color: #CBD5E1;
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  margin-top: 14px;
  color: #94A3B8;
}

.footer-brand .logo {
  color: #fff;
}

.footer-col h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col a {
  display: block;
  color: #94A3B8;
  font-size: 14px;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-security {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 14px;
  color: #6EE7B7;
  margin-bottom: 28px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-security svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid #1E293B;
  padding-top: 24px;
  font-size: 13px;
  color: #64748B;
  text-align: center;
  line-height: 1.7;
}

/* ---------- Download Page ---------- */
.page-hero {
  background: linear-gradient(165deg, #EFF6FF 0%, #DBEAFE 50%, #EFF6FF 100%);
  padding: 56px 0 48px;
  text-align: center;
}

.page-hero h1 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.download-featured {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.download-featured h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
}

.meta-item {
  font-size: 13px;
  color: var(--text-muted);
}

.meta-item strong {
  display: block;
  font-size: 15px;
  color: var(--text);
  margin-top: 2px;
}

.req-list {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
}

.download-side {
  text-align: center;
  min-width: 220px;
}

.download-side .platform-icon {
  margin-bottom: 20px;
}

.install-steps {
  counter-reset: step;
}

.install-step {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.install-step h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.install-step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.changelog {
  border-left: 3px solid var(--primary);
  padding-left: 28px;
}

.changelog-item {
  position: relative;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.changelog-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.changelog-item::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--primary-light);
}

.changelog-item .ver {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
}

.changelog-item .date {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 10px;
}

.changelog-item ul {
  list-style: disc;
  padding-left: 18px;
}

.changelog-item li {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.security-box {
  background: linear-gradient(135deg, #ECFDF5, #EFF6FF);
  border: 1px solid #A7F3D0;
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
}

.security-box svg {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 16px;
}

.security-box h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

.security-box p {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ---------- Article (zh-cn) ---------- */
.article-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.article-wrap h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.4;
}

.article-meta {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.article-wrap h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 40px 0 16px;
  color: var(--text);
}

.article-wrap h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 28px 0 12px;
}

.article-wrap p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 16px;
}

.article-wrap ul,
.article-wrap ol {
  margin: 0 0 20px 22px;
  list-style: disc;
}

.article-wrap ol {
  list-style: decimal;
}

.article-wrap li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 8px;
}

.article-cta {
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  margin-top: 48px;
  border: 1px solid #BFDBFE;
}

.article-cta h2 {
  margin-top: 0;
  margin-bottom: 12px;
}

.article-cta p {
  margin-bottom: 24px;
}

.tip-box {
  background: var(--bg-alt);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 24px 0;
}

.tip-box strong {
  color: var(--primary);
  display: block;
  margin-bottom: 6px;
}

.tip-box p {
  margin-bottom: 0;
}

/* ---------- Utility ---------- */
.text-center {
  text-align: center;
}

.mt-24 {
  margin-top: 24px;
}

.mb-24 {
  margin-bottom: 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ---------- Responsive ---------- */
.platforms-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 960px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .platforms-grid,
  .platforms-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .deep-item,
  .deep-item.reverse {
    grid-template-columns: 1fr;
    gap: 28px;
    direction: ltr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .download-featured {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .download-meta {
    justify-content: center;
  }

  .download-side {
    order: -1;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    gap: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 14px 24px;
    border-bottom: none;
    border-left: 3px solid transparent;
  }

  .nav-links a.active {
    border-left-color: var(--primary);
    background: var(--primary-light);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta .btn {
    padding: 8px 14px;
    font-size: 13px;
  }

  .hero {
    padding: 48px 0 56px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero .subtitle {
    font-size: 15px;
  }

  .section {
    padding: 48px 0;
  }

  .section-header h2 {
    font-size: 24px;
  }

  .features-grid,
  .platforms-grid,
  .platforms-grid-3,
  .reviews-grid,
  .stats-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .page-hero h1 {
    font-size: 26px;
  }

  .download-featured {
    padding: 28px 20px;
  }

  .article-wrap h1 {
    font-size: 24px;
  }

  .btn-lg {
    padding: 14px 28px;
    font-size: 15px;
  }
}
