/* WPS Office Landing — Set 1: 云端同步办公 Theme */
:root {
  --teal: #0B7A75;
  --teal-light: #12A89F;
  --teal-dark: #085954;
  --navy: #0A2540;
  --navy-soft: #123A5C;
  --sky-start: #E8F4F8;
  --sky-mid: #D4EEF0;
  --sky-end: #F0F8FA;
  --white: #FFFFFF;
  --text: #1A2B3C;
  --text-muted: #4A6278;
  --border: rgba(11, 122, 117, 0.18);
  --shadow: 0 4px 24px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 12px 48px rgba(10, 37, 64, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --letter-wide: 0.04em;
  --letter-tight: -0.02em;
  --section-gap: 5rem;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.75;
  letter-spacing: var(--letter-wide);
  background: linear-gradient(165deg, var(--sky-start) 0%, var(--sky-end) 50%, var(--sky-mid) 100%);
  min-height: 100vh;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--teal-light);
}

/* ── Navigation ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  letter-spacing: var(--letter-tight);
}

.nav-logo svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-radius: 8px;
  letter-spacing: 0.03em;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover {
  background: rgba(11, 122, 117, 0.08);
  color: var(--teal);
}

.nav-links a.active {
  background: var(--teal);
  color: var(--white);
  font-weight: 600;
}

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 40%, var(--teal-dark) 100%);
  color: var(--white);
  padding: 5rem 1.5rem 6rem;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 120%, rgba(18, 168, 159, 0.25) 0%, transparent 70%),
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 800;
  letter-spacing: var(--letter-tight);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-brand {
  display: block;
  font-size: clamp(3rem, 8vw, 5rem);
  background: linear-gradient(90deg, #fff 0%, #A8E6E2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.hero-sub {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 640px;
  margin: 0 auto 2rem;
  letter-spacing: 0.05em;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(11, 122, 117, 0.35);
}

.btn-primary:hover {
  background: var(--teal-light);
  box-shadow: 0 6px 24px rgba(11, 122, 117, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}

.btn-outline:hover {
  background: var(--teal);
  color: var(--white);
}

.btn-dark {
  background: var(--navy);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--navy-soft);
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ── Sections ── */
main {
  overflow-x: hidden;
}

.section {
  padding: var(--section-gap) 1.5rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-alt {
  background: linear-gradient(180deg, rgba(11, 122, 117, 0.06) 0%, rgba(11, 122, 117, 0.02) 100%);
}

.section-dark {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--white);
}

.section-dark .section-label {
  color: var(--teal-light);
}

.section-dark .section-desc,
.section-dark p {
  color: rgba(255, 255, 255, 0.85);
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: var(--letter-tight);
  color: var(--navy);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.section-dark .section-title {
  color: var(--white);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 2.5rem;
  letter-spacing: 0.03em;
}

/* ── Feature Grid ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s, transform 0.25s;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--white);
}

.feature-card h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Horizontal Feature Strips ── */
.feature-strip {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}

.feature-strip:last-child {
  margin-bottom: 0;
}

.feature-strip-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: rgba(11, 122, 117, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-strip-icon svg {
  width: 28px;
  height: 28px;
  color: var(--teal);
}

.feature-strip-body h3 {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.feature-strip-body p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* ── Platform Cards ── */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.platform-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.section-dark .platform-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.platform-card svg.platform-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  color: var(--teal);
}

.section-dark .platform-card svg.platform-icon {
  color: var(--teal-light);
}

.platform-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.section-dark .platform-card h3 {
  color: var(--white);
}

.platform-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.section-dark .platform-card p {
  color: rgba(255, 255, 255, 0.75);
}

/* ── Stats Row ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.stat-item {
  padding: 2rem 1rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: var(--letter-tight);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  letter-spacing: 0.04em;
}

/* ── Comparison Table ── */
.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.95rem;
}

.compare-table th,
.compare-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.compare-table tr:nth-child(even) td {
  background: rgba(11, 122, 117, 0.04);
}

.compare-table td:first-child {
  font-weight: 600;
  color: var(--navy);
}

.check-yes {
  color: var(--teal);
  font-weight: 700;
}

.check-no {
  color: #999;
}

/* ── Reviews ── */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.review-stars {
  display: flex;
  gap: 0.2rem;
  margin-bottom: 1rem;
}

.review-stars svg {
  width: 18px;
  height: 18px;
  color: #F5A623;
}

.review-text {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-style: italic;
  line-height: 1.75;
}

.review-author {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9rem;
}

.review-role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── FAQ ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow);
}

