﻿:root {
  --primary: #7c3aed;
  --secondary: #22d3ee;
  --accent: #f472b6;
  --bg-dark: #020617;
  --bg-light: rgba(124, 58, 237, 0.12);
  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.65);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

#main-header.scrolled {
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(124, 58, 237, 0.2);
}

.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--secondary);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.mobile-nav {
  background: rgba(2, 6, 23, 0.98);
  border-left: 1px solid rgba(124, 58, 237, 0.3);
}

.mobile-nav.translate-x-full {
  visibility: hidden;
}

.mobile-nav nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  color: var(--text-muted);
  transition: all 0.3s;
}

.mobile-nav nav a:hover,
.mobile-nav nav a.active {
  background: rgba(124, 58, 237, 0.2);
  color: var(--secondary);
}

.btn-neon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), #5b21b6);
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s;
  border: 1px solid rgba(34, 211, 238, 0.4);
}

.btn-neon:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 35px rgba(124, 58, 237, 0.8), 0 0 60px rgba(34, 211, 238, 0.3);
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--secondary);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.section-label::before {
  content: "◆";
  color: var(--accent);
  font-size: 0.7rem;
}

.section-label.justify-center {
  justify-content: center;
}

.page-hero-sm {
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.22) 0%, var(--bg-dark) 65%);
  padding-top: 6rem;
}

.hero-particles {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 30%, rgba(34, 211, 238, 0.1) 0%, transparent 30%),
    radial-gradient(circle at 70% 70%, rgba(244, 114, 182, 0.1) 0%, transparent 30%);
  animation: particle-drift 12s linear infinite;
}

.hero-content-sm {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.hero-title-sm {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  background: linear-gradient(135deg, #fff 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.hero-subtitle-sm {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
}

.section-articles {
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(124, 58, 237, 0.05) 50%, var(--bg-dark) 100%);
}

.articles-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.articles-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--secondary), var(--accent));
  opacity: 0.4;
}

.timeline-item {
  position: relative;
  padding-left: 60px;
}

.timeline-dot {
  position: absolute;
  top: 1.5rem;
  left: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--secondary);
  border: 3px solid var(--bg-dark);
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.6);
  z-index: 2;
}

.timeline-date {
  position: absolute;
  top: 0;
  left: 60px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.timeline-card {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 1.75rem;
  border-radius: 1.5rem;
  overflow: hidden;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.25);
  transition: all 0.4s;
}

.timeline-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 20px 50px rgba(124, 58, 237, 0.2);
}

.timeline-img {
  height: 200px;
  overflow: hidden;
}

.timeline-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.timeline-card:hover .timeline-img img {
  transform: scale(1.08);
}

.timeline-body {
  padding: 1.5rem;
}

.timeline-tag {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(34, 211, 238, 0.12);
  color: var(--secondary);
  border: 1px solid rgba(34, 211, 238, 0.25);
  margin-bottom: 0.75rem;
}

.timeline-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.timeline-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.timeline-meta {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

.articles-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-block {
  padding: 1.5rem;
  border-radius: 1.5rem;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.25);
}

.sidebar-block h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.sidebar-block h3 i {
  color: var(--secondary);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag-cloud span {
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  background: rgba(2, 6, 23, 0.5);
  border: 1px solid rgba(34, 211, 238, 0.2);
  color: var(--text-muted);
  transition: all 0.3s;
}

.tag-cloud span:hover {
  background: rgba(34, 211, 238, 0.12);
  color: var(--secondary);
  border-color: rgba(34, 211, 238, 0.4);
}

.recommend-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.recommend-list a {
  display: block;
  padding: 0.75rem;
  border-radius: 0.75rem;
  color: var(--text-muted);
  background: rgba(2, 6, 23, 0.4);
  transition: all 0.3s;
}

.recommend-list a:hover {
  color: var(--secondary);
  background: rgba(34, 211, 238, 0.1);
  padding-left: 1rem;
}

.sidebar-block.cta {
  text-align: center;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(34, 211, 238, 0.08));
}

.sidebar-block.cta p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.w-full {
  width: 100%;
}

.mt-3 {
  margin-top: 0.75rem;
}

.section-friends {
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(124, 58, 237, 0.06) 100%);
  padding: 4rem 0 3rem;
}

.friends-card {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.75rem;
  border-radius: 1.5rem;
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.friends-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--secondary);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.25rem;
}

.friends-title::before {
  content: '◆';
  color: var(--accent);
  font-size: 0.7rem;
}

.friends-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.friends-list a {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.1rem;
  border-radius: 9999px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.25);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s;
  max-width: 100%;
  word-break: break-word;
}

.friends-list a:hover {
  background: rgba(34, 211, 238, 0.12);
  border-color: var(--secondary);
  color: var(--text-main);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(34, 211, 238, 0.15);
}

.page-footer {
  position: relative;
  padding: 5rem 0 2rem;
  background: linear-gradient(180deg, var(--bg-dark) 0%, #000 100%);
  overflow: hidden;
}

.footer-beams {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 100%, rgba(124, 58, 237, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 80% 100%, rgba(34, 211, 238, 0.18) 0%, transparent 40%);
}

.footer-beams::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(0deg, rgba(124, 58, 237, 0.15), transparent);
  animation: beam-rise 4s ease-in-out infinite;
}

.footer-inner {
  position: relative;
  z-index: 10;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer-brand span {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--secondary);
}

.footer-copy {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .articles-layout {
    grid-template-columns: 1fr 320px;
    gap: 3rem;
  }

  .articles-sidebar {
    order: 2;
  }

  .articles-timeline {
    order: 1;
  }

  .timeline-card {
    grid-template-columns: 240px 1fr;
  }

  .friends-card {
    padding: 2rem;
  }

  .timeline-img {
    height: 100%;
  }
}

@media (min-width: 1024px) {
  .timeline-card {
    grid-template-columns: 300px 1fr;
  }
}

@keyframes particle-drift {
  0% { transform: translate(0, 0); }
  50% { transform: translate(15px, -15px); }
  100% { transform: translate(0, 0); }
}

@keyframes beam-rise {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 0.7; transform: scaleY(1.1); }
}

.section-contact {
  background: var(--bg-dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.qr-card {
  background: var(--bg-light);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.35s ease;
}

.qr-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.25);
}

.qr-img {
  width: 160px;
  height: 160px;
  margin: 0 auto 1rem;
  padding: 0.5rem;
  background: white;
  border: 2px solid var(--secondary);
}

.qr-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-card h3 {
  font-size: 1.15rem;
  color: var(--secondary);
  margin-bottom: 0.35rem;
}

.qr-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.btn-pulse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: #fff;
  padding: 1rem 2.25rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1.05rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  animation: pulse-glow 2.5s infinite;
}

.btn-pulse:hover {
  transform: scale(1.05);
  filter: brightness(1.15);
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 25px rgba(124, 58, 237, 0.5), 0 0 50px rgba(244, 114, 182, 0.25); }
  50% { box-shadow: 0 0 45px rgba(124, 58, 237, 0.8), 0 0 80px rgba(244, 114, 182, 0.45); }
}

