/* WPS Colleague SET 1 — Classic Official Enterprise */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0A3A7A;
  --navy-dark: #072952;
  --navy-light: #0E4A96;
  --navy-muted: rgba(10, 58, 122, 0.08);
  --white: #ffffff;
  --gray-50: #f4f6f9;
  --gray-100: #e8ecf2;
  --gray-200: #cdd5df;
  --gray-400: #7a8799;
  --gray-600: #4a5568;
  --gray-800: #2c3440;
  --shadow: 0 4px 20px rgba(10, 58, 122, 0.1);
  --radius: 6px;
  --max-w: 1160px;
}

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--gray-800);
  background-color: var(--gray-50);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 28px,
      rgba(10, 58, 122, 0.025) 28px,
      rgba(10, 58, 122, 0.025) 29px
    ),
    linear-gradient(180deg, var(--gray-50) 0%, #e4e9f0 100%);
  pointer-events: none;
  z-index: -1;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--navy-light); }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(10, 58, 122, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--navy);
}

.logo svg { width: 34px; height: 34px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--navy);
  cursor: pointer;
  padding: 8px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 36px;
}

.main-nav a {
  color: var(--gray-600);
  font-size: 0.94rem;
  font-weight: 500;
  padding: 22px 0 20px;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.main-nav a:hover { color: var(--navy); }

.main-nav a.active {
  color: var(--navy);
  border-bottom-color: var(--navy);
  font-weight: 600;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 56px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

.hero-text h1 {
  font-size: 2rem;
  line-height: 1.35;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.hero-tag {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
}

.hero-lead {
  font-size: 0.95rem;
  line-height: 1.8;
  opacity: 0.92;
  margin-bottom: 14px;
}

.hero-cta-panel {
  background: var(--white);
  color: var(--gray-800);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.hero-cta-panel h2 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.hero-cta-panel p {
  font-size: 0.88rem;
  color: var(--gray-600);
  margin-bottom: 18px;
}

.hero-cta-panel .btn { width: 100%; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(10, 58, 122, 0.3);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-secondary:hover {
  background: var(--navy-muted);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.86rem;
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

.section-header h2 {
  font-size: 1.65rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* Feature Grid — 3 columns */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--navy);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--navy-muted);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--navy);
}

.feature-icon svg { width: 24px; height: 24px; }

.feature-card h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.75;
}

/* Prose Bands — alternating full-width */
.prose-band {
  padding: 48px 0;
}

.prose-band:nth-child(even) {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.prose-band-inner {
  max-width: 860px;
  margin: 0 auto;
}

.prose-band h2 {
  font-size: 1.45rem;
  color: var(--navy);
  margin-bottom: 16px;
}

.prose-band h3 {
  font-size: 1.1rem;
  color: var(--navy-dark);
  margin: 24px 0 10px;
}

.prose-band p {
  font-size: 0.94rem;
  color: var(--gray-600);
  margin-bottom: 14px;
  line-height: 1.85;
}

/* Platform Grid */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.platform-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
  transition: border-color 0.2s;
}

.platform-card:hover { border-color: var(--navy); }

.platform-card svg {
  width: 36px;
  height: 36px;
  color: var(--navy);
  margin: 0 auto 12px;
}

.platform-card h3 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.platform-card p {
  font-size: 0.82rem;
  color: var(--gray-400);
  margin-bottom: 14px;
}

/* Reviews */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--white);
  border-left: 4px solid var(--navy);
  padding: 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: 0 2px 10px rgba(10, 58, 122, 0.05);
}

.review-card blockquote {
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 14px;
  font-style: normal;
}

.review-card cite {
  font-size: 0.84rem;
  color: var(--navy);
  font-style: normal;
  font-weight: 600;
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px 16px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.86rem;
  color: var(--gray-600);
  margin-top: 6px;
}

/* Comparison Table */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(10, 58, 122, 0.06);
}

.compare-table th,
.compare-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.9rem;
}

.compare-table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
}

.compare-table tr:last-child td { border-bottom: none; }

