/* ═══════════════════════════════════════════════════
   闪潮购 — WPS Office 极速下载站
   核心样式表 (Core Stylesheet)
   ═══════════════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --acid-orange: #ff5722;
  --acid-orange-light: #ff784e;
  --acid-orange-dark: #e64a19;
  --dark-bg: #1a1a1a;
  --dark-bg-deep: #0d0d0d;
  --dark-bg-card: #252525;
  --dark-bg-hover: #333333;
  --text-primary: #f5f5f5;
  --text-secondary: #aaaaaa;
  --text-muted: #666666;
  --kinetic-red: #e53935;
  --neon-green: #4ade80;
  --liquid-glass-bg: rgba(255, 255, 255, 0.03);
  --liquid-glass-border: rgba(255, 255, 255, 0.1);
  --liquid-glass-blur: blur(12px);
  --font-display: 'Oswald', 'Arial Black', 'Helvetica Neue', sans-serif;
  --font-body: 'Noto Sans SC', "PingFang SC", "Microsoft YaHei", sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--acid-orange);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--acid-orange-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(36px, 5vw, 64px); }
h2 { font-size: clamp(28px, 3.5vw, 48px); }
h3 { font-size: clamp(20px, 2.5vw, 28px); }
h4 { font-size: clamp(18px, 2vw, 22px); }

p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
}

.text-accent { color: var(--acid-orange); }
.text-success { color: var(--neon-green); }
.text-muted { color: var(--text-muted); }

/* ── Keyframes ── */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 87, 34, 0.3); }
  50% { box-shadow: 0 0 40px rgba(255, 87, 34, 0.6); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes light-sweep {
  0% {
    clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
  }
  50% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  }
  100% {
    clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
  }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Layout ── */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 18px;
}

/* ── Navigation ── */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--liquid-glass-border);
  transition: background 0.4s ease, border-color 0.4s ease;
}

.main-nav.scrolled {
  background: rgba(26, 26, 26, 0.95);
  border-bottom-color: rgba(255, 87, 34, 0.2);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.nav-logo svg {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--acid-orange);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--acid-orange);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-cta:hover {
  background: var(--acid-orange-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 87, 34, 0.4);
}

