/* ========================================
   WPS Office 下载站 — aaa-wps.com.cn
   Design: Dark navy + gradient accents
   ======================================== */

:root {
  --navy: #0b1a30;
  --navy-light: #122240;
  --navy-card: #162b4d;
  --accent: #3e7bfa;
  --accent-hover: #5b93ff;
  --accent-glow: rgba(62,123,250,.25);
  --green: #22c55e;
  --orange: #f59e0b;
  --purple: #a855f7;
  --red: #ef4444;
  --text: #e8edf5;
  --text-dim: #94a3b8;
  --text-muted: #64748b;
  --white: #ffffff;
  --border: rgba(255,255,255,.08);
  --radius: 12px;
  --radius-sm: 8px;
  --max-w: 1180px;
  --transition: .25s ease;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%,100% { opacity: .6; }
  50% { opacity: 1; }
}

/* ── Reset ── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--navy);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; }
ul,ol { list-style: none; }

/* ── Container ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ════════════════════════════════════════
   Navigation
   ════════════════════════════════════════ */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(11,26,48,.82);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.topnav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.topnav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px; color: var(--white);
}
.topnav-logo svg { flex-shrink: 0; }
.topnav-logo small { font-weight: 400; font-size: 12px; color: var(--text-dim); margin-left: 2px; }

.topnav-links { display: flex; align-items: center; gap: 4px; }
.topnav-links a {
  padding: 6px 18px; border-radius: 100px;
  font-size: 14px; font-weight: 500; color: var(--text-dim);
  transition: all var(--transition);
}
.topnav-links a:hover { color: var(--white); background: rgba(255,255,255,.06); }
.topnav-links a.active {
  color: var(--white); background: var(--accent);
  box-shadow: 0 2px 12px var(--accent-glow);
}

.topnav-dl {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 20px; border-radius: 100px;
  background: var(--accent); color: var(--white);
  font-size: 14px; font-weight: 600;
  transition: all var(--transition);
}
.topnav-dl:hover { background: var(--accent-hover); transform: translateY(-1px); }

.topnav-mob {
  display: none; background: none; color: var(--text-dim); padding: 4px;
}

/* Mobile menu */
@media(max-width:768px) {
  .topnav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; background: rgba(11,26,48,.96);
    padding: 16px 24px; gap: 8px;
    border-bottom: 1px solid var(--border);
  }
  .topnav-links.open { display: flex; }
  .topnav-links a { width: 100%; text-align: center; padding: 12px; border-radius: var(--radius-sm); }
  .topnav-mob { display: block; }
  .topnav-dl { display: none; }
}

/* ════════════════════════════════════════
   Buttons
   ════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; border-radius: 100px;
  font-size: 16px; font-weight: 600; line-height: 1;
  transition: all var(--transition); border: none;
}
.btn-sm { padding: 10px 22px; font-size: 14px; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 6px 24px var(--accent-glow); }
.btn-outline {
  background: transparent; color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: var(--white); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: #f0f4ff; transform: translateY(-2px); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: #16a34a; transform: translateY(-2px); }

/* ════════════════════════════════════════
   Hero Section
   ════════════════════════════════════════ */
