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

:root {
  --primary-color: #6366f1;
  --secondary-color: #ec4899;
  --dark-bg: #0f172a;
  --light-bg: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --border-color: #e2e8f0;
  --font-ui: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  --font-display: 'Noto Serif TC', 'Songti TC', serif;
}

body {
  font-family: var(--font-ui);
  background: #1a1f3a;
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  max-width: 800px;
  width: 100%;
  padding: 2rem;
}

.hero {
  text-align: center;
  margin-bottom: 3rem;
  animation: fadeInDown 0.6s ease-out;
}

.logo {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: fadeIn 0.8s ease-out;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.05em;
}

h1 {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 0.5rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3em;
}

.tagline {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  font-weight: 300;
}

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

.project-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.6s ease-out;
}

.project-card:nth-child(1) {
  animation-delay: 0.1s;
}

.project-card:nth-child(2) {
  animation-delay: 0.2s;
}

.project-card:nth-child(3) {
  animation-delay: 0.3s;
}

.project-card:nth-child(n+4) {
  animation-delay: 0.4s;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-name {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  font-family: var(--font-ui);
}

.project-description {
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  flex-grow: 1;
  font-family: var(--font-ui);
}

.project-subdomain {
  font-size: 0.85rem;
  color: var(--primary-color);
  font-family: 'Courier New', monospace;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.footer {
  text-align: center;
  margin-top: 3rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  .logo {
    font-size: 3rem;
  }

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

  .container {
    padding: 1rem;
  }
}

@media (prefers-color-scheme: dark) {
  body {
    background: #1a1f3a;
  }
}