.compare-table td:first-child { font-weight: 600; color: var(--navy); }

/* FAQ — definition list style */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-list dl {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.faq-list dt {
  padding: 18px 24px;
  font-weight: 600;
  color: var(--navy);
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.96rem;
}

.faq-list dd {
  padding: 16px 24px 20px;
  color: var(--gray-600);
  font-size: 0.92rem;
  line-height: 1.8;
  border-bottom: 1px solid var(--gray-200);
}

.faq-list dl dd:last-child { border-bottom: none; }

/* Download page */
.download-hero {
  background: var(--white);
  border-bottom: 3px solid var(--navy);
  padding: 48px 0;
  text-align: center;
}

.download-hero h1 {
  font-size: 1.85rem;
  color: var(--navy);
  margin-bottom: 14px;
}

.download-hero p {
  color: var(--gray-600);
  max-width: 640px;
  margin: 0 auto 28px;
}

.download-main-btn {
  padding: 16px 40px;
  font-size: 1.05rem;
}

.steps-list {
  counter-reset: step;
  max-width: 720px;
  margin: 0 auto;
  list-style: none;
}

.steps-list li {
  counter-increment: step;
  position: relative;
  padding: 20px 20px 20px 56px;
  margin-bottom: 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}

.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 18px;
  width: 28px;
  height: 28px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.steps-list h3 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.steps-list p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.75;
}

.req-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.req-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
}

.req-card h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--navy-muted);
}

.req-card ul {
  list-style: none;
  font-size: 0.9rem;
  color: var(--gray-600);
}

.req-card li {
  padding: 6px 0;
  padding-left: 18px;
  position: relative;
}

.req-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  background: var(--navy);
  border-radius: 50%;
}

.update-list {
  max-width: 780px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px 32px;
}

.update-list h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 14px;
}

.update-list ul {
  list-style: none;
  font-size: 0.92rem;
  color: var(--gray-600);
}

.update-list li {
  padding: 8px 0 8px 20px;
  position: relative;
  line-height: 1.75;
}

.update-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--navy);
}

/* Article page (zh-cn) */
.article-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.article-wrap h1 {
  font-size: 1.85rem;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 20px;
}

.article-meta {
  font-size: 0.86rem;
  color: var(--gray-400);
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-200);
}

.article-wrap h2 {
  font-size: 1.35rem;
  color: var(--navy);
  margin: 36px 0 14px;
}

.article-wrap h3 {
  font-size: 1.1rem;
  color: var(--navy-dark);
  margin: 24px 0 10px;
}

.article-wrap p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.85;
  margin-bottom: 16px;
}

.article-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  margin: 40px 0;
}

.article-cta h2 {
  color: var(--white);
  font-size: 1.3rem;
  margin: 0 0 12px;
}

.article-cta p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
}

.article-cta .btn-primary {
  background: var(--white);
  color: var(--navy);
}

.article-cta .btn-primary:hover {
  background: var(--gray-100);
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 36px 0 28px;
  font-size: 0.86rem;
  line-height: 1.7;
}

.footer-inner {
  text-align: center;
}

.footer-security {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 10px 20px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 0.88rem;
}

.footer-security svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #6dd4a0;
}

.footer-copy {
  opacity: 0.75;
  max-width: 680px;
  margin: 0 auto;
}

/* Spinner animation for download.js */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--navy);
    box-shadow: var(--shadow);
  }

  .main-nav.open { display: block; }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }

  .main-nav a {
    display: block;
    padding: 14px 24px;
    border-bottom: none;
    border-left: 3px solid transparent;
  }

  .main-nav a.active {
    border-left-color: var(--navy);
    border-bottom-color: transparent;
    background: var(--navy-muted);
  }

  .site-header { position: relative; }

  .hero-text h1 { font-size: 1.55rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .req-grid { grid-template-columns: 1fr; }

  .compare-table { font-size: 0.82rem; }
  .compare-table th,
  .compare-table td { padding: 10px 12px; }
}
