/* WPS Office Landing Site - Site 1 Root Domain */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #FF5136;
  --primary-dark: #E03E25;
  --primary-light: #FF7A65;
  --bg: #FFFFFF;
  --bg-alt: #F7F8FA;
  --bg-dark: #1A1A2E;
  --text: #2D2D2D;
  --text-muted: #666666;
  --border: #E8E8E8;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 32px rgba(255,81,54,0.15);
  --radius: 10px;
  --nav-height: 64px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAV ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.logo:hover { color: var(--primary); }

.logo svg { flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 15px;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,81,54,0.1);
  color: var(--primary);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover:not(:disabled) {
  background: rgba(255,81,54,0.08);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 18px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: calc(var(--nav-height) + 80px) 24px 100px;
  text-align: center;
  overflow: hidden;
  background: var(--bg);
}

.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255,81,54,0.12) 0%, rgba(255,81,54,0.04) 40%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text);
}

.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,81,54,0.1);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

/* ===== STATS ===== */
.stats-strip {
  background: var(--bg-alt);
  padding: 48px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.stat-item .stat-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.stat-item .stat-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== SECTIONS ===== */
.section {
  padding: 80px 24px;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 17px;
}

/* ===== FEATURE CARDS ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border);
}

.section-alt .feature-card {
  background: var(--bg);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,81,54,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* ===== PLATFORM DOWNLOAD ===== */
.platform-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.platform-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.platform-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}

.platform-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  color: var(--text);
}

.platform-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.platform-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ===== DEEP FEATURES ===== */
.deep-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto 80px;
}

.deep-feature:last-child { margin-bottom: 0; }

.deep-feature.reverse { direction: rtl; }
.deep-feature.reverse > * { direction: ltr; }

.deep-feature-visual {
  background: linear-gradient(135deg, rgba(255,81,54,0.08) 0%, rgba(255,81,54,0.02) 100%);
  border-radius: 16px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  border: 1px solid rgba(255,81,54,0.12);
}

.deep-feature-visual svg {
  width: 120px;
  height: 120px;
  color: var(--primary);
  opacity: 0.85;
}

.deep-feature-text h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}

.deep-feature-text p {
  color: var(--text-muted);
  margin-bottom: 12px;
  font-size: 16px;
}

.deep-feature-text ul {
  list-style: none;
  margin-top: 16px;
}

.deep-feature-text li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  color: var(--text-muted);
  font-size: 15px;
}

.deep-feature-text li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

/* ===== COMPARISON TABLE ===== */
.comparison-table-wrap {
  overflow-x: auto;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
}

.comparison-table th,
.comparison-table td {
  padding: 16px 24px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.comparison-table th {
  background: var(--bg-alt);
  font-weight: 700;
  font-size: 16px;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: left;
  font-weight: 600;
}

.comparison-table tr:last-child td { border-bottom: none; }

.comparison-table .check { color: #22C55E; }
.comparison-table .cross { color: #EF4444; }
.comparison-table .highlight-col { background: rgba(255,81,54,0.04); }

/* ===== REVIEWS ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.review-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.section-alt .review-card { background: var(--bg); }

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.stars {
  display: flex;
  gap: 2px;
  margin-bottom: 12px;
  color: #FBBF24;
}

.review-text {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 16px;
  line-height: 1.7;
}

.review-author {
  font-weight: 600;
  font-size: 14px;
}

.review-role {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== FAQ ACCORDION ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--bg);
}

.faq-item summary {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s, color 0.2s;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--primary);
  font-weight: 400;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  background: rgba(255,81,54,0.04);
  color: var(--primary);
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.75);
  padding: 48px 24px 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}

.footer-links a:hover { color: var(--primary-light); }

.footer-security {
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 16px 24px;
  margin-bottom: 20px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-disclaimer {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

/* ===== DOWNLOAD PAGE ===== */
.page-hero {
  padding: calc(var(--nav-height) + 60px) 24px 60px;
  text-align: center;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto;
}

.download-featured {
  background: linear-gradient(135deg, rgba(255,81,54,0.06) 0%, rgba(255,81,54,0.02) 100%);
  border: 2px solid rgba(255,81,54,0.2);
  border-radius: 16px;
  padding: 48px;
  max-width: 800px;
  margin: 0 auto 48px;
  text-align: center;
}

.download-featured h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.download-meta {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin: 20px 0 28px;
  flex-wrap: wrap;
}

.download-meta-item {
  font-size: 14px;
  color: var(--text-muted);
}

.download-meta-item strong {
  display: block;
  color: var(--text);
  font-size: 16px;
}

.download-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.download-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.download-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.install-steps {
  max-width: 700px;
  margin: 0 auto;
  counter-reset: step;
}

.install-step {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.install-step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.install-step-content h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

.install-step-content p {
  color: var(--text-muted);
  font-size: 15px;
}

.requirements-list {
  max-width: 700px;
  margin: 0 auto;
  list-style: none;
}

.requirements-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 12px;
  font-size: 15px;
  color: var(--text-muted);
}

.requirements-list li:last-child { border-bottom: none; }

.requirements-list li strong {
  color: var(--text);
  min-width: 120px;
}

.changelog-list {
  max-width: 700px;
  margin: 0 auto;
}

.changelog-item {
  border-left: 3px solid var(--primary);
  padding: 16px 0 16px 24px;
  margin-bottom: 20px;
}

.changelog-item h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.changelog-item .version-date {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.changelog-item p {
  color: var(--text-muted);
  font-size: 15px;
}

.security-section {
  background: linear-gradient(135deg, rgba(34,197,94,0.06) 0%, rgba(34,197,94,0.02) 100%);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.security-section h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #16A34A;
}

.security-section p {
  color: var(--text-muted);
  font-size: 15px;
}

/* ===== ZH-CN ARTICLE PAGE ===== */
.article-page {
  padding: calc(var(--nav-height) + 40px) 24px 80px;
}

.article-container {
  max-width: 800px;
  margin: 0 auto;
}

.article-container h1 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.3;
}

.article-meta {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.article-container h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 40px 0 16px;
  color: var(--text);
}

.article-container h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 28px 0 12px;
}

.article-container p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.8;
}

.article-container ul,
.article-container ol {
  margin: 0 0 16px 24px;
  color: var(--text-muted);
  line-height: 1.8;
}

.article-container li { margin-bottom: 8px; }

.article-tip {
  background: rgba(255,81,54,0.06);
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
}

.article-tip p {
  margin: 0;
  color: var(--text);
  font-size: 15px;
}

.article-cta {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  margin-top: 48px;
  border: 1px solid var(--border);
}

.article-cta h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.article-cta p {
  margin-bottom: 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-row { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .deep-feature { grid-template-columns: 1fr; gap: 32px; }
  .deep-feature.reverse { direction: ltr; }
  .download-cards { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .platform-row { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { gap: 2px; }
  .nav-links a { padding: 6px 10px; font-size: 13px; }
  .download-featured { padding: 32px 20px; }
  .hero { padding-bottom: 60px; }
}
