/* ============================================
   WPS Office Download Site - Shared Styles
   ============================================ */

/* CSS Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #333; line-height: 1.6; background: #fff; -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Spin Animation for Download Loading */
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ============================================
   Navigation
   ============================================ */
.main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid #eee; transition: box-shadow 0.3s;
}
.main-nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; color: #d93a3a; }
.nav-logo svg { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 8px; }
.nav-links a {
  padding: 8px 20px; border-radius: 6px; font-size: 15px; font-weight: 500;
  color: #555; transition: all 0.25s; position: relative;
}
.nav-links a:hover { color: #d93a3a; background: rgba(217,58,58,0.06); }
.nav-links a.active { color: #d93a3a; background: rgba(217,58,58,0.08); font-weight: 600; }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -2px; left: 20px; right: 20px;
  height: 2px; background: #d93a3a; border-radius: 1px;
}
.nav-cta {
  padding: 8px 22px; background: linear-gradient(135deg, #d93a3a, #e85d5d);
  color: #fff !important; border-radius: 6px; font-size: 14px; font-weight: 600;
  transition: all 0.25s; box-shadow: 0 2px 8px rgba(217,58,58,0.25);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(217,58,58,0.35); }
.mobile-menu-btn { display: none; background: none; border: none; padding: 4px; }

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: #1a1a2e; color: #aaa; padding: 50px 0 30px; margin-top: 0;
}
.footer-disclaimer {
  text-align: center; font-size: 13px; line-height: 1.8; color: #888;
  border-top: 1px solid #333; padding-top: 25px; margin-top: 10px;
}
.footer-disclaimer a { color: #d93a3a; }

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 36px; border-radius: 8px; font-size: 16px; font-weight: 600;
  transition: all 0.25s; cursor: pointer; border: none;
}
.btn-primary {
  background: linear-gradient(135deg, #d93a3a, #e85d5d); color: #fff;
  box-shadow: 0 4px 16px rgba(217,58,58,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(217,58,58,0.4); }
.btn-secondary {
  background: #fff; color: #d93a3a; border: 2px solid #d93a3a;
}
.btn-secondary:hover { background: rgba(217,58,58,0.05); }
.btn-large { padding: 16px 48px; font-size: 18px; border-radius: 10px; }

/* ============================================
   Section Headers
   ============================================ */
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 36px; font-weight: 700; color: #1a1a2e; margin-bottom: 12px; }
.section-header p { font-size: 17px; color: #666; max-width: 600px; margin: 0 auto; }

/* ============================================
   Feature Cards
   ============================================ */
.feature-card {
  background: #fff; border-radius: 16px; padding: 36px 28px;
  border: 1px solid #f0f0f0; transition: all 0.3s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); border-color: #f5c6c6; }
.feature-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.feature-icon.red { background: rgba(217,58,58,0.1); color: #d93a3a; }
.feature-icon.blue { background: rgba(59,130,246,0.1); color: #3b82f6; }
.feature-icon.green { background: rgba(34,197,94,0.1); color: #22c55e; }
.feature-icon.orange { background: rgba(249,115,22,0.1); color: #f97316; }
.feature-icon.purple { background: rgba(168,85,247,0.1); color: #a855f7; }
.feature-icon.teal { background: rgba(20,184,166,0.1); color: #14b8a6; }
.feature-card h3 { font-size: 18px; font-weight: 600; color: #1a1a2e; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: #666; line-height: 1.7; }

/* ============================================
   Platform Cards
   ============================================ */
.platform-card {
  background: #fff; border-radius: 16px; padding: 32px;
  border: 1px solid #f0f0f0; text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04); transition: all 0.3s;
}
.platform-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.platform-icon { width: 64px; height: 64px; margin: 0 auto 16px; }
.platform-card h3 { font-size: 20px; font-weight: 600; color: #1a1a2e; margin-bottom: 8px; }
.platform-card p { font-size: 14px; color: #666; margin-bottom: 20px; }

/* ============================================
   FAQ Accordion
   ============================================ */
.faq-item { border-bottom: 1px solid #eee; }
.faq-question {
  width: 100%; padding: 22px 0; display: flex; align-items: center; justify-content: space-between;
  font-size: 16px; font-weight: 600; color: #1a1a2e; text-align: left; background: none; border: none; cursor: pointer;
}
.faq-question:hover { color: #d93a3a; }
.faq-question svg { transition: transform 0.3s; flex-shrink: 0; margin-left: 12px; }
.faq-question.active svg { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 0; font-size: 15px; color: #555; line-height: 1.8;
}
.faq-answer.open { padding: 0 0 22px 0; }

/* ============================================
   Star Rating
   ============================================ */
.star-rating { display: flex; gap: 3px; color: #f59e0b; margin-bottom: 10px; }

/* ============================================
   Comparison Table
   ============================================ */
.compare-table { width: 100%; border-collapse: collapse; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.compare-table th, .compare-table td { padding: 16px 24px; text-align: left; font-size: 15px; }
.compare-table thead { background: linear-gradient(135deg, #d93a3a, #e85d5d); color: #fff; }
.compare-table tbody tr { background: #fff; border-bottom: 1px solid #f5f5f5; }
.compare-table tbody tr:nth-child(even) { background: #fafafa; }
.compare-table .check { color: #22c55e; font-weight: 600; }
.compare-table .cross { color: #ef4444; }
.compare-table .highlight { background: rgba(217,58,58,0.04); font-weight: 600; }

/* ============================================
   Stats Counter
   ============================================ */
.stat-number { font-size: 42px; font-weight: 700; color: #d93a3a; line-height: 1; }
.stat-label { font-size: 15px; color: #666; margin-top: 8px; }

/* ============================================
   Tag/Badge
   ============================================ */
.tag { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.tag-red { background: rgba(217,58,58,0.1); color: #d93a3a; }
.tag-green { background: rgba(34,197,94,0.1); color: #22c55e; }
.tag-blue { background: rgba(59,130,246,0.1); color: #3b82f6; }

/* ============================================
   Scroll Reveal Animation
   ============================================ */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); gap: 4px; }
  .nav-links.active { display: flex; }
  .nav-links a { padding: 12px 16px; border-radius: 8px; }
  .mobile-menu-btn { display: block; }
  .section-header h2 { font-size: 28px; }
  .stat-number { font-size: 32px; }
  .btn-large { padding: 14px 32px; font-size: 16px; }
}