.nav-cta svg {
  width: 16px;
  height: 16px;
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

/* ── 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;
  cursor: pointer;
  border: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--acid-orange);
  color: #fff;
  animation: pulse-glow 3s ease-in-out infinite;
}

.btn-primary:hover {
  background: var(--acid-orange-light);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(255, 87, 34, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--liquid-glass-border);
}

.btn-secondary:hover {
  border-color: var(--acid-orange);
  color: var(--acid-orange);
  background: rgba(255, 87, 34, 0.05);
}

.btn-large {
  padding: 18px 48px;
  font-size: 18px;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ── Liquid Glass Card ── */
.glass-card {
  background: var(--liquid-glass-bg);
  backdrop-filter: var(--liquid-glass-blur);
  -webkit-backdrop-filter: var(--liquid-glass-blur);
  border: 1px solid var(--liquid-glass-border);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: rgba(255, 87, 34, 0.3);
  transform: scale(1.02);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

/* ── Sweeping Neon Light ── */
.sweeping-neon-container {
  position: relative;
  display: inline-block;
  color: #333;
  text-transform: uppercase;
  font-weight: 700;
  user-select: none;
  -webkit-user-select: none;
}

.sweeping-neon-container::before,
.sweeping-neon-container::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.sweeping-neon-container::before {
  color: #fff;
  filter: blur(0.02em);
  clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
  animation: light-sweep 6s linear infinite;
}

.sweeping-neon-container::after {
  color: var(--acid-orange);
  filter: blur(0.3em);
  mix-blend-mode: screen;
  clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
  animation: light-sweep 6s linear infinite;
}

/* ── Grid System ── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ── Feature Card ── */
.feature-card {
  background: var(--dark-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 40px 32px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--acid-orange), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover {
  border-color: rgba(255, 87, 34, 0.2);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 87, 34, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: var(--acid-orange);
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.feature-card p {
  font-size: 15px;
  line-height: 1.7;
}

/* ── Download Platform Card ── */
.platform-card {
  background: var(--dark-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.platform-card:hover {
  border-color: rgba(255, 87, 34, 0.3);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.platform-card .platform-icon {
  width: 72px;
  height: 72px;
  background: rgba(255, 87, 34, 0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.platform-card .platform-icon svg {
  width: 36px;
  height: 36px;
  color: var(--acid-orange);
}

.platform-card.featured {
  border-color: var(--acid-orange);
  background: linear-gradient(180deg, rgba(255, 87, 34, 0.08) 0%, var(--dark-bg-card) 100%);
}

.platform-card.featured::after {
  content: '推荐';
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--acid-orange);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
}

/* ── FAQ Accordion ── */
.faq-item {
  background: var(--dark-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(255, 87, 34, 0.15);
}

.faq-question {
  width: 100%;
  padding: 24px 32px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-family: var(--font-body);
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--acid-orange);
}

.faq-question svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
  color: var(--acid-orange);
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s ease;
  padding: 0 32px;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 32px 24px;
}

.faq-answer p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* ── Testimonial Card ── */
.testimonial-card {
  background: var(--dark-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 32px;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 80px;
  color: var(--acid-orange);
  opacity: 0.3;
  line-height: 1;
  position: absolute;
  top: 8px;
  left: 20px;
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.testimonial-stars svg {
  width: 18px;
  height: 18px;
  color: var(--acid-orange);
  fill: var(--acid-orange);
}

.testimonial-text {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--acid-orange), var(--kinetic-red));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-author-info h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial-author-info span {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Stats ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-item {
  text-align: center;
  padding: 32px 24px;
  background: var(--dark-bg-card);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  color: var(--acid-orange);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── SEO Content Block ── */
.seo-content {
  background: var(--dark-bg-card);
  border-radius: 16px;
  padding: 48px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.seo-content h3 {
  color: var(--acid-orange);
  margin-bottom: 20px;
  font-size: 24px;
}

.seo-content h4 {
  color: var(--text-primary);
  margin: 28px 0 12px;
  font-size: 18px;
}

.seo-content p {
  margin-bottom: 16px;
  font-size: 16px;
}

.seo-content ul,
.seo-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.seo-content li {
  color: var(--text-secondary);
  margin-bottom: 10px;
  line-height: 1.7;
}

.seo-content strong {
  color: var(--text-primary);
}

/* ── Comparison Table ── */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comparison-table th {
  background: rgba(255, 87, 34, 0.1);
  color: var(--acid-orange);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.comparison-table td {
  color: var(--text-secondary);
  font-size: 15px;
}

.comparison-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.comparison-table .check {
  color: var(--neon-green);
}

.comparison-table .cross {
  color: var(--kinetic-red);
}

/* ── Version Log ── */
.version-log {
  border-left: 2px solid var(--acid-orange);
  padding-left: 24px;
}

.version-entry {
  margin-bottom: 32px;
  position: relative;
}

.version-entry::before {
  content: '';
  position: absolute;
  left: -31px;
  top: 4px;
  width: 12px;
  height: 12px;
  background: var(--acid-orange);
  border-radius: 50%;
  border: 3px solid var(--dark-bg);
}

.version-date {
  font-size: 14px;
  color: var(--acid-orange);
  font-weight: 600;
  margin-bottom: 8px;
}

.version-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.version-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.version-desc ul {
  padding-left: 20px;
  margin-top: 8px;
}

.version-desc li {
  margin-bottom: 6px;
}

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.15), rgba(229, 57, 53, 0.1));
  border: 1px solid rgba(255, 87, 34, 0.2);
  border-radius: 20px;
  padding: 60px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 87, 34, 0.1) 0%, transparent 60%);
  animation: float 6s ease-in-out infinite;
}

.cta-banner h2,
.cta-banner p,
.cta-banner .btn {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  margin-bottom: 16px;
}

.cta-banner p {
  max-width: 600px;
  margin: 0 auto 32px;
  font-size: 18px;
}

/* ── Footer ── */
.main-footer {
  background: var(--dark-bg-deep);
  border-top: 1px solid rgba(255, 87, 34, 0.2);
  padding: 60px 0 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-links h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--acid-orange);
}

.footer-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-disclaimer p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 700px;
}

.footer-disclaimer .security-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--neon-green);
  font-size: 13px;
  font-weight: 500;
  flex-shrink: 0;
}

.footer-disclaimer .security-badge svg {
  width: 18px;
  height: 18px;
}

.footer-copyright {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  margin-top: 24px;
}

.footer-copyright p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Scroll Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--acid-orange);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--acid-orange-light);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-3,
  .grid-4,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 80px 0;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.98);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--liquid-glass-border);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-mobile-toggle {
    display: block;
  }

  .nav-cta {
    display: none;
  }

  .grid-3,
  .grid-4,
  .grid-2,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-disclaimer {
    flex-direction: column;
  }

  .section {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 48px;
  }

  .cta-banner {
    padding: 40px 24px;
  }

  .seo-content {
    padding: 32px 24px;
  }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
