/* WPS Office 下载导航站 — 深蓝企业官网主题 */
:root {
  --primary: #0B3D91;
  --primary-dark: #072A66;
  --primary-light: #E8EFF8;
  --accent: #E31C23;
  --accent-dark: #B8151C;
  --accent-light: #FDEAEB;
  --ink: #1A2332;
  --text: #2C3544;
  --muted: #5C6678;
  --line: #D4DCE8;
  --white: #FFFFFF;
  --bg: #F7F9FC;
  --shadow: 0 8px 24px rgba(11, 61, 145, 0.10);
  --shadow-sm: 0 2px 8px rgba(11, 61, 145, 0.06);
  --radius: 4px;
  --sans: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(11, 61, 145, 0.03) 0%, transparent 40%),
    linear-gradient(rgba(11, 61, 145, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 61, 145, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px, 32px 32px;
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }

@keyframes spin { to { transform: rotate(360deg); } }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Navigation ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 2px solid var(--primary);
  box-shadow: var(--shadow-sm);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  border-radius: var(--radius);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
}

.nav-links a {
  display: block;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover {
  background: var(--primary-light);
  color: var(--primary);
  text-decoration: none;
}

.nav-links a.active {
  background: var(--primary);
  color: var(--white);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, #051E47 100%);
  color: var(--white);
  padding: 80px 0 88px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 6px 16px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 22px;
  letter-spacing: 0.02em;
}

.hero .lead {
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 36px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-meta {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--sans);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(227, 28, 35, 0.35);
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: var(--white);
}

.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.12);
  color: var(--white);
}

.btn-secondary {
  background: var(--primary);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--primary-dark);
  color: var(--white);
}

.btn-lg { padding: 14px 36px; font-size: 16px; }

.btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

/* ---------- Sections ---------- */
.section {
  padding: 72px 0;
}

.section--white { background: var(--white); }
.section--light { background: var(--primary-light); }
.section--dark {
  background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 48px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section--dark .section-tag { color: rgba(255, 255, 255, 0.7); }

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.35;
  margin-bottom: 16px;
}

.section--dark .section-title { color: var(--white); }

.section-lead {
  font-size: 16.5px;
  color: var(--muted);
  line-height: 1.8;
}

.section--dark .section-lead { color: rgba(255, 255, 255, 0.78); }

/* ---------- Grid & Cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}

.card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
}

/* ---------- Platform Cards ---------- */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.platform-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.platform-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.platform-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  color: var(--primary);
}

.platform-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.platform-card p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.65;
}

/* ---------- Feature Deep Dive ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 56px;
}

.feature-row:last-child { margin-bottom: 0; }

.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }

.feature-text h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 14px;
}

.feature-text p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.8;
}

.feature-visual {
  background: var(--primary-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  color: var(--primary);
}

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial {
  background: var(--white);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.testimonial p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 16px;
  font-style: italic;
}

.testimonial-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.testimonial-role {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  text-align: center;
  padding: 32px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
}

.stat-number {
  font-size: 40px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- Comparison Table ---------- */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.compare-table th {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
}

.compare-table tr:last-child td { border-bottom: none; }

.compare-table tr:nth-child(even) td { background: var(--primary-light); }

.check { color: var(--accent); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; margin: 0 auto; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--accent);
  font-weight: 400;
}

.faq-item[open] summary::after { content: "\2212"; }

.faq-item summary:hover { background: var(--primary-light); }

.faq-item .faq-answer {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
}

/* ---------- Download Page ---------- */
.download-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}

.download-hero h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}

.download-hero p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin: 0 auto;
}

.main-download {
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  box-shadow: var(--shadow);
  max-width: 720px;
  margin: 0 auto;
}

.main-download h2 {
  font-size: 26px;
  color: var(--primary);
  margin-bottom: 12px;
}

.main-download p {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 15px;
  line-height: 1.75;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step-card {
  text-align: center;
  padding: 28px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-num {
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 14px;
}

.step-card h3 {
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 8px;
}

.step-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.req-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.req-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.req-block h3 {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}

.req-block ul {
  list-style: none;
  padding: 0;
}

.req-block li {
  font-size: 15px;
  color: var(--muted);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  line-height: 1.65;
}

.req-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.changelog {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

.changelog h3 {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 10px;
  margin-top: 24px;
}

.changelog h3:first-child { margin-top: 0; }

.changelog p, .changelog li {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
}

.changelog ul { padding-left: 20px; margin-top: 8px; }

/* ---------- Article (zh-cn) ---------- */
.article-wrap {
  max-width: 820px;
  margin: 0 auto;
}

.article-wrap h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
  margin: 48px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}

.article-wrap h2:first-of-type { margin-top: 0; }

.article-wrap h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-dark);
  margin: 32px 0 12px;
}

.article-wrap p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 16px;
}

.article-wrap ul, .article-wrap ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.article-wrap li {
  font-size: 16px;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 8px;
}

.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  margin: 48px 0;
}

.cta-banner h3 {
  font-size: 24px;
  color: var(--white);
  margin-bottom: 12px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 48px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-block h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-block p, .footer-block li {
  font-size: 14px;
  line-height: 1.7;
}

.footer-block ul { list-style: none; }

.footer-block a { color: rgba(255, 255, 255, 0.75); }
.footer-block a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-3, .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-grid, .stats-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.reverse { direction: ltr; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .grid-3, .grid-2, .testimonial-grid, .platform-grid,
  .stats-grid, .steps-grid, .req-grid, .footer-inner {
    grid-template-columns: 1fr;
  }
  .nav-links a { padding: 8px 12px; font-size: 14px; }
  .section { padding: 52px 0; }
  .main-download { padding: 32px 20px; }
}
