/* ═══════════════════════════════════════════════
   WPS Office Landing Pages — Global Stylesheet
   Pure Native CSS | No Frameworks
   ═══════════════════════════════════════════════ */

/* ── 1. Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  color: #1f2328;
  background: #ffffff;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ── 2. Variables ── */
:root {
  --brand: #D92626;
  --brand-dark: #B31B1B;
  --brand-light: #FFF0F0;
  --accent: #FF6A00;
  --text: #1f2328;
  --text-secondary: #5a626b;
  --bg: #f6f8fa;
  --bg-elevated: #ffffff;
  --border: #e1e4e8;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(31,35,40,0.04), 0 1px 3px rgba(31,35,40,0.06);
  --shadow: 0 4px 18px rgba(31,35,40,0.08), 0 2px 6px rgba(31,35,40,0.04);
  --shadow-lg: 0 12px 40px rgba(31,35,40,0.12), 0 4px 12px rgba(31,35,40,0.06);
  --max-width: 1200px;
}

/* ── 3. Utilities ── */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-title {
  font-size: 2.2rem; font-weight: 800; text-align: center; margin-bottom: 12px; letter-spacing: -0.5px;
}
.section-subtitle {
  font-size: 1.1rem; color: var(--text-secondary); text-align: center; max-width: 680px; margin: 0 auto 56px; line-height: 1.7;
}
.text-gradient {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; border-radius: 10px; font-size: 1rem; font-weight: 600;
  transition: transform .2s, box-shadow .2s, background .2s; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff;
  box-shadow: 0 6px 20px rgba(217,38,38,0.28);
}
.btn-primary:hover { box-shadow: 0 8px 28px rgba(217,38,38,0.35); }
.btn-secondary {
  background: #fff; color: var(--brand); border: 1.5px solid var(--brand);
}
.btn-secondary:hover { background: var(--brand-light); }
.btn-large { padding: 16px 40px; font-size: 1.1rem; border-radius: 12px; }
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: .8rem; font-weight: 600;
}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── 4. Animations ── */
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217,38,38,0.25); }
  50% { box-shadow: 0 0 0 12px rgba(217,38,38,0); }
}
.animate-fade-up { animation: fadeUp .7s ease-out both; }
.animate-delay-1 { animation-delay: .1s; }
.animate-delay-2 { animation-delay: .2s; }
.animate-delay-3 { animation-delay: .3s; }

/* ── 5. Navigation ── */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.92); backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-logo {
  display: inline-flex; align-items: center; gap: 10px; font-size: 1.35rem; font-weight: 800; color: var(--brand); letter-spacing: -0.3px;
}
.nav-logo svg { width: 32px; height: 32px; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  position: relative; padding: 8px 16px; border-radius: 8px; font-size: .95rem; font-weight: 600; color: var(--text-secondary);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--brand); background: var(--brand-light); }
.nav-links a.active { color: var(--brand); background: var(--brand-light); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 16px; right: 16px; height: 3px; border-radius: 2px; background: var(--brand);
}

/* ── 6. Hero ── */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #fff8f8 40%, #fff0f0 100%);
  padding: 100px 0 120px;
}
.hero-bg-shape {
  position: absolute; top: -10%; right: -5%; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,106,0,0.08) 0%, transparent 70%); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero-title { font-size: 3.2rem; font-weight: 900; line-height: 1.15; letter-spacing: -1px; margin-bottom: 20px; }
.hero-desc { font-size: 1.15rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 32px; max-width: 540px; }
.hero-badges { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-badges .badge { background: #fff; color: var(--brand); border: 1px solid var(--border); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image { position: relative; }
.hero-image img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.hero-float-card {
  position: absolute; bottom: -20px; left: -20px; background: #fff; padding: 14px 18px; border-radius: 12px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .9rem;
  animation: fadeUp 1s ease-out .4s both;
}

/* ── 7. Feature Cards ── */
.feature-card {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(217,38,38,0.12); }
.feature-icon {
  width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.feature-icon svg { width: 28px; height: 28px; }
.feature-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: .95rem; color: var(--text-secondary); line-height: 1.7; }

/* ── 8. Platform Download Entry (Home) ── */
.platform-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.platform-tile {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; text-align: center; transition: all .25s;
}
.platform-tile:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-4px); }
.platform-tile .p-icon { width: 48px; height: 48px; margin: 0 auto 14px; }
.platform-tile h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.platform-tile p { font-size: .85rem; color: var(--text-secondary); margin-bottom: 16px; min-height: 40px; }
.platform-tile button { width: 100%; }

