/* ---------- 全局基调 ---------- */
:root {
  --md-primary-fg-color: #1a1a2e;
  --md-accent-fg-color: #e94560;
}

/* ---------- 欢迎区域（Hero） ---------- */
.hero {
  text-align: center;
  padding: 4rem 2rem 3rem;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  border-radius: 1.5rem;
  margin: 1rem 0 2.5rem 0;
  color: white;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);

  /* 动画相关 */
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
  position: relative;
  overflow: hidden;
  
  #particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
  }


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

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  letter-spacing: -0.02em;
  background: linear-gradient(to right, #f7971e, #ffd200);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.6rem;
  font-weight: 300;
  opacity: 0.9;
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
}

.hero-description {
  font-size: 1.1rem;
  opacity: 0.8;
  margin-top: 0.5rem;
  font-weight: 300;
}

/* ---------- 功能卡片 ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.card {
  display: block;
  padding: 1.8rem 1.2rem;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  text-decoration: none;
  color: #1a1a2e;
  transition: transform 0.25s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0,0,0,0.04);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.1);
  border-color: #e94560;
}

.card h3 {
  margin-top: 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.card p {
  margin-bottom: 0;
  color: #555;
  font-size: 0.95rem;
}

/* ---------- 动画关键帧 ---------- */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}