/* ═══════════════════════════════════════════════
   AuroraView (极光相册) — Sci-Fi Official Website
   Aurora-themed palette: aurora green + cyan + blue + purple
   ═══════════════════════════════════════════════ */

:root {
  --bg-deep: #070a12;
  --bg-card: rgba(10, 16, 32, 0.85);
  --aurora: #00ffb3;
  --aurora-dim: rgba(0, 255, 179, 0.14);
  --cyan: #00e5ff;
  --blue: #4d7cff;
  --purple: #b46cff;
  --green: #00ff88;
  --text: #e4ecf5;
  --text-dim: #8a9bb0;
  --border: rgba(0, 255, 179, 0.22);
  --glow: 0 0 20px rgba(0, 255, 179, 0.28), 0 0 60px rgba(0, 255, 179, 0.1);
  --glow-strong: 0 0 30px rgba(0, 255, 179, 0.45), 0 0 80px rgba(0, 229, 255, 0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg-deep);
  color: var(--text);
  font-family: 'SF Pro Display', 'Segoe UI', 'Noto Sans SC', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ═══════════ ANIMATED BACKGROUND ═══════════ */
.bg-grid {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0,255,179,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,179,0.028) 1px, transparent 1px);
  background-size: 60px 60px;
}

.bg-particles {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  opacity: 0.6;
}

.bg-aurora {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 20% 0%, rgba(0,255,179,0.07), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 10%, rgba(180,108,255,0.06), transparent 60%),
    radial-gradient(ellipse 40% 35% at 50% 100%, rgba(0,229,255,0.05), transparent 60%);
  animation: auroraShift 16s ease-in-out infinite;
}
@keyframes auroraShift {
  0%, 100% { opacity: 0.7; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2%); }
}

.bg-glow-1 {
  position: fixed; top: -200px; right: -200px; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,255,179,0.08), transparent 70%);
  z-index: 0; pointer-events: none; border-radius: 50%;
}

.bg-glow-2 {
  position: fixed; bottom: -100px; left: -100px; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(180,108,255,0.06), transparent 70%);
  z-index: 0; pointer-events: none; border-radius: 50%;
}

/* ═══════════ NAVIGATION ═══════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(7,10,18,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  font-weight: 700; font-size: 1.2rem;
}

.nav-logo img { height: 36px; width: 36px; border-radius: 8px; }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--text-dim); text-decoration: none;
  font-size: 0.9rem; transition: color 0.3s;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--aurora); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--aurora); transition: width 0.3s;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 6rem 2rem 4rem;
}

.hero-logo {
  width: 140px; height: 140px; border-radius: 30px;
  box-shadow: var(--glow-strong);
  margin-bottom: 2rem;
  animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--aurora), var(--cyan), var(--blue), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.3rem; color: var(--text-dim);
  max-width: 680px; margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-badges {
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
  margin-bottom: 2.5rem;
}

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--aurora-dim);
  font-size: 0.85rem; color: var(--aurora);
  backdrop-filter: blur(10px);
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.85rem 2rem;
  border-radius: 12px;
  font-weight: 600; font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer; border: none;
  position: relative; overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--cyan), var(--aurora));
  color: #06121a;
  box-shadow: 0 4px 25px rgba(0, 255, 179, 0.3);
}
.btn-primary:hover {
  box-shadow: 0 6px 35px rgba(0, 255, 179, 0.5);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--aurora);
}
.btn-outline:hover {
  background: var(--aurora-dim);
  border-color: var(--aurora);
}

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

.scroll-indicator {
  position: absolute; bottom: 2rem;
  display: flex; flex-direction: column; align-items: center;
  animation: scrollBounce 2s ease-in-out infinite;
  color: var(--text-dim); font-size: 0.75rem; gap: 6px;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* ═══════════ SECTIONS ═══════════ */
section {
  position: relative; z-index: 1;
  padding: 6rem 2rem;
}

.section-inner { max-width: 1200px; margin: 0 auto; }

.section-header {
  text-align: center; margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.2rem; font-weight: 700;
  color: var(--aurora); margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-dim); font-size: 1.1rem;
}

.section-label {
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-size: 0.75rem; color: var(--aurora);
  text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 1rem;
}

/* ═══════════ FEATURES GRID ═══════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s;
  position: relative; overflow: hidden;
  backdrop-filter: blur(10px);
}

.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--aurora), transparent);
  opacity: 0; transition: opacity 0.3s;
}

.feature-card:hover {
  border-color: var(--aurora);
  transform: translateY(-4px);
  box-shadow: var(--glow);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--aurora-dim);
  font-size: 1.5rem; margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--text);
}

.feature-card p {
  font-size: 0.9rem; color: var(--text-dim); line-height: 1.6;
}

/* ═══════════ FORMATS ═══════════ */
#formats { background: rgba(0,0,0,0.3); }

.formats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.format-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
  text-align: center;
}

.format-card:hover {
  border-color: var(--aurora);
  box-shadow: var(--glow);
  transform: translateY(-3px);
}

