﻿html,
body {
  height: 100%;
  padding-top: 34px;
}
header.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  padding: var(--spacing-md) 0;
  background: transparent;
  transition: all var(--transition-base);
}
header.header.scrolled {
  background: var(--color-bg-glass);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}
header.header .container {
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header.header .nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
}
header.header .logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  text-decoration: none;
  color: var(--color-text-primary);
}
header.header .logo img {
  width: 32px;
  height: 32px;
}
header.header .logo-text {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  background: var(--color-accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
header.header .nav-menu {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}
header.header .nav-link {
  padding: var(--spacing-xs) var(--spacing-md);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}
header.header .nav-link:hover {
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.05);
}
header.header .nav-link.active {
  color: var(--color-accent-primary);
}
header.header .nav-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}
.page-header {
  padding: calc(80px + var(--spacing-3xl)) 0 var(--spacing-2xl);
  text-align: center;
  position: relative;
}
.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 300px;
  background: radial-gradient(
    ellipse at center top,
    rgba(255, 0, 122, 0.15) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.page-title {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--spacing-md);
}
.page-description {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}
.download-section {
  padding: var(--spacing-2xl) 0 var(--spacing-4xl);
}
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-xl);
  max-width: 900px;
  margin: 0 auto;
}
.download-card {
  position: relative;
  overflow: hidden;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  transition: all var(--transition-base);
}
.download-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent-gradient);
  opacity: 0;
  transition: opacity var(--transition-base);
}
.download-card:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.download-card:hover::before {
  opacity: 1;
}
.download-card-primary {
  border-color: var(--color-border-accent);
  box-shadow: var(--shadow-glow-sm);
}
.download-card-primary::before {
  content: "推荐";
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  background: var(--color-accent-gradient);
  border-radius: var(--radius-full);
  z-index: 1;
  opacity: 1;
  height: auto;
  left: auto;
}
.download-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
  font-size: 2rem;
  background: linear-gradient(
    135deg,
    rgba(255, 0, 122, 0.15) 0%,
    rgba(255, 77, 166, 0.08) 100%
  );
  border: 1px solid rgba(255, 0, 122, 0.2);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}
.download-card:hover .download-icon {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow-sm);
}
.download-platform {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}
.download-platform-icon {
  width: 24px;
  height: 24px;
}
.download-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
}
.download-version {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-md);
}
.download-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-md);
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-md);
}
.download-info-item {
  display: flex;
  justify-content: space-between;
  font-size: var(--font-size-sm);
}
.download-info-label {
  color: var(--color-text-muted);
}
.download-info-value {
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
}
.download-btn {
  width: 100%;
}
.download-progress {
  display: none;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}
.download-progress.active {
  display: flex;
}
.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--color-accent-gradient);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}
.progress-text {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  text-align: center;
}
.requirements-section {
  padding: var(--spacing-3xl) 0;
  background: var(--color-bg-secondary);
}
.requirements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
}
.requirement-card {
  padding: var(--spacing-xl);
  transition: all var(--transition-base);
}
.requirement-card:hover {
  transform: translateY(-2px);
}
.requirement-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  font-size: 1.5rem;
  background: linear-gradient(
    135deg,
    rgba(255, 0, 122, 0.1) 0%,
    rgba(255, 77, 166, 0.05) 100%
  );
  border-radius: var(--radius-lg);
}
.requirement-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-sm);
}
.requirement-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}
.requirement-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}
.requirement-item::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--color-accent-primary);
  border-radius: 50%;
}
.vip-notice {
  text-align: center;
  padding: var(--spacing-xl);
  background: rgba(255, 0, 122, 0.05);
  border: 1px solid rgba(255, 0, 122, 0.15);
  border-radius: var(--radius-lg);
  max-width: 600px;
  margin: var(--spacing-2xl) auto 0;
}
.vip-notice p {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  line-height: 1.7;
}
.vip-notice a {
  color: var(--color-accent-primary);
  text-decoration: underline;
}
.thank-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(8px);
}
.thank-modal {
  background: linear-gradient(
    135deg,
    var(--color-bg-card) 0%,
    var(--color-bg-secondary) 100%
  );
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  max-width: 420px;
  width: 90%;
  text-align: center;
  animation: scaleIn 0.3s ease forwards;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.thank-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-lg);
  background: linear-gradient(
    135deg,
    rgba(40, 167, 69, 0.2) 0%,
    rgba(40, 167, 69, 0.1) 100%
  );
  border: 2px solid rgba(40, 167, 69, 0.3);
  border-radius: 50%;
  color: #28a745;
}
.thank-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-sm);
  background: var(--color-accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.thank-description {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-xl);
  line-height: 1.6;
}
.thank-links {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@media (max-width: 768px) {
  .page-header {
    padding: calc(80px + var(--spacing-2xl)) 0 var(--spacing-lg);
  }
  .download-grid {
    grid-template-columns: 1fr;
  }
}
.toast-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  z-index: 10000;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.8rem 2rem;
  min-width: 300px;
  max-width: 420px;
  text-align: center;
  opacity: 0;
  transition: all 0.25s ease;
  pointer-events: none;
}
.toast-popup.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}
.toast-popup-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.toast-popup-icon.success {
  background: rgba(0, 214, 143, 0.12);
  border: 1px solid rgba(0, 214, 143, 0.25);
  color: #00d68f;
}
.toast-popup-icon.error {
  background: rgba(255, 68, 68, 0.12);
  border: 1px solid rgba(255, 68, 68, 0.25);
  color: #ff4444;
}
.toast-popup-icon.info {
  background: rgba(255, 0, 122, 0.12);
  border: 1px solid rgba(255, 0, 122, 0.25);
  color: var(--color-accent-secondary);
}
.toast-popup-title {
  font-size: 1.05rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: 0.4rem;
}
.toast-popup-msg {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 1.2rem;
}
.toast-popup-btn {
  padding: 0.5rem 2rem;
  border-radius: var(--radius-lg);
  font-size: 0.85rem;
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  border: none;
  background: var(--color-accent-gradient);
  color: #fff;
  transition: all var(--transition-fast);
}
.toast-popup-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 0, 122, 0.3);
}
.toast-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.toast-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}