/* WPS Office web hub — indigo product landing */
:root {
  --hub-indigo: #312e81;
  --hub-indigo-soft: #eef2ff;
  --hub-ink: #1e1b4b;
  --hub-muted: #475569;
  --hub-line: #c7d2fe;
  --hub-white: #ffffff;
  --hub-radius: 16px;
  --hub-max: 1080px;
  --hub-shadow: 0 12px 32px rgba(49, 46, 129, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--hub-ink);
  background: var(--hub-white);
}

a {
  color: var(--hub-indigo);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img,
svg {
  max-width: 100%;
  vertical-align: middle;
}

.hub-wrap {
  width: min(100% - 32px, var(--hub-max));
  margin-inline: auto;
}

/* Header: brand row, then nav */
.hub-header {
  padding: 28px 0 12px;
  background: var(--hub-white);
  border-bottom: 1px solid var(--hub-line);
}

.hub-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--hub-indigo);
}

.hub-brand svg {
  width: 36px;
  height: 36px;
}

.hub-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  padding-bottom: 8px;
}

.hub-nav a {
  color: var(--hub-muted);
  font-weight: 600;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.hub-nav a:hover,
.hub-nav a.active {
  color: var(--hub-indigo);
  text-decoration: none;
  border-bottom-color: var(--hub-indigo);
}

/* Hero full-bleed indigo */
.hub-hero {
  background: var(--hub-indigo);
  color: var(--hub-white);
  padding: 56px 0 96px;
}

.hub-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  line-height: 1.35;
  font-weight: 700;
  max-width: 18em;
}

.hub-hero-lead {
  margin: 0 0 28px;
  max-width: 42em;
  font-size: 1.05rem;
  opacity: 0.95;
}

.hub-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--hub-radius);
  font-weight: 700;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hub-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--hub-shadow);
}

.hub-btn-primary {
  background: var(--hub-white);
  color: var(--hub-indigo);
}

.hub-btn-ghost {
  background: transparent;
  color: var(--hub-white);
  border-color: rgba(255, 255, 255, 0.55);
}

.hub-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hub-btn-solid {
  background: var(--hub-indigo);
  color: var(--hub-white);
}

.hub-btn-outline {
  background: var(--hub-white);
  color: var(--hub-indigo);
  border-color: var(--hub-line);
}

/* Product tiles overlapping hero */
.hub-tiles {
  margin-top: -52px;
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
  z-index: 2;
}

.hub-tile {
  background: var(--hub-white);
  border: 1px solid var(--hub-line);
  border-radius: var(--hub-radius);
  padding: 22px 18px;
  box-shadow: var(--hub-shadow);
}

.hub-tile svg {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  color: var(--hub-indigo);
}

.hub-tile h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--hub-indigo);
}

.hub-tile p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--hub-muted);
}

/* Sections alternating */
.hub-section {
  padding: 52px 0;
}

.hub-section-alt {
  background: var(--hub-indigo-soft);
}

.hub-section h2 {
  margin: 0 0 14px;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  color: var(--hub-indigo);
  line-height: 1.35;
}

.hub-section .hub-intro {
  margin: 0 0 24px;
  max-width: 48em;
  color: var(--hub-muted);
}

.hub-section p {
  margin: 0 0 14px;
}

.hub-section p:last-child {
  margin-bottom: 0;
}

/* Compare cards */
.hub-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.hub-card {
  background: var(--hub-white);
  border-radius: var(--hub-radius);
  padding: 20px 18px;
  border: 1px solid var(--hub-line);
}

.hub-section-alt .hub-card {
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(49, 46, 129, 0.08);
}

.hub-card h3 {
  margin: 0 0 10px;
  font-size: 1.02rem;
  color: var(--hub-indigo);
}

.hub-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--hub-muted);
}

/* News with big numbers */
.hub-news {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.hub-news-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--hub-line);
}

.hub-news-item:last-child {
  border-bottom: none;
}

.hub-news-num {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--hub-indigo);
  letter-spacing: 0.04em;
}

.hub-news-meta {
  font-size: 0.85rem;
  color: var(--hub-muted);
  margin: 0 0 6px;
}

.hub-news-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--hub-ink);
}

