/* 变量与重置 */
:root {
  --bg-color: #050505;
  --card-bg: #0a0a0a;
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --accent-color: #00f2ea; /* Electric Teal */
  --accent-glow: rgba(0, 242, 234, 0.3);
  --border-color: #27272a;
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  /* 细微的网格背景 */
  background-image: 
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* 顶部渐变光晕 */
body::before {
  content: '';
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 242, 234, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* 英雄区域 (Hero Section) */
.hero-section {
  padding: 100px 0 160px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden; /* Prevent shooting stars from causing scrollbars */
}

/* Remove old pseudo-element background */
.hero-section::before {
  display: none;
}

/* New Background Container */
.hero-bg {
  position: absolute;
  top: 0;
  left: -50%; /* Extend wider than the container to catch shooting stars */
  width: 200%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Star Layers */
[class^="stars-"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.stars-1 {
  background-image: 
    radial-gradient(2px 2px at 50px 100px, rgba(255,255,255,0.8), transparent),
    radial-gradient(2px 2px at 150px 200px, rgba(255,255,255,0.8), transparent),
    radial-gradient(2px 2px at 250px 50px, rgba(255,255,255,0.8), transparent),
    radial-gradient(2px 2px at 350px 150px, rgba(255,255,255,0.8), transparent),
    radial-gradient(2px 2px at 450px 250px, rgba(255,255,255,0.8), transparent),
    radial-gradient(2px 2px at 550px 80px, rgba(255,255,255,0.8), transparent);
  background-size: 600px 600px;
  animation: twinkle 4s infinite ease-in-out, move-stars-1 100s linear infinite;
  opacity: 0.6;
}

.stars-2 {
  background-image: 
    radial-gradient(3px 3px at 100px 250px, rgba(0, 242, 234, 0.8), transparent),
    radial-gradient(3px 3px at 200px 100px, rgba(255,255,255,0.9), transparent),
    radial-gradient(3px 3px at 300px 300px, rgba(0, 242, 234, 0.8), transparent),
    radial-gradient(3px 3px at 400px 50px, rgba(255,255,255,0.9), transparent),
    radial-gradient(3px 3px at 500px 200px, rgba(0, 242, 234, 0.8), transparent);
  background-size: 550px 550px;
  animation: twinkle 5s infinite ease-in-out 1s, move-stars-2 120s linear infinite;
  opacity: 0.7;
}

.stars-3 {
  background-image: 
    radial-gradient(4px 4px at 80px 40px, rgba(255,255,255,1), transparent),
    radial-gradient(4px 4px at 280px 180px, rgba(255,255,255,1), transparent),
    radial-gradient(4px 4px at 480px 120px, rgba(255,255,255,1), transparent);
  background-size: 500px 500px;
  animation: twinkle 3s infinite ease-in-out 2s, move-stars-3 150s linear infinite;
  opacity: 0.8;
}

@keyframes move-stars-1 {
  from { background-position: 0 0; }
  to { background-position: 0 -600px; }
}

@keyframes move-stars-2 {
  from { background-position: 0 0; }
  to { background-position: 0 -550px; }
}

@keyframes move-stars-3 {
  from { background-position: 0 0; }
  to { background-position: 0 -500px; }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* Shooting Stars */
.shooting-star, .shooting-star-2, .shooting-star-3, .shooting-star-4 {
  position: absolute;
  height: 2px;
  background: linear-gradient(-45deg, rgba(255,255,255,1), rgba(0, 242, 234, 0));
  border-radius: 999px;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.8));
  animation: shoot 6s linear infinite;
  opacity: 0;
  width: 120px;
  transform: rotate(-45deg);
}

.shooting-star {
  top: 0;
  right: 20%;
  animation-delay: 2s;
}

.shooting-star-2 {
  top: 20%;
  right: 10%;
  width: 160px;
  animation-delay: 5s;
  animation-duration: 8s;
}

.shooting-star-3 {
  top: 40%;
  right: 30%;
  width: 140px;
  animation-delay: 8s;
  animation-duration: 7s;
}

.shooting-star-4 {
  top: 10%;
  right: 50%;
  width: 100px;
  animation-delay: 1s;
  animation-duration: 5s;
}

@keyframes shoot {
  0% {
    transform: translateX(0) translateY(0) rotate(-45deg);
    opacity: 1;
  }
  20% {
    transform: translateX(-400px) translateY(400px) rotate(-45deg);
    opacity: 0;
  }
  100% {
    transform: translateX(-400px) translateY(400px) rotate(-45deg);
    opacity: 0;
  }
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--accent-color);
  margin-bottom: 36px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 40px;
  background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-identity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.id-name {
  color: var(--text-primary);
  font-weight: 600;
}

.id-divider {
  color: var(--accent-color);
  font-weight: 300;
  opacity: 0.6;
}

.id-role {
  color: var(--text-secondary);
  font-weight: 400;
  opacity: 0.9;
}

.hero-description {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 60px;
  font-weight: 400;
  line-height: 2;
  opacity: 0.7;
}

.hero-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 48px;
  margin: 80px auto 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-width: 640px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.stat-item {
  text-align: center;
  position: relative;
  flex: 1;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 32px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.stat-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff;
  text-shadow: 0 0 20px rgba(0, 242, 234, 0.3);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
}

/* 模块化布局 */
.gallery-module {
  margin-bottom: 100px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 40px;
}

.module-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  gap: 20px;
  position: relative;
}

.module-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-primary);
  padding-left: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.module-title::after {
  content: '';
  width: 40px;
  height: 3px;
  background: var(--accent-color);
  margin-top: 12px;
  border-radius: 2px;
  box-shadow: 0 0 10px var(--accent-glow);
}

.module-title::before {
  display: none;
}

.module-filters {
  display: flex;
  gap: 12px;
}

.filter-pill {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-main);
}

