/* ===================================================
   WPS Office 2026 — Download Page Styles
   =================================================== */

/* ===== DOWNLOAD HERO ===== */
.dl-hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 68px;
}

.dl-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0A0A14 0%, #0D1A2E 50%, #1A0A28 100%);
}

.dl-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}

.dl-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(59,130,246,0.35) 0%, transparent 70%);
  top: -150px; right: -100px;
}

.dl-orb-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(255,107,53,0.3) 0%, transparent 70%);
  bottom: -100px; left: 10%;
}

.dl-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.dl-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-4xl) 0 var(--space-3xl);
}

.dl-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.4rem 1.2rem;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: var(--radius-full);
  color: var(--accent-blue);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--space-xl);
}

.dl-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-lg);
}

.dl-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.8;
}

.dl-main-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.dl-detect-card {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-lg) var(--space-2xl);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  flex-wrap: wrap;
  justify-content: center;
}

.detect-icon {
  width: 56px; height: 56px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  flex-shrink: 0;
}

.detect-info {
  text-align: left;
}

.detect-platform {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.detect-version {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.dl-btn {
  flex-shrink: 0;
}

.dl-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ===== PLATFORMS SECTION ===== */
.platforms-section {
  padding: var(--space-4xl) 0;
  background: var(--bg-base);
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.platform-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-primary);
  opacity: 0;
  transition: var(--transition);
}

.platform-card:hover {
  border-color: var(--border-light);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.platform-card:hover::after {
  opacity: 1;
}

.featured-platform {
  background: linear-gradient(135deg, rgba(59,130,246,0.08) 0%, rgba(139,92,246,0.08) 100%);
  border-color: rgba(59,130,246,0.25);
  grid-column: span 2;
}

.featured-platform::after {
  background: var(--grad-blue);
}

.harmony-card {
  background: linear-gradient(135deg, rgba(255,107,53,0.06) 0%, rgba(255,51,102,0.06) 100%);
  border-color: rgba(255,107,53,0.2);
}

.platform-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.platform-icon-large {
  width: 52px; height: 52px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  flex-shrink: 0;
}

.mac-icon    { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1); color: var(--text-secondary); }
.android-icon{ background: rgba(34,197,94,0.1);   border-color: rgba(34,197,94,0.2);   color: var(--accent-green); }
.ios-icon    { background: rgba(139,92,246,0.1);  border-color: rgba(139,92,246,0.2);  color: var(--accent-purple); }
.harmony-icon{ background: rgba(255,107,53,0.1);  border-color: rgba(255,107,53,0.2);  color: var(--primary); }
.linux-icon  { background: rgba(251,191,36,0.1);  border-color: rgba(251,191,36,0.2);  color: #FBBF24; }

.platform-card-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.platform-recommend {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: var(--radius-full);
  color: var(--accent-blue);
  font-size: 0.7rem;
  font-weight: 700;
}

.platform-new-badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  background: rgba(255,107,53,0.15);
  border: 1px solid rgba(255,107,53,0.3);
  border-radius: var(--radius-full);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
}

.platform-version-badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: var(--radius-full);
  color: var(--accent-purple);
  font-size: 0.7rem;
  font-weight: 700;
}

.platform-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
}

.platform-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.pf-tag {
  padding: 0.2rem 0.65rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.platform-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.platform-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.primary-dl {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255,107,53,0.3);
}

.primary-dl:hover {
  box-shadow: 0 8px 24px rgba(255,107,53,0.45);
  transform: translateY(-1px);
}

.ghost-dl {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.ghost-dl:hover {
  color: var(--text-primary);
  border-color: var(--border-light);
  background: var(--bg-card-hover);
}

/* ===== VERSION SECTION ===== */
.version-section {
  padding: var(--space-4xl) 0;
  background: var(--bg-surface);
}

.version-timeline {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}

.version-timeline::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
}

.version-item {
  display: flex;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
  position: relative;
}

