/* ===================================================
   WPS Office Set 6 — Charcoal + Cyan App Store
   Floating nav · App-header hero · Reviews-first layout
   =================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --cyan: #0097A7;
  --cyan-dark: #00838F;
  --charcoal: #263238;
  --charcoal-light: #37474F;
  --bg: #ECEFF1;
  --surface: #FFFFFF;
  --text: #263238;
  --text-secondary: #546E7A;
  --text-muted: #90A4AE;
  --border: #CFD8DC;
  --star: #FFB300;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(38, 50, 56, 0.06);
  --shadow-md: 0 8px 28px rgba(38, 50, 56, 0.10);
  --shadow-nav: 0 12px 40px rgba(38, 50, 56, 0.28);
  --max-width: 1080px;
  --nav-offset: 88px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-offset);
}

body {
  font-family: "Avenir Next", "Nunito Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--cyan-dark);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Spin only — no scroll fade */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ---------- Floating charcoal nav ---------- */
.site-nav-wrap {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}

.site-nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--charcoal);
  border-radius: var(--radius-pill);
  padding: 8px 10px 8px 18px;
  box-shadow: var(--shadow-nav);
  max-width: var(--max-width);
  width: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-brand svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-links a.active {
  color: var(--cyan);
  background: rgba(0, 151, 167, 0.14);
}

.nav-cta {
  background: var(--cyan);
  color: #fff;
  border: none;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
  font-family: inherit;
}

.nav-cta:hover {
  background: var(--cyan-dark);
  transform: translateY(-1px);
}

.nav-cta:disabled {
  opacity: 0.65;
  cursor: default;
  transform: none;
}

main {
  padding-top: calc(var(--nav-offset) + 12px);
}

/* ---------- App-header hero ---------- */
.app-hero {
  padding: 32px 0 48px;
}

.app-header-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px 24px;
  align-items: start;
}

.app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 151, 167, 0.25);
  grid-row: span 2;
}

.app-icon svg {
  width: 100%;
  height: 100%;
}

.app-meta-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.app-title-block h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 4px;
}

.app-developer {
  font-size: 13px;
  color: var(--cyan);
  font-weight: 600;
}

.app-rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.stars {
  display: flex;
  gap: 2px;
}

.stars svg {
  width: 16px;
  height: 16px;
  fill: var(--star);
}

.rating-score {
  font-size: 22px;
  font-weight: 800;
  color: var(--charcoal);
}

.rating-count {
  font-size: 12px;
  color: var(--text-muted);
}

.app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.app-tag {
  background: var(--bg);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.app-desc {
  grid-column: 1 / -1;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.app-download-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.btn-dl-primary {
  background: var(--cyan);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.2s;
}

.btn-dl-primary:hover {
  background: var(--cyan-dark);
  transform: translateY(-1px);
}

.btn-dl-primary:disabled {
  opacity: 0.65;
  cursor: default;
  transform: none;
}

.app-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  margin-left: auto;
}

.app-specs span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ---------- Sections ---------- */
section.block {
  padding: 44px 0;
}

.section-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 8px;
}

.section-heading {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.section-lead {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 560px;
}

.panel {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

/* ---------- Reviews ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.review-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.review-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.review-user {
  font-size: 13px;
  font-weight: 700;
}

.review-date {
  font-size: 11px;
  color: var(--text-muted);
}

.review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 8px;
}

.review-stars svg {
  width: 13px;
  height: 13px;
  fill: var(--star);
}

.review-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.reviews-summary {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--charcoal);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 20px;
}

.reviews-summary-score {
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  color: var(--cyan);
}

.reviews-summary-meta {
  font-size: 13px;
  opacity: 0.85;
}

/* ---------- Feature chips ---------- */
.chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.feature-chip svg {
  width: 18px;
  height: 18px;
  stroke: var(--cyan);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.feature-cell {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border);
}

.feature-cell-icon {
  width: 40px;
  height: 40px;
  background: rgba(0, 151, 167, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.feature-cell-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--cyan);
  fill: none;
  stroke-width: 2;
}

.feature-cell h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.feature-cell p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- Store badges ---------- */
.store-badges {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--charcoal);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background 0.2s, transform 0.2s;
  width: 100%;
}

.store-badge:hover {
  background: var(--charcoal-light);
  transform: translateY(-2px);
}

.store-badge:disabled {
  opacity: 0.65;
  cursor: default;
  transform: none;
}

.store-badge svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.store-badge-text small {
  display: block;
  font-size: 10px;
  opacity: 0.7;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.store-badge-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

/* ---------- Stats ---------- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stat-item {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-bottom: 3px solid var(--cyan);
}

.stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--cyan-dark);
  line-height: 1.1;
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ---------- Deep features ---------- */
.deep-features {
  display: grid;
  gap: 16px;
}

.deep-feature {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  align-items: start;
}

.deep-feature-num {
  width: 48px;
  height: 48px;
  background: var(--charcoal);
  color: var(--cyan);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
}

.deep-feature h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.deep-feature p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
}

.faq-q {
  padding: 16px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--charcoal);
  background: rgba(236, 239, 241, 0.5);
  border-bottom: 1px solid var(--border);
}

