/* WPS Office Landing Site - 智能效率蓝 Theme */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #0B5FFF;
  --primary-dark: #0948CC;
  --primary-light: #E8F0FF;
  --bg-light: #F0F4FA;
  --text-dark: #0F172A;
  --text-muted: #475569;
  --white: #FFFFFF;
  --border: #CBD5E1;
  --shadow: 0 4px 24px rgba(11, 95, 255, 0.08);
  --radius: 8px;
  --nav-height: 64px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

/* Navigation */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(15, 23, 42, 0.04);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.01em;
}

.nav-brand svg {
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0B5FFF 0%, #0948CC 40%, #0F172A 100%);
  color: var(--white);
  padding: 100px 24px 120px;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(255,255,255,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(100,180,255,0.15) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 60% 80%, rgba(11,95,255,0.3) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}

.hero-brand {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 640px;
  margin: 0 auto 36px;
  letter-spacing: 0.04em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  letter-spacing: 0.03em;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.btn-primary:hover {
  background: #F8FAFF;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

.btn-blue {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-blue:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--primary-light);
  color: var(--primary);
}

.btn-secondary:hover {
  background: #D6E6FF;
}

/* Sections */
.section {
  padding: 80px 24px;
}

.section-white {
  background: var(--white);
}

.section-light {
  background: var(--bg-light);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 680px;
  margin: 0 auto;
}

/* Feature rows */
.feature-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.feature-row:last-child {
  border-bottom: none;
}

.feature-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.feature-text h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.feature-text p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Platform grid */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.platform-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.platform-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.platform-item svg {
  color: var(--primary);
  margin-bottom: 16px;
}

.platform-item h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.platform-item p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 20px;
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  text-align: center;
}

.stat-item .stat-num {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.stat-item .stat-label {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 4px;
}

/* Testimonials */
.testimonial {
  border-left: 4px solid var(--primary);
  padding: 20px 24px;
  margin-bottom: 28px;
  background: var(--white);
}

.section-light .testimonial {
  background: var(--white);
}

.testimonial blockquote {
  font-size: 1rem;
  color: var(--text-dark);
  font-style: italic;
  margin-bottom: 12px;
  line-height: 1.8;
}

.testimonial cite {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: normal;
}

/* Comparison table */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
}

.compare-table th,
.compare-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  background: var(--primary-light);
  color: var(--text-dark);
  font-weight: 600;
}

.compare-table tr:hover td {
  background: rgba(11, 95, 255, 0.03);
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-item summary {
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.02em;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "+";
  color: var(--primary);
  font-weight: 700;
  font-size: 1.2rem;
  width: 20px;
}

.faq-item[open] summary::before {
  content: "−";
}

.faq-item .faq-answer {
  padding: 12px 0 4px 30px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Article (zh-cn) */
.article-content {
  max-width: 780px;
  margin: 0 auto;
}

.article-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 48px 0 16px;
  color: var(--text-dark);
  letter-spacing: 0.03em;
}

.article-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--text-dark);
}

.article-content p {
  margin-bottom: 18px;
  color: var(--text-muted);
  line-height: 1.85;
}

.article-content ul {
  margin: 16px 0 24px 24px;
  color: var(--text-muted);
}

.article-content li {
  margin-bottom: 8px;
}

.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 48px 32px;
  border-radius: var(--radius);
  text-align: center;
  margin: 48px 0;
}

.cta-banner h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--white);
}

.cta-banner p {
  opacity: 0.9;
  margin-bottom: 24px;
  color: var(--white);
}

/* Download page specifics */
.download-hero-card {
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: 12px;
  padding: 48px 32px;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

.download-hero-card h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.download-hero-card p {
  color: var(--text-muted);
  margin-bottom: 28px;
}

.steps-list {
  counter-reset: step;
  max-width: 700px;
  margin: 0 auto;
}

.step-item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.step-item:last-child {
  border-bottom: none;
}

.step-num {
  counter-increment: step;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.step-num::before {
  content: counter(step);
}

.step-content h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.step-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.req-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.req-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.req-block h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--primary);
}

.req-block ul {
  list-style: none;
  color: var(--text-muted);
}

.req-block li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.req-block li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* Footer */
.site-footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.75);
  padding: 48px 24px 32px;
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-inner p {
  margin-bottom: 12px;
}

.footer-inner a {
  color: rgba(255,255,255,0.9);
}

.footer-inner a:hover {
  color: var(--white);
}

.footer-copy {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Spin animation for download loading */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    gap: 20px;
  }

  .hero {
    padding: 72px 20px 88px;
  }

  .section {
    padding: 56px 20px;
  }

  .feature-row {
    flex-direction: column;
    gap: 16px;
  }

  .compare-table {
    font-size: 0.88rem;
  }

  .compare-table th,
  .compare-table td {
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  .nav-inner {
    padding: 0 16px;
  }

  .nav-links {
    gap: 14px;
    font-size: 0.85rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}