.section-dark .faq-item {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
}

.faq-item h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.section-dark .faq-item h3 {
  color: var(--white);
}

.faq-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.section-dark .faq-item p {
  color: rgba(255, 255, 255, 0.8);
}

/* ── Download Page Specific ── */
.download-hero {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 50%, var(--navy-soft) 100%);
  color: var(--white);
  padding: 4rem 1.5rem;
  text-align: center;
}

.download-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 1rem;
  letter-spacing: var(--letter-tight);
}

.download-main {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  margin-top: -3rem;
  position: relative;
  z-index: 2;
}

.download-main h2 {
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.download-main p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 1.5rem;
}

.download-main .btn {
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
}

/* ── Steps ── */
.steps-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}

.step-item {
  position: relative;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.step-item::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--teal);
  color: var(--white);
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.step-item h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.step-item p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ── System Requirements ── */
.req-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.req-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.req-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--teal);
}

.req-card ul {
  list-style: none;
}

.req-card li {
  padding: 0.4rem 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  padding-left: 1.25rem;
  position: relative;
}

.req-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
}

/* ── Changelog ── */
.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.changelog-item {
  background: var(--white);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow);
}

.changelog-item h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.changelog-date {
  font-size: 0.85rem;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.changelog-item ul {
  margin-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.changelog-item li {
  margin-bottom: 0.35rem;
}

/* ── Article (zh-cn) ── */
.article-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.article-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.article-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--navy);
  letter-spacing: var(--letter-tight);
  margin-bottom: 1rem;
  line-height: 1.35;
}

.article-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.article-body h2 {
  font-size: 1.45rem;
  color: var(--navy);
  margin: 2.5rem 0 1rem;
  padding-left: 1rem;
  border-left: 4px solid var(--teal);
  letter-spacing: 0.02em;
}

.article-body h3 {
  font-size: 1.15rem;
  color: var(--teal-dark);
  margin: 1.75rem 0 0.75rem;
}

.article-body p {
  margin-bottom: 1.25rem;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.85;
  letter-spacing: 0.03em;
}

.article-body ul {
  margin: 1rem 0 1.25rem 1.5rem;
  color: var(--text-muted);
}

.article-body li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.article-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal-dark) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  margin: 3rem 0;
  box-shadow: var(--shadow-lg);
}

.article-cta h2 {
  border: none;
  padding: 0;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.article-cta p {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.5rem;
}

/* ── Footer ── */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 1.5rem 2rem;
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.footer-security {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(11, 122, 117, 0.25);
  border: 1px solid rgba(18, 168, 159, 0.4);
  border-radius: var(--radius);
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

.footer-security svg {
  width: 20px;
  height: 20px;
  color: var(--teal-light);
  flex-shrink: 0;
}

.footer-copy {
  font-size: 0.85rem;
  line-height: 1.7;
  letter-spacing: 0.03em;
  opacity: 0.8;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--teal-light);
}

/* ── Utility ── */
.text-center {
  text-align: center;
}

.mb-2 {
  margin-bottom: 2rem;
}

/* ── Keyframes ── */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  :root {
    --section-gap: 3.5rem;
  }

  .nav-inner {
    padding: 0 1rem;
  }

  .nav-links a {
    padding: 0.4rem 0.65rem;
    font-size: 0.85rem;
  }

  .hero {
    padding: 3.5rem 1rem 4.5rem;
  }

  .feature-strip {
    flex-direction: column;
    padding: 1.5rem;
  }

  .download-main {
    padding: 2rem 1.25rem;
    margin-top: -2rem;
  }

  .compare-table th,
  .compare-table td {
    padding: 0.75rem;
    font-size: 0.85rem;
  }

  .article-wrap {
    padding: 2rem 1rem 3rem;
  }
}

@media (max-width: 480px) {
  .nav-logo span {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .stat-number {
    font-size: 2rem;
  }
}