.hub-news-desc {
  margin: 0;
  color: var(--hub-muted);
  font-size: 0.95rem;
}

/* Download banners 4-col */
.hub-banners {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.hub-banner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 18px;
  border-radius: var(--hub-radius);
  background: var(--hub-white);
  border: 1px solid var(--hub-line);
  min-height: 160px;
}

.hub-section-alt .hub-banner {
  background: var(--hub-indigo);
  border-color: transparent;
  color: var(--hub-white);
}

.hub-section-alt .hub-banner h3 {
  color: var(--hub-white);
}

.hub-section-alt .hub-banner p {
  color: rgba(255, 255, 255, 0.9);
}

.hub-banner h3 {
  margin: 0;
  font-size: 1.08rem;
  color: var(--hub-indigo);
}

.hub-banner p {
  margin: 0;
  flex: 1;
  font-size: 0.92rem;
  color: var(--hub-muted);
}

.hub-banner .hub-btn {
  align-self: flex-start;
}

.hub-section-alt .hub-banner .hub-btn-primary {
  background: var(--hub-white);
  color: var(--hub-indigo);
}

/* Steps / requirements */
.hub-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.hub-step {
  background: var(--hub-white);
  border-radius: var(--hub-radius);
  padding: 20px;
  border: 1px solid var(--hub-line);
}

.hub-step h3 {
  margin: 0 0 10px;
  color: var(--hub-indigo);
  font-size: 1.05rem;
}

.hub-req-list {
  margin: 0;
  padding-left: 1.2em;
  color: var(--hub-muted);
}

.hub-req-list li {
  margin-bottom: 8px;
}

/* Feedback quotes */
.hub-quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.hub-quote {
  background: var(--hub-white);
  border-left: 4px solid var(--hub-indigo);
  border-radius: 0 var(--hub-radius) var(--hub-radius) 0;
  padding: 18px 16px;
}

.hub-quote p {
  margin: 0 0 10px;
  color: var(--hub-muted);
}

.hub-quote cite {
  font-style: normal;
  font-size: 0.88rem;
  color: var(--hub-indigo);
  font-weight: 600;
}

/* FAQ large bordered box */
.hub-faq-box {
  border: 2px solid var(--hub-indigo);
  border-radius: var(--hub-radius);
  padding: 8px 24px 24px;
  background: var(--hub-white);
}

.hub-faq-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--hub-line);
}

.hub-faq-item:last-child {
  border-bottom: none;
}

.hub-faq-item h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: var(--hub-indigo);
}

.hub-faq-item p {
  margin: 0 0 10px;
  color: var(--hub-muted);
}

.hub-faq-item p:last-child {
  margin-bottom: 0;
}

/* Prose blocks for zh-cn */
.hub-prose {
  max-width: 46em;
}

.hub-prose p {
  margin: 0 0 16px;
}

.hub-cta-inline {
  margin-top: 24px;
}

/* Footer */
.hub-footer {
  background: var(--hub-ink);
  color: rgba(255, 255, 255, 0.85);
  padding: 36px 0 40px;
  margin-top: 20px;
}

.hub-footer p {
  margin: 0 0 12px;
  font-size: 0.92rem;
  line-height: 1.7;
}

.hub-footer p:last-child {
  margin-bottom: 0;
}

.hub-safe {
  color: #c7d2fe;
  font-weight: 600;
}

/* Narrow single column */
@media (max-width: 900px) {
  .hub-tiles,
  .hub-cards,
  .hub-banners,
  .hub-quotes {
    grid-template-columns: 1fr 1fr;
  }

  .hub-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hub-hero {
    padding: 40px 0 72px;
  }

  .hub-tiles,
  .hub-cards,
  .hub-banners,
  .hub-quotes {
    grid-template-columns: 1fr;
  }

  .hub-tiles {
    margin-top: -36px;
  }

  .hub-news-item {
    grid-template-columns: 56px 1fr;
  }

  .hub-news-num {
    font-size: 1.6rem;
  }

  .hub-faq-box {
    padding: 4px 16px 16px;
  }

  .hub-cta-row {
    flex-direction: column;
  }

  .hub-btn {
    width: 100%;
  }
}