.filter-pill:hover {
  border-color: var(--accent-color);
  color: var(--text-primary);
}

.filter-pill.active {
  background: rgba(0, 242, 234, 0.1);
  border-color: var(--accent-color);
  color: var(--accent-color);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .gallery-module {
    padding: 0 20px;
    margin-bottom: 60px;
  }
  
  .module-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* 筛选动画样式 */
.prototype-card {
  /* ...原有样式保持不变... */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, transform 0.3s ease;
}

.prototype-card.hidden {
  display: none;
}

.prototype-card.fade-out {
  opacity: 0;
  transform: scale(0.95);
}

/* 网格布局 */
.gallery-main {
  padding-bottom: 120px;
}

.prototype-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* 卡片样式 */
.prototype-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.prototype-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-color);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(0, 242, 234, 0.2),
    0 0 40px rgba(0, 242, 234, 0.1);
}

.card-header {
  padding: 20px 20px 0;
}

.card-badge {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(0, 242, 234, 0.1);
  border: 1px solid rgba(0, 242, 234, 0.3);
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.card-body {
  padding: 20px;
  flex: 1;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.card-description {
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-tag {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: all 0.3s;
}

.feature-tag:hover {
  background: rgba(0, 242, 234, 0.1);
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.card-footer {
  padding: 0 20px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  margin-top: 16px;
}

.update-time {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.view-btn {
  color: var(--accent-color);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.view-btn:hover {
  color: #ffffff;
  text-shadow: 0 0 10px var(--accent-color);
}

/* 占位卡片样式 */
.prototype-card.placeholder {
  opacity: 0.6;
}

.prototype-card.placeholder .card-badge.coming-soon {
  background: rgba(255, 150, 50, 0.1);
  border-color: rgba(255, 150, 50, 0.3);
  color: #ff9d42;
}

.prototype-card.placeholder .feature-tag.disabled {
  opacity: 0.5;
  background: rgba(255, 255, 255, 0.02);
}

.prototype-card.placeholder .view-btn.disabled {
  color: var(--text-secondary);
  cursor: not-allowed;
}

/* 页脚样式 */
.gallery-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer-text {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.footer-note {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.footer-filing {
  margin-top: 8px;
}

.filing-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.3s;
}

.filing-link:hover {
  color: var(--accent-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hero-section {
    padding: 80px 20px 60px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-stats {
    gap: 30px;
  }
  
  .prototype-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 20px;
  }
  
  .gallery-footer {
    padding: 30px 20px;
  }
}