/* Tailwind CSS 配置 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500&display=swap');

/* 全局配置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-ivory: #FDFBF7;
  --color-sand: #E8DCC4;
  --color-gray: #D1D5DB;
  --color-fog-blue: #A8B2C1;
  --color-charcoal: #374151;
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  background-color: var(--color-ivory);
  color: var(--color-charcoal);
  line-height: 1.8;
  overflow-x: hidden;
}

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 导航栏样式 */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(209, 213, 219, 0.2);
  padding: 1.5rem 2rem;
  transition: var(--transition-smooth);
}

nav a {
  color: var(--color-charcoal);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: 0.25rem;
  transition: var(--transition-smooth);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--color-fog-blue);
  transition: var(--transition-smooth);
  transform: translateX(-50%);
}

nav a:hover::after {
  width: 100%;
}

nav a:hover {
  color: var(--color-fog-blue);
}

/* 页脚样式 */
footer {
  text-align: center;
  padding: 3rem 1rem;
  font-size: 0.875rem;
  color: var(--color-gray);
  letter-spacing: 0.1em;
  border-top: 1px solid rgba(209, 213, 219, 0.2);
  margin-top: 4rem;
}

/* 图片悬停效果 */
.image-hover {
  overflow: hidden;
  transition: var(--transition-smooth);
}

.image-hover img {
  transition: var(--transition-smooth);
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-hover:hover img {
  transform: scale(1.03);
}

/* 淡入动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.8s ease-out;
}

/* 延迟加载动画 */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* 标题样式 */
h1 {
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 1.3;
}

h3 {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

/* 段落样式 */
p {
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
  color: var(--color-charcoal);
  opacity: 0.9;
}

/* 卡片样式 */
.card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(209, 213, 219, 0.2);
  border-radius: 0.5rem;
  padding: 2rem;
  transition: var(--transition-smooth);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* 响应式布局 */
@media (max-width: 768px) {
  nav {
    padding: 1rem;
  }
  
  nav a {
    font-size: 0.85rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  p {
    font-size: 0.95rem;
  }
}

/* 网格布局 */
.grid-container {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 时间线样式 */
.timeline {
  position: relative;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--color-fog-blue), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -3.375rem;
  top: 0.5rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--color-fog-blue);
  border: 2px solid var(--color-ivory);
}

/* 加载动画 */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.loading {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}