/* ── 9. Detailed Feature Blocks ── */
.detail-block { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.detail-block.reverse { direction: rtl; }
.detail-block.reverse > * { direction: ltr; }
.detail-block .detail-visual {
  background: linear-gradient(135deg, #fff5f5, #fff); border: 1px solid var(--border); border-radius: var(--radius);
  min-height: 320px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.detail-block .detail-visual img { border-radius: 10px; box-shadow: var(--shadow); }
.detail-block h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 16px; }
.detail-block p { color: var(--text-secondary); line-height: 1.9; margin-bottom: 14px; font-size: 1.05rem; }
.detail-block ul { margin-top: 10px; }
.detail-block li {
  position: relative; padding-left: 22px; margin-bottom: 10px; color: var(--text-secondary); font-size: .95rem;
}
.detail-block li::before {
  content: ''; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
}

/* ── 10. Testimonials ── */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
  transition: box-shadow .25s;
}
.testimonial-card:hover { box-shadow: var(--shadow); }
.testimonial-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--accent));
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1rem; flex-shrink: 0;
}
.testimonial-meta h4 { font-size: 1rem; font-weight: 700; }
.testimonial-meta .stars { color: #FFB800; font-size: .9rem; margin-top: 2px; }
.testimonial-card p { font-size: .95rem; color: var(--text-secondary); line-height: 1.8; }

/* ── 11. Stats ── */
.stats-section { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; padding: 70px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-number { font-size: 2.6rem; font-weight: 900; margin-bottom: 6px; }
.stat-label { font-size: .95rem; opacity: .9; }

/* ── 12. Comparison Table ── */
.compare-table-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: 16px 20px; text-align: left; font-size: .95rem; }
.compare-table thead { background: var(--bg); }
.compare-table th { font-weight: 700; color: var(--text); }
.compare-table tbody tr { border-top: 1px solid var(--border); transition: background .2s; }
.compare-table tbody tr:hover { background: #fafafa; }
.compare-table td { color: var(--text-secondary); }
.compare-table td strong { color: var(--text); }
.compare-table .yes { color: #1a7f37; font-weight: 700; }
.compare-table .no { color: #cf222e; }
.compare-table .partial { color: #9a6700; font-weight: 600; }

/* ── 13. FAQ ── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 22px 0;
  font-size: 1.05rem; font-weight: 700; color: var(--text); text-align: left;
}
.faq-question svg { width: 22px; height: 22px; color: var(--text-secondary); transition: transform .3s; flex-shrink: 0; }
.faq-item.open .faq-question svg { transform: rotate(180deg); color: var(--brand); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height .35s ease-out, padding .35s ease-out;
}
.faq-item.open .faq-answer {
  max-height: 600px; padding-bottom: 22px;
}
.faq-answer p { color: var(--text-secondary); line-height: 1.8; font-size: .95rem; }

/* ── 14. Download Page Specifics ── */
.download-hero {
  background: linear-gradient(180deg, #fff 0%, #fff5f5 60%, #fff0f0 100%);
  padding: 80px 0 90px;
}
.download-hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.download-hero h1 { font-size: 2.6rem; font-weight: 900; line-height: 1.2; margin-bottom: 16px; }
.download-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.download-meta .badge { background: var(--brand-light); color: var(--brand); }
.download-hero .btn-primary { animation: pulse 2.5s infinite; }
.download-hero-visual {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-lg);
  text-align: center;
}
.download-hero-visual img { border-radius: 10px; margin-bottom: 16px; }

/* Platform Cards on Download Page */
.platform-card-dl {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px;
  transition: all .25s; display: flex; flex-direction: column;
}
.platform-card-dl:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-4px); }
.platform-card-dl .pc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.platform-card-dl .pc-head svg { width: 44px; height: 44px; }
.platform-card-dl h3 { font-size: 1.25rem; font-weight: 700; }
.platform-card-dl .pc-info { font-size: .9rem; color: var(--text-secondary); margin-bottom: 18px; flex-grow: 1; }
.platform-card-dl .pc-info li { margin-bottom: 6px; }
.platform-card-dl .steps { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); }
.platform-card-dl .steps li { font-size: .85rem; color: var(--text-secondary); margin-bottom: 8px; display: flex; gap: 8px; }
.platform-card-dl .steps li span { font-weight: 700; color: var(--brand); flex-shrink: 0; }

/* Install Guide Steps */
.guide-steps { display: flex; flex-direction: column; gap: 20px; }
.guide-step {
  display: grid; grid-template-columns: 48px 1fr; gap: 20px; align-items: start;
}
.guide-step .step-num {
  width: 48px; height: 48px; border-radius: 50%; background: var(--brand-light); color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; flex-shrink: 0;
}
.guide-step h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.guide-step p { color: var(--text-secondary); font-size: .95rem; line-height: 1.7; }
.guide-step-visual {
  margin-top: 12px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fafafa;
  min-height: 160px; display: flex; align-items: center; justify-content: center;
}
.guide-step-visual img { border-radius: 0; }

/* Changelog */
.changelog-item { padding: 22px 0; border-bottom: 1px solid var(--border); }
.changelog-item:last-child { border-bottom: none; }
.changelog-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.changelog-header .ver { font-size: 1.1rem; font-weight: 800; color: var(--brand); }
.changelog-header .date { font-size: .85rem; color: var(--text-secondary); }
.changelog-body { color: var(--text-secondary); font-size: .95rem; line-height: 1.8; padding-left: 2px; }
.changelog-body li { margin-bottom: 4px; list-style-type: disc; margin-left: 18px; }

/* Security Banner */
.security-banner {
  background: linear-gradient(135deg, #f0fdf4, #ffffff); border: 1px solid #bbf7d0; border-radius: var(--radius);
  padding: 32px; display: flex; gap: 24px; align-items: flex-start;
}
.security-banner svg { width: 48px; height: 48px; color: #16a34a; flex-shrink: 0; }
.security-banner h4 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.security-banner p { color: var(--text-secondary); font-size: .95rem; line-height: 1.8; }

/* ── 15. zh-cn Page Specifics ── */
.seo-article h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 16px; margin-top: 48px; }
.seo-article h2:first-child { margin-top: 0; }
.seo-article h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; margin-top: 28px; color: var(--text); }
.seo-article p { color: var(--text-secondary); line-height: 1.9; margin-bottom: 16px; font-size: 1.05rem; }
.seo-article ul { margin: 12px 0 18px 20px; list-style-type: disc; }
.seo-article li { color: var(--text-secondary); margin-bottom: 8px; line-height: 1.7; }
.seo-article strong { color: var(--text); }
.seo-cta-box {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff;
  border-radius: var(--radius); padding: 48px; text-align: center; margin: 48px 0;
}
.seo-cta-box h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 12px; }
.seo-cta-box p { color: rgba(255,255,255,0.85); font-size: 1.05rem; margin-bottom: 24px; }

/* ── 16. Footer ── */
.footer {
  background: #0d1117; color: #9198a1; padding: 50px 0 28px; font-size: .9rem;
}
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { color: #fff; font-size: 1.2rem; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.footer-brand svg { width: 24px; height: 24px; }
.footer-col h4 { color: #fff; font-size: .95rem; font-weight: 700; margin-bottom: 16px; }
.footer-col a { display: block; color: #9198a1; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #21262d; padding-top: 24px; text-align: center; line-height: 1.8; }
.footer-bottom strong { color: #fff; }

/* ── 17. Responsive ── */
@media (max-width: 980px) {
  .hero-grid, .download-hero-grid, .detail-block { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 80px; }
  .hero-title { font-size: 2.2rem; }
  .grid-2, .grid-3, .grid-4, .platform-row, .testimonial-grid, .stats-grid { grid-template-columns: 1fr 1fr; }
  .detail-block.reverse { direction: ltr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .platform-row, .testimonial-grid, .stats-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 1.8rem; }
  .section-title { font-size: 1.7rem; }
  .section { padding: 56px 0; }
  .navbar .container { height: 60px; }
  .nav-links a { padding: 6px 10px; font-size: .85rem; }
  .download-hero h1 { font-size: 1.8rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .security-banner { flex-direction: column; }
}
