/* ============================================
   Index Page Styles — 鸿链数科 Honchain
   ============================================ */

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-8);
  overflow: hidden;
  z-index: 1;
}

.hero-logo {
  display: block;
  height: 80px;
  width: auto;
  margin: 0 auto var(--space-8);
  animation: fadeInUp 1s ease backwards;
  animation-delay: 0.2s;
  filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.3));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: var(--tracking-tight);
  line-height: 1.2;
  margin-bottom: var(--space-8);
  white-space: nowrap;
}

.hero-title .highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto var(--space-10);
  line-height: var(--leading-relaxed);
  animation: fadeInUp 1s ease backwards;
  animation-delay: 0.8s;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  animation: fadeInUp 1s ease backwards;
  animation-delay: 1s;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  animation: float 2s ease-in-out infinite;
  z-index: 2;
}

.scroll-indicator span {
  display: block;
  width: 2px;
  height: 8px;
  background: var(--text-tertiary);
  border-radius: 1px;
  opacity: 0.5;
  animation: fadeIn 1.5s ease infinite;
}

.scroll-indicator span:nth-child(2) { animation-delay: 0.2s; }
.scroll-indicator span:nth-child(3) { animation-delay: 0.4s; }

/* ========================================
   INTRO SECTION
   ======================================== */

.intro-section {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-12);
}

.stats-item {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.stats-item:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.stats-number {
  font-size: var(--text-5xl);
  font-weight: 800;
  font-family: var(--font-number);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-3);
  line-height: 1;
}

.stats-label {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  font-weight: 500;
}

/* ========================================
   SERVICES SECTION
   ======================================== */

.services-section {
  position: relative;
  z-index: 1;
}

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

.service-card {
  text-align: left;
  padding: var(--space-8);
}

.service-card .service-icon {
  margin-bottom: var(--space-5);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.08);
  border-radius: var(--radius-md);
  border: 1px solid rgba(99, 102, 241, 0.1);
  transition: all var(--transition-base);
}

.service-card:hover .service-icon {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--border-glow);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.service-card h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.service-card p {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  line-height: var(--leading-relaxed);
  margin-bottom: 0;
}

/* ========================================
   HONORS SECTION
   ======================================== */

.honors-section {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.honors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.honor-card {
  text-align: center;
  padding: var(--space-8) var(--space-5);
}

.honor-card .honor-icon {
  margin-bottom: var(--space-5);
  width: 64px;
  height: 64px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-base);
}

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

.honor-card h4 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.honor-card p {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-bottom: 0;
}

/* ========================================
   CASES SECTION
   ======================================== */

.cases-section {
  position: relative;
  z-index: 1;
}

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

.case-card {
  display: block;
  padding: 0;
  overflow: hidden;
  text-decoration: none;
}

.case-card:hover {
  color: inherit;
}

.case-image {
  height: 180px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: var(--space-4);
  position: relative;
}

.case-image .case-badge {
  position: relative;
  z-index: 1;
}

.case-info {
  padding: var(--space-6);
}

.case-info h4 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.case-info p {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-bottom: 0;
}

/* ========================================
   NEWS SECTION
   ======================================== */

.news-section {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

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

.news-card {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-6);
  text-decoration: none;
}

.news-card:hover {
  color: inherit;
}

.news-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 50px;
  padding-top: 2px;
}

.news-day {
  font-size: var(--text-3xl);
  font-weight: 800;
  font-family: var(--font-number);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.news-month {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-1);
}

.news-content h4 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  line-height: var(--leading-normal);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-content p {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========================================
   HONOR CARD LINK
   ======================================== */

.honor-card-link {
  cursor: pointer;
  position: relative;
}

.honor-card-link:hover {
  border-color: var(--border-glow-strong);
  box-shadow: var(--shadow-glow-strong);
}

.honor-hint {
  display: block;
  font-size: var(--text-xs);
  color: var(--accent-cyan);
  margin-top: var(--space-3);
  opacity: 1;
  cursor: pointer;
}

/* ========================================
   LIGHTBOX
   ======================================== */

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  text-align: center;
  animation: scaleIn 0.3s ease;
}

.lightbox-content img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.lightbox-caption {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-top: var(--space-4);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--transition-fast);
  z-index: 1;
  line-height: 1;
}

.lightbox-close:hover {
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .lightbox {
    padding: var(--space-4);
  }
  .lightbox-close {
    top: -36px;
    right: 4px;
  }
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
  position: relative;
  z-index: 1;
  padding-bottom: var(--space-24);
}

.cta-card {
  position: relative;
  padding: var(--space-16) var(--space-8);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-subtle);
  pointer-events: none;
}

.cta-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: var(--text-4xl);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.cta-content p {
  font-size: var(--text-lg);
  color: var(--text-tertiary);
  max-width: 600px;
  margin: 0 auto var(--space-8);
}

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

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .services-grid,
  .cases-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid,
  .honors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-logo {
    height: 56px;
    width: auto;
    margin: 0 auto var(--space-6);
  }
  .hero-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    white-space: normal;
  }

  .hero-desc {
    font-size: var(--text-base);
  }

  .hero-actions {
    flex-direction: column;
    gap: var(--space-3);
  }

  .hero-actions .btn {
    width: 100%;
  }

  .services-grid,
  .cases-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  .honors-grid {
    grid-template-columns: 1fr;
  }

  .stats-item {
    padding: var(--space-6) var(--space-4);
  }

  .stats-number {
    font-size: var(--text-4xl);
  }

  .cta-card {
    padding: var(--space-10) var(--space-6);
  }

  .cta-content h2 {
    font-size: var(--text-2xl);
  }

  .news-card {
    flex-direction: column;
    gap: var(--space-3);
  }

  .news-date {
    flex-direction: row;
    align-items: baseline;
    gap: var(--space-2);
  }
}
