/* WPS 下载站群第 1 套 — 蓝白官网风 */
:root {
  --blue: #0B5FFF;
  --blue-dark: #0847c7;
  --blue-soft: #e8f0ff;
  --ink: #0A1628;
  --muted: #4a5a70;
  --bg: #F5F8FC;
  --white: #ffffff;
  --line: rgba(11, 95, 255, 0.14);
  --shadow: 0 10px 30px rgba(10, 22, 40, 0.08);
  --radius: 12px;
  --header-h: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, #eef4ff 0%, #F5F8FC 38%, #ffffff 100%),
    repeating-linear-gradient(
      -45deg,
      rgba(11, 95, 255, 0.035) 0,
      rgba(11, 95, 255, 0.035) 1px,
      transparent 1px,
      transparent 14px
    ),
    linear-gradient(rgba(11, 95, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 95, 255, 0.04) 1px, transparent 1px);
  background-size: auto, auto, 28px 28px, 28px 28px;
  background-attachment: fixed;
  line-height: 1.8;
  font-size: 16px;
}

img,
svg {
  max-width: 100%;
  vertical-align: middle;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 0.75em;
}

p {
  margin: 0 0 1em;
  color: var(--muted);
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.05rem;
}

.brand:hover {
  text-decoration: none;
  color: var(--blue);
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.35rem;
}

.nav-links a {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  background: var(--blue-soft);
  color: var(--blue);
  text-decoration: none;
}

.nav-links a.active {
  background: var(--blue);
  color: #fff;
}

main {
  padding-top: var(--header-h);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 46px;
  padding: 0.7rem 1.35rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.75;
  cursor: wait;
  transform: none;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(11, 95, 255, 0.28);
}

.btn-primary:hover {
  background: var(--blue-dark);
  color: #fff;
}

.btn-ghost {
  background: #fff;
  color: var(--blue);
  border-color: rgba(11, 95, 255, 0.35);
}

.btn-ghost:hover {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(11, 95, 255, 0.16), transparent 55%),
    linear-gradient(180deg, #eaf1ff 0%, rgba(245, 248, 252, 0.85) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-kicker {
  display: inline-block;
  padding: 0.28rem 0.7rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.875rem;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  margin-bottom: 1rem;
}

.hero .lead {
  font-size: 1.05rem;
  max-width: 38em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.hero-art {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.78);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 48rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
}

.section-head p {
  font-size: 1.02rem;
}

/* Capability strip */
.cap-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.cap-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.2rem;
  box-shadow: 0 4px 16px rgba(10, 22, 40, 0.04);
}

.cap-card svg {
  width: 36px;
  height: 36px;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.cap-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.cap-card p {
  margin: 0;
  font-size: 0.95rem;
}

/* Platform download */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.platform-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 100%;
}

.platform-card svg {
  width: 40px;
  height: 40px;
  color: var(--blue);
}

.platform-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.platform-card p {
  flex: 1;
  margin: 0;
  font-size: 0.95rem;
}

/* Feature deep dive */
.feature-rows {
  display: grid;
  gap: 1.5rem;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.feature-row.reverse .feature-copy {
  order: 2;
}

.feature-row.reverse .feature-visual {
  order: 1;
}

.feature-visual {
  background: linear-gradient(145deg, #f3f7ff, #ffffff);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 1.25rem;
}

.feature-visual svg {
  width: min(100%, 280px);
  height: auto;
  color: var(--blue);
}

.feature-copy h3 {
  font-size: 1.25rem;
}

/* Reviews */
.review-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.review-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.review-card .meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  color: var(--ink);
  font-weight: 700;
}

.review-card .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.review-card p {
  margin: 0;
  font-size: 0.96rem;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.1rem;
  text-align: center;
}

.stat-card .num {
  display: block;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.stat-card p {
  margin: 0;
  font-size: 0.92rem;
}

/* Comparison table */
.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.compare-table th,
.compare-table td {
  padding: 0.95rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.compare-table th {
  background: #f0f5ff;
  color: var(--ink);
  font-weight: 700;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table td {
  color: var(--muted);
}

.compare-table .hl {
  color: var(--blue);
  font-weight: 700;
}

/* FAQ accordion */
.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 1.25rem;
  font-weight: 700;
  color: var(--ink);
  position: relative;
  padding-right: 2.5rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue);
  font-size: 1.25rem;
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item .faq-body {
  padding: 0 1.25rem 1.15rem;
}

.faq-item .faq-body p {
  margin: 0 0 0.75em;
}

.faq-item .faq-body p:last-child {
  margin-bottom: 0;
}

/* Download page */
.download-hero {
  padding: 3.5rem 0 2.5rem;
}

.download-main {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: start;
}

.download-panel,
.side-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.download-panel h1 {
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
}

.step-list {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.step-list li {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem 1.25rem 1.25rem 4.2rem;
}

.step-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1.1rem;
  top: 1.25rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.step-list h3 {
  margin-bottom: 0.4rem;
  font-size: 1.08rem;
}

.req-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.req-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.3rem;
}

.req-card h3 {
  font-size: 1.08rem;
}

.changelog {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
}

.changelog article {
  padding: 1.25rem 1.4rem;
  border-bottom: 1px solid var(--line);
}

.changelog article:last-child {
  border-bottom: none;
}

.changelog h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.changelog .date {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: var(--blue);
  font-size: 0.875rem;
  font-weight: 700;
}

/* Article / zh-cn */
.article-page {
  padding: 3rem 0 4rem;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
}

.article-body {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2rem 2.2rem;
  box-shadow: var(--shadow);
}

.article-body h1 {
  font-size: clamp(1.7rem, 2.8vw, 2.25rem);
}

.article-body h2 {
  margin-top: 2rem;
  font-size: 1.4rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.article-body h3 {
  margin-top: 1.35rem;
  font-size: 1.12rem;
}

.article-aside {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.article-aside h2 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.article-aside ul {
  margin: 0 0 1.25rem;
  padding-left: 1.1rem;
  color: var(--muted);
}

.article-aside li {
  margin-bottom: 0.4rem;
}

.cta-banner {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #eaf1ff, #ffffff);
  border: 1px solid var(--line);
  text-align: center;
}

.cta-banner p {
  margin-bottom: 1rem;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  padding: 2.5rem 0;
  margin-top: 1rem;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 0.75em;
  font-size: 0.95rem;
}

.site-footer .safe {
  color: #9ec0ff;
  font-weight: 600;
}

.site-footer .copy {
  margin: 0;
  opacity: 0.85;
  font-size: 0.9rem;
}

/* Utilities */
.note {
  font-size: 0.92rem;
  color: var(--muted);
}

.text-ink {
  color: var(--ink);
}

.mb-0 {
  margin-bottom: 0;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .feature-row,
  .feature-row.reverse .feature-copy,
  .feature-row.reverse .feature-visual,
  .download-main,
  .article-layout,
  .req-grid {
    grid-template-columns: 1fr;
  }

  .feature-row.reverse .feature-copy,
  .feature-row.reverse .feature-visual {
    order: initial;
  }

  .cap-strip,
  .platform-grid,
  .review-wall,
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .article-aside {
    position: static;
  }
}

@media (max-width: 640px) {
  .nav-links a {
    padding: 0.4rem 0.55rem;
    font-size: 0.9rem;
  }

  .brand span {
    display: none;
  }

  .cap-strip,
  .platform-grid,
  .review-wall,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 3rem 0 2.5rem;
  }

  .article-body {
    padding: 1.4rem 1.15rem;
  }

  .step-list li {
    padding-left: 3.8rem;
  }
}