.faq-a {
  padding: 14px 18px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- Compare table ---------- */
.compare-wrap {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: 13px;
}

.compare-table th,
.compare-table td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  background: var(--charcoal);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
}

.compare-table th:first-child,
.compare-table td:first-child {
  text-align: left;
  font-weight: 600;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table .yes {
  color: var(--cyan-dark);
  font-weight: 700;
}

.compare-table .no {
  color: var(--text-muted);
}

/* ---------- Final CTA ---------- */
.final-cta {
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-light) 100%);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-md);
}

.final-cta h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 10px;
}

.final-cta p {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 22px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta .btn-dl-primary {
  font-size: 15px;
  padding: 14px 36px;
}

/* ---------- Download page ---------- */
.dl-hero {
  text-align: center;
  padding: 24px 0 40px;
}

.dl-hero h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 10px;
}

.dl-hero p {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 520px;
  margin: 0 auto 24px;
}

.dl-main-btn {
  font-size: 16px;
  padding: 16px 40px;
}

.dl-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin: 32px 0;
}

.dl-info-item {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  border: 1px solid var(--border);
}

.dl-info-item strong {
  display: block;
  font-size: 13px;
  color: var(--cyan-dark);
  margin-bottom: 4px;
}

.dl-info-item span {
  font-size: 12px;
  color: var(--text-secondary);
}

.dl-steps {
  display: grid;
  gap: 12px;
  counter-reset: step;
}

.dl-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 18px;
  align-items: start;
}

.dl-step::before {
  counter-increment: step;
  content: counter(step);
  width: 36px;
  height: 36px;
  background: var(--cyan);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}

.dl-step h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.dl-step p {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ---------- zh-cn page ---------- */
.zh-hero-banner {
  background: var(--charcoal);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  color: #fff;
  margin-bottom: 32px;
}

.zh-hero-banner h1 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 10px;
}

.zh-hero-banner p {
  font-size: 14px;
  opacity: 0.88;
  max-width: 560px;
  line-height: 1.75;
}

.zh-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.zh-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--cyan);
}

.zh-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.zh-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.72);
  padding: 36px 0 28px;
  margin-top: 48px;
  font-size: 12px;
}

.footer-inner {
  display: grid;
  gap: 20px;
}

.footer-brand {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-links a:hover {
  color: var(--cyan);
}

.footer-security {
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  line-height: 1.7;
  border-left: 3px solid var(--cyan);
}

.footer-disclaimer {
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.65;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .site-nav {
    flex-wrap: wrap;
    border-radius: var(--radius-md);
    padding: 12px 14px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-left: 0;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .app-header-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .app-icon {
    margin: 0 auto;
    grid-row: auto;
  }

  .app-meta-top {
    flex-direction: column;
    align-items: center;
  }

  .app-rating-row {
    justify-content: center;
  }

  .app-tags {
    justify-content: center;
  }

  .app-download-row {
    flex-direction: column;
    align-items: stretch;
  }

  .app-specs {
    margin-left: 0;
    justify-content: center;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-summary {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .nav-brand span {
    display: none;
  }

  .nav-links a {
    padding: 6px 10px;
    font-size: 12px;
  }

  .nav-cta {
    padding: 8px 14px;
    font-size: 12px;
  }
}