.hero {
  position: relative; min-height: 100vh; padding-top: 64px;
  display: flex; align-items: center;
  background: linear-gradient(160deg, var(--navy) 0%, #0f2847 40%, #162b4d 100%);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -40%; right: -20%;
  width: 800px; height: 800px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center; padding: 80px 0;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(62,123,250,.12); border: 1px solid rgba(62,123,250,.25);
  padding: 6px 16px; border-radius: 100px;
  font-size: 13px; color: var(--accent); font-weight: 500;
  margin-bottom: 20px;
}
.hero-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
.hero h1 { font-size: 48px; line-height: 1.15; font-weight: 800; margin-bottom: 20px; }
.hero h1 .hl { background: linear-gradient(135deg, var(--accent), #818cf8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-desc { font-size: 17px; color: var(--text-dim); margin-bottom: 32px; max-width: 520px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-badges { display: flex; gap: 24px; flex-wrap: wrap; }
.hero-badge {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-dim);
}
.hero-badge svg { color: var(--green); }
.hero-visual {
  position: relative; display: flex; justify-content: center; align-items: center;
}
.hero-card {
  width: 100%; max-width: 420px; aspect-ratio: 4/3;
  background: var(--navy-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
  animation: float 6s ease-in-out infinite;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.hero-card-bar { display: flex; gap: 8px; }
.hero-card-dot { width: 12px; height: 12px; border-radius: 50%; }
.hero-card-line { height: 14px; border-radius: 4px; background: var(--border); }
.hero-card-block {
  flex: 1; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(62,123,250,.08) 0%, rgba(168,85,247,.08) 100%);
  border: 1px solid var(--border);
}

@media(max-width:900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero h1 { font-size: 36px; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .hero-badges { justify-content: center; }
  .hero-visual { display: none; }
}

/* ════════════════════════════════════════
   Stats Bar
   ════════════════════════════════════════ */
.stats {
  background: var(--navy-light); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 48px 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center;
}
.stat-num { font-size: 36px; font-weight: 800; color: var(--accent); margin-bottom: 4px; }
.stat-label { font-size: 14px; color: var(--text-dim); }
@media(max-width:600px) { .stats-grid { grid-template-columns: repeat(2,1fr); gap: 32px; } }

/* ════════════════════════════════════════
   Section Shared
   ════════════════════════════════════════ */
.section { padding: 80px 0; }
.section-alt { background: var(--navy-light); }
.section-title {
  font-size: 32px; font-weight: 700; text-align: center; margin-bottom: 12px;
}
.section-sub {
  font-size: 16px; color: var(--text-dim); text-align: center; max-width: 640px; margin: 0 auto 48px;
}

/* ════════════════════════════════════════
   Feature Cards
   ════════════════════════════════════════ */
.features-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 24px;
}
.fcard {
  background: var(--navy-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  transition: all var(--transition);
}
.fcard:hover {
  transform: translateY(-6px);
  border-color: rgba(62,123,250,.3);
  box-shadow: 0 12px 40px rgba(62,123,250,.08);
}
.fcard-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.fcard-icon.blue { background: rgba(62,123,250,.12); color: var(--accent); }
.fcard-icon.green { background: rgba(34,197,94,.12); color: var(--green); }
.fcard-icon.purple { background: rgba(168,85,247,.12); color: var(--purple); }
.fcard-icon.orange { background: rgba(245,158,11,.12); color: var(--orange); }
.fcard-icon.red { background: rgba(239,68,68,.12); color: var(--red); }
.fcard h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.fcard p { font-size: 14px; color: var(--text-dim); line-height: 1.7; }

@media(max-width:900px) { .features-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:600px) { .features-grid { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════
   Platform Section
   ════════════════════════════════════════ */
.platforms-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 20px;
}
.pcard {
  background: var(--navy-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; text-align: center;
  transition: all var(--transition);
}
.pcard:hover { transform: translateY(-4px); border-color: rgba(62,123,250,.3); }
.pcard-icon {
  width: 56px; height: 56px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(62,123,250,.1);
  color: var(--accent);
}
.pcard h4 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.pcard p { font-size: 13px; color: var(--text-dim); margin-bottom: 16px; }
.pcard button, .pcard .btn { width: 100%; }

@media(max-width:900px) { .platforms-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:500px) { .platforms-grid { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════
   Reviews
   ════════════════════════════════════════ */
.reviews-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 24px;
}
.rcard {
  background: var(--navy-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: all var(--transition);
}
.rcard:hover { border-color: rgba(62,123,250,.2); }
.rcard-stars { display: flex; gap: 2px; margin-bottom: 14px; color: var(--orange); }
.rcard-text { font-size: 14px; color: var(--text-dim); line-height: 1.8; margin-bottom: 18px; }
.rcard-user { display: flex; align-items: center; gap: 12px; }
.rcard-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; color: var(--white);
}
.rcard-avatar.a { background: var(--accent); }
.rcard-avatar.b { background: var(--purple); }
.rcard-avatar.c { background: var(--green); }
.rcard-avatar.d { background: var(--orange); }
.rcard-avatar.e { background: var(--red); }
.rcard-avatar.f { background: #0ea5e9; }
.rcard-name { font-size: 14px; font-weight: 600; }
.rcard-role { font-size: 12px; color: var(--text-muted); }

@media(max-width:900px) { .reviews-grid { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════
   FAQ Accordion
   ════════════════════════════════════════ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 12px; overflow: hidden;
  background: var(--navy-card);
  transition: border-color var(--transition);
}
.faq-item.open { border-color: rgba(62,123,250,.3); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; cursor: pointer;
  font-size: 15px; font-weight: 600; color: var(--text);
  background: none; width: 100%; text-align: left; color: var(--text);
}
.faq-q svg { flex-shrink: 0; transition: transform var(--transition); color: var(--text-dim); }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  padding: 0 24px;
}
.faq-item.open .faq-a { max-height: 400px; padding: 0 24px 20px; }
.faq-a p { font-size: 14px; color: var(--text-dim); line-height: 1.8; }

/* ════════════════════════════════════════
   Download Page — Hero Alt
   ════════════════════════════════════════ */
.dl-hero {
  padding: 140px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
}
.dl-hero h1 { font-size: 40px; font-weight: 800; margin-bottom: 14px; }
.dl-hero p { font-size: 17px; color: var(--text-dim); max-width: 560px; margin: 0 auto; }

/* Download main card */
.dl-main {
  max-width: 720px; margin: -20px auto 0; position: relative; z-index: 2;
  background: var(--navy-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 40px; text-align: center;
}
.dl-main-icon {
  width: 72px; height: 72px; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px; background: linear-gradient(135deg, var(--accent), #818cf8);
  color: var(--white);
}
.dl-main h2 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.dl-main .dl-meta { font-size: 14px; color: var(--text-dim); margin-bottom: 24px; }
.dl-main .dl-meta span { margin: 0 8px; }
.dl-main .dl-note { font-size: 12px; color: var(--text-muted); margin-top: 16px; }

/* Steps */
.dl-steps { padding: 60px 0; }
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.step-card { text-align: center; padding: 24px; }
.step-num {
  width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(62,123,250,.12); color: var(--accent);
  font-size: 20px; font-weight: 800;
}
.step-card h4 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--text-dim); }
@media(max-width:600px) { .steps-grid { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════
   zh-cn Page — Prose
   ════════════════════════════════════════ */
.prose { max-width: 800px; margin: 0 auto; }
.prose h2 { font-size: 26px; font-weight: 700; margin: 48px 0 16px; }
.prose h3 { font-size: 20px; font-weight: 600; margin: 32px 0 12px; }
.prose p { font-size: 15px; color: var(--text-dim); line-height: 1.9; margin-bottom: 16px; }
.prose ul { margin: 0 0 16px 20px; }
.prose ul li { font-size: 15px; color: var(--text-dim); line-height: 1.9; list-style: disc; margin-bottom: 6px; }

/* Comparison table */
.cmp-table { width: 100%; border-collapse: collapse; margin: 24px 0 40px; }
.cmp-table th, .cmp-table td {
  padding: 14px 18px; text-align: left;
  border-bottom: 1px solid var(--border); font-size: 14px;
}
.cmp-table th { font-weight: 600; color: var(--text); background: var(--navy-card); }
.cmp-table td { color: var(--text-dim); }
.cmp-table tr:hover td { background: rgba(62,123,250,.04); }
.cmp-check { color: var(--green); }
.cmp-cross { color: var(--red); opacity: .6; }

/* Timeline */
.timeline { position: relative; padding-left: 28px; margin: 24px 0 40px; }
.timeline::before {
  content: ''; position: absolute; left: 7px; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}
.tl-item { position: relative; margin-bottom: 28px; }
.tl-item::before {
  content: ''; position: absolute; left: -24px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--navy);
}
.tl-date { font-size: 13px; color: var(--accent); font-weight: 600; margin-bottom: 4px; }
.tl-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.tl-desc { font-size: 14px; color: var(--text-dim); }

/* CTA Banner */
.cta-banner {
  text-align: center; padding: 64px 24px;
  background: linear-gradient(135deg, var(--navy-card) 0%, #1a3562 100%);
  border-radius: var(--radius); margin: 0 auto; max-width: var(--max-w);
}
.cta-banner h2 { font-size: 30px; font-weight: 700; margin-bottom: 12px; }
.cta-banner p { font-size: 16px; color: var(--text-dim); margin-bottom: 28px; }

/* ════════════════════════════════════════
   Footer
   ════════════════════════════════════════ */
.site-footer {
  padding: 40px 0; text-align: center;
  border-top: 1px solid var(--border);
  background: var(--navy);
}
.footer-safe {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--green); margin-bottom: 12px;
}
.footer-copy { font-size: 12px; color: var(--text-muted); line-height: 1.8; }

/* ════════════════════════════════════════
   Utility
   ════════════════════════════════════════ */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-24 { margin-bottom: 24px; }
.gap-12 { gap: 12px; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* Tips grid */
.tips-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; margin: 24px 0 40px; }
.tip-card {
  background: var(--navy-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 24px;
}
.tip-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.tip-card p { font-size: 14px; color: var(--text-dim); line-height: 1.7; }
@media(max-width:600px) { .tips-grid { grid-template-columns: 1fr; } }