.format-card h3 {
  color: var(--aurora);
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.format-chips {
  display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center;
}

.chip {
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: rgba(0,255,179,0.05);
  font-size: 0.82rem;
  color: var(--text);
  font-family: 'SF Mono', 'Fira Code', monospace;
  transition: all 0.3s;
}
.chip:hover {
  border-color: var(--aurora);
  color: var(--aurora);
  box-shadow: 0 0 10px rgba(0,255,179,0.3);
}

.format-note {
  margin: 2rem auto 0;
  max-width: 750px;
  text-align: center;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  background: rgba(0,255,136,0.06);
  border: 1px solid rgba(0,255,136,0.2);
  font-size: 0.82rem;
  color: var(--green);
  line-height: 1.5;
}

/* ═══════════ HOW IT WORKS ═══════════ */
#how-it-works { background: rgba(0,0,0,0.2); }

.workflow {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.workflow-step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  position: relative;
  padding: 1.5rem 0;
}

.workflow-step::after {
  content: '';
  position: absolute;
  left: 21px;
  top: 60px;
  bottom: -10px;
  width: 2px;
  background: linear-gradient(180deg, var(--aurora), transparent);
  opacity: 0.4;
}

.workflow-step:last-child::after { display: none; }

.workflow-num {
  width: 44px; height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: var(--aurora-dim);
  border: 1px solid var(--aurora);
  color: var(--aurora);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem;
  z-index: 2;
}

.workflow-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  flex: 1;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}

.workflow-content:hover {
  border-color: var(--aurora);
  box-shadow: 0 0 15px rgba(0,255,179,0.15);
}

.workflow-content h4 {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.workflow-content p {
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ═══════════ SCREENSHOTS ═══════════ */
#screenshots { background: rgba(0,0,0,0.3); }

.screenshot-hero {
  display: flex; justify-content: center;
}

.screenshot-card {
  width: min(900px, 100%);
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s;
  background: var(--bg-card);
}

.screenshot-card:hover {
  border-color: var(--aurora);
  box-shadow: var(--glow);
}

.screenshot-card img {
  width: 100%; height: auto; display: block;
  cursor: zoom-in;
  object-fit: contain;
}

.screenshot-label {
  padding: 0.75rem 1.2rem;
  background: rgba(0,0,0,0.6);
  font-size: 0.85rem; color: var(--text-dim);
  text-align: center;
}

/* ═══════════ LIGHTBOX ═══════════ */
.lightbox {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.92); z-index: 1000;
  align-items: center; justify-content: center;
  backdrop-filter: blur(10px);
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw; max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 0 60px rgba(0,255,179,0.2);
}
.lightbox-close {
  position: absolute; top: 2rem; right: 2rem;
  background: none; border: none;
  color: var(--text); font-size: 2.5rem;
  cursor: pointer; transition: color 0.3s; z-index: 1001;
}
.lightbox-close:hover { color: var(--aurora); }

/* ═══════════ DOWNLOAD SECTION ═══════════ */
#download {
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(0,255,179,0.03), transparent);
}

.download-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3rem 2rem;
  max-width: 600px; margin: 0 auto;
  backdrop-filter: blur(10px);
}

.download-box .version {
  color: var(--aurora); font-size: 0.85rem;
  margin: 0.5rem 0 1.5rem;
}

.download-box .dl-meta {
  margin-top: 1.5rem;
  font-size: 0.8rem; color: var(--text-dim);
  display: flex; gap: 1.5rem; justify-content: center;
  flex-wrap: wrap;
}

/* ═══════════ TECH STACK ═══════════ */
#tech-stack { background: rgba(0,0,0,0.2); }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}

.tech-card:hover {
  border-color: var(--aurora);
  transform: translateY(-2px);
}

.tech-card .tech-name {
  font-weight: 700;
  color: var(--aurora);
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.tech-card .tech-desc {
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* ═══════════ FOOTER ═══════════ */
footer {
  position: relative; z-index: 1;
  text-align: center; padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim); font-size: 0.85rem;
}

footer a { color: var(--aurora); text-decoration: none; }
footer a:hover { text-decoration: underline; }

.footer-links {
  display: flex; gap: 1.5rem; justify-content: center;
  list-style: none; margin-bottom: 1rem; flex-wrap: wrap;
}

/* ═══════════ LANG DROPDOWN ═══════════ */
.lang-dropdown {
  position: relative;
  display: inline-flex;
}

.lang-toggle {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.8rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}
.lang-toggle:hover { border-color: var(--aurora); }

.lang-arrow { font-size: 0.65rem; color: var(--text-dim); margin-left: 2px; }

.lang-menu {
  display: none;
  position: absolute;
  top: 100%; right: 0;
  margin-top: 6px;
  min-width: 150px;
  background: rgba(15, 20, 35, 0.96);
  border: 1px solid var(--border);
  border-radius: 10px;
  backdrop-filter: blur(20px);
  z-index: 200;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}
.lang-menu.open { display: block; }

.lang-option {
  display: block;
  width: 100%;
  padding: 10px 16px;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-option:hover {
  background: var(--aurora-dim);
  color: var(--aurora);
}
.lang-option.active {
  color: var(--aurora);
  background: rgba(0,255,179,0.08);
}

/* ═══════════ SCROLL ANIMATIONS ═══════════ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 768px) {
  .hero-logo { width: 100px; height: 100px; border-radius: 22px; }
  .hero h1 { font-size: 2rem; }
  .features-grid { grid-template-columns: 1fr; }
  .formats-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .tech-grid { grid-template-columns: 1fr 1fr; }
  .workflow-step { padding: 1rem 0; }
  .workflow-num { width: 36px; height: 36px; min-width: 36px; font-size: 0.85rem; }
}
