/* 企业蓝经典官网 — WPS Office 下载引导站 */
:root {
  --navy: #0B3D91;
  --navy-deep: #072C6B;
  --navy-soft: #1A56B0;
  --sky: #E8F1FF;
  --sky-mid: #D4E5FC;
  --ink: #1A2332;
  --ink-soft: #3A4658;
  --muted: #5C6B7A;
  --accent: #C9A227;
  --accent-soft: #E8D48A;
  --white: #FFFFFF;
  --line: #D5E0F0;
  --shadow: 0 10px 28px rgba(11, 61, 145, 0.08);
  --radius: 6px;
  --max: 1120px;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --font-display: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.75;
  font-size: 16px;
  letter-spacing: 0.02em;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--navy);
  text-decoration: none;
}

a:hover {
  color: var(--navy-soft);
  text-decoration: underline;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.35;
  letter-spacing: 0.06em;
  font-weight: 700;
  margin: 0 0 0.75em;
}

h1 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
}

h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
}

h3 {
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

p {
  margin: 0 0 1em;
  color: var(--ink-soft);
}

ul,
ol {
  margin: 0 0 1.2em;
  padding-left: 1.35em;
  color: var(--ink-soft);
}

li {
  margin-bottom: 0.45em;
}

.container {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

/* Sticky Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  color: var(--navy-deep);
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  display: inline-block;
  padding: 8px 2px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: transparent;
  transition: background 0.2s ease;
}

.nav-links a:hover {
  color: var(--navy);
  text-decoration: none;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  background: var(--accent);
}

.nav-links a.active {
  color: var(--navy);
}

/* Hero */
.hero {
  position: relative;
  background:
    linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 48%, var(--navy-soft) 100%);
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(201, 162, 39, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 90%, rgba(232, 241, 255, 0.08), transparent 50%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-soft), var(--accent), transparent);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 88px 0 92px;
}

.hero-eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(201, 162, 39, 0.65);
  color: var(--accent-soft);
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  font-weight: 600;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 18px;
  max-width: 18em;
}

.hero .lead {
  max-width: 42em;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.75;
  cursor: wait;
  transform: none;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-soft);
  color: var(--ink);
  border-color: var(--accent-soft);
}

.btn-light {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn-light:hover {
  background: var(--sky);
  color: var(--navy-deep);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: var(--white);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-navy:hover {
  background: var(--navy-deep);
  color: var(--white);
}

.btn-ghost {
  background: var(--sky);
  color: var(--navy);
  border-color: var(--sky-mid);
}

.btn-ghost:hover {
  background: var(--sky-mid);
  color: var(--navy-deep);
}

/* Sections */
.section {
  padding: 78px 0;
}

.section-alt {
  background: var(--sky);
}

.section-head {
  margin-bottom: 36px;
  max-width: 46em;
}

.section-head .gold-line {
  width: 56px;
  height: 3px;
  background: var(--accent);
  margin: 0 0 18px;
}

.section-head p {
  font-size: 1.02rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose + .prose {
  margin-top: 1.2em;
}

/* Capability / Feature blocks */
.stack-blocks {
  display: grid;
  gap: 28px;
}

.block {
  padding: 8px 0 4px;
  border-top: 1px solid var(--line);
}

.section-alt .block {
  border-top-color: #c7d7ef;
}

.block:first-child {
  border-top: none;
  padding-top: 0;
}

.block-title {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.block-title .icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--navy);
  margin-top: 2px;
}

.block-title h3 {
  margin: 0;
  padding-top: 6px;
}

/* Platform download grid */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 28px;
}

.platform-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.platform-item:nth-child(-n + 2) {
  border-top: 1px solid var(--line);
}

.platform-item h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.platform-item h3 svg {
  width: 22px;
  height: 22px;
  color: var(--navy);
}

.platform-item p {
  margin-bottom: 16px;
}

.platform-item .btn {
  width: 100%;
  max-width: 280px;
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 28px 0 8px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  text-align: left;
}

.stat .num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--navy);
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-bottom: 6px;
}

.stat .label {
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

/* Comparison table */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 8px;
  font-size: 0.96rem;
}

.compare-table th,
.compare-table td {
  border: 1px solid var(--line);
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}

.compare-table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.compare-table tr:nth-child(even) td {
  background: #f7faff;
}

.compare-table td:first-child {
  font-weight: 600;
  color: var(--ink);
  width: 22%;
}

/* Reviews */
.review-list {
  display: grid;
  gap: 26px;
}

.review {
  padding: 8px 0 4px;
  border-left: 3px solid var(--accent);
  padding-left: 18px;
}

.review .quote {
  font-size: 1.02rem;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.review .meta {
  color: var(--navy);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}

.review .meta span {
  color: var(--muted);
  font-weight: 400;
  margin-left: 8px;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 22px;
}

.faq-item {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.faq-item h3 {
  margin-bottom: 8px;
  color: var(--navy);
  font-family: var(--font-body);
  letter-spacing: 0.03em;
}

.faq-item p {
  margin-bottom: 0.65em;
}

.faq-item p:last-child {
  margin-bottom: 0;
}

/* Download zone */
.download-zone {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}

.download-zone h2 {
  margin-bottom: 10px;
}

.download-main-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 8px;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  position: relative;
  padding: 0 0 22px 52px;
  margin: 0;
  border-left: 2px solid var(--sky-mid);
}

.steps li:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -15px;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
}

.steps h3 {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: 1.05rem;
}

.req-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 36px;
}

.req-block h3 {
  color: var(--navy);
  margin-bottom: 10px;
}

.changelog {
  padding-left: 1.2em;
}

.changelog li {
  margin-bottom: 0.7em;
}

/* Article (zh-cn) */
.article {
  padding: 56px 0 40px;
}

.article-hero-band {
  background: linear-gradient(180deg, var(--sky) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--line);
}

.article .article-meta {
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

.article h1 {
  max-width: 16em;
  margin-bottom: 16px;
}

.article .lead {
  font-size: 1.08rem;
  max-width: 46em;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.article-body h2 {
  margin-top: 2.2em;
  padding-top: 0.4em;
  border-top: 1px solid var(--line);
}

.article-body h2:first-of-type {
  margin-top: 1.4em;
}

.article-body h3 {
  margin-top: 1.4em;
  color: var(--navy);
}

.cta-band {
  margin: 36px 0;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cta-band p {
  margin-bottom: 16px;
}

.cta-band .btn {
  margin-right: 10px;
  margin-bottom: 8px;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  padding: 48px 0 36px;
  margin-top: 0;
}

.site-footer a {
  color: var(--accent-soft);
}

.site-footer a:hover {
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}

.site-footer h3 {
  color: var(--white);
  font-size: 1rem;
  font-family: var(--font-body);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  margin-bottom: 0.7em;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.03em;
}

.footer-bottom p {
  color: inherit;
  margin-bottom: 0.5em;
}

.gold-rule {
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin: 0 0 14px;
}

/* Loading spinner used by download.js */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .platform-grid,
  .req-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
  }

  .platform-item:nth-child(-n + 2) {
    border-top: none;
  }

  .platform-item:first-child {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0;
    min-height: 0;
    gap: 8px;
  }

  .nav-links {
    gap: 6px 18px;
    flex-wrap: wrap;
  }

  .hero-inner {
    padding: 64px 0 72px;
  }

  .section {
    padding: 56px 0;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .download-zone {
    padding: 24px 18px;
  }

  .compare-table {
    display: block;
    overflow-x: auto;
  }
}