.version-dot {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--border-light);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  margin-top: 4px;
}

.current-version .version-dot {
  background: var(--grad-primary);
  border-color: transparent;
  box-shadow: 0 0 20px rgba(255,107,53,0.4);
}

.version-content {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: var(--transition);
}

.current-version .version-content {
  border-color: rgba(255,107,53,0.25);
  background: linear-gradient(135deg, rgba(255,107,53,0.05) 0%, rgba(255,51,102,0.05) 100%);
}

.version-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
}

.version-num {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: 'Inter', monospace;
}

.version-date {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.version-tag {
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
}

.version-tag.latest {
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.3);
  color: var(--accent-green);
}

.version-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.version-changes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.version-changes li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.change-new {
  padding: 0.1rem 0.5rem;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 4px;
  color: var(--accent-green);
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.change-improve {
  padding: 0.1rem 0.5rem;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 4px;
  color: var(--accent-blue);
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.change-fix {
  padding: 0.1rem 0.5rem;
  background: rgba(251,191,36,0.12);
  border: 1px solid rgba(251,191,36,0.25);
  border-radius: 4px;
  color: #FBBF24;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.version-more {
  text-align: center;
  margin-top: var(--space-xl);
}

/* ===== INSTALL SECTION ===== */
.install-section {
  padding: var(--space-4xl) 0;
  background: var(--bg-base);
}

.install-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.install-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  flex: 1;
  min-width: 220px;
  max-width: 280px;
  transition: var(--transition);
  position: relative;
}

.install-step:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-number {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  font-family: 'Inter', sans-serif;
}

.step-icon {
  width: 56px; height: 56px;
  background: rgba(255,107,53,0.1);
  border: 1px solid rgba(255,107,53,0.2);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin: 0 auto var(--space-lg);
}

.install-step h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.install-step p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.install-arrow {
  font-size: 1.5rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ===== SYSTEM REQUIREMENTS ===== */
.sysreq-section {
  padding: var(--space-4xl) 0;
  background: var(--bg-surface);
}

.sysreq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.sysreq-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: var(--transition);
}

.sysreq-card:hover {
  border-color: var(--border-light);
}

.sysreq-platform {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}

.req-table {
  width: 100%;
  border-collapse: collapse;
}

.req-table tr {
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.req-table tr:last-child {
  border-bottom: none;
}

.req-table td {
  padding: 0.55rem 0;
  font-size: 0.85rem;
  vertical-align: top;
}

.req-table td:first-child {
  color: var(--text-muted);
  width: 35%;
  padding-right: var(--space-md);
}

.req-table td:last-child {
  color: var(--text-secondary);
}

/* ===== FAQ SECTION ===== */
.faq-section {
  padding: var(--space-4xl) 0;
  background: var(--bg-base);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--border-light);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}

.faq-q:hover {
  color: var(--primary);
}

.faq-arrow {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-q.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-a {
  display: none;
  padding: 0 var(--space-xl) var(--space-lg);
}

.faq-a.open {
  display: block;
}

.faq-a p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ===== CTA (reuse from index) ===== */
.cta-section {
  position: relative;
  padding: var(--space-4xl) 0;
  overflow: hidden;
  background: var(--bg-surface);
}

.cta-bg {
  position: absolute;
  inset: 0;
}

.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
}

.cta-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,107,53,0.4) 0%, transparent 70%);
  top: -200px; left: -100px;
}

.cta-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(59,130,246,0.3) 0%, transparent 70%);
  bottom: -150px; right: -50px;
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-inner h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
}

.cta-inner p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-platform { grid-column: span 2; }
  .sysreq-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .platform-grid { grid-template-columns: 1fr; }
  .featured-platform { grid-column: span 1; }
  .install-steps { flex-direction: column; align-items: stretch; }
  .install-arrow { display: none; }
  .install-step { max-width: 100%; }
  .dl-detect-card { flex-direction: column; text-align: center; }
  .detect-info { text-align: center; }
}
