/* 全局样式 - 极简主义设计 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&display=swap');

:root {
  --primary-color: #000;
  --secondary-color: #666;
  --background-light: #fff;
  --background-gray: #f8f9fa;
  --border-color: #e9ecef;
  --shadow-soft: 0 2px 8px rgba(0,0,0,0.08);
  --transition-smooth: all 0.3s ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--primary-color);
  background-color: var(--background-light);
}

/* 导航样式 */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 1.5rem 0;
  margin: 0;
}

nav ul li {
  margin: 0 2rem;
}

nav ul li a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  transition: var(--transition-smooth);
  position: relative;
}

nav ul li a:hover {
  color: var(--secondary-color);
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

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

/* 主容器 */
main {
  margin-top: 80px;
  min-height: calc(100vh - 160px);
}

/* 主视觉区域 */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero h1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 3.5rem;
  font-weight: 300;
  text-align: center;
  letter-spacing: 0.1em;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
  animation: fadeInUp 1s ease;
}

/* 特色栏目 */
.features {
  padding: 5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
}

.feature-card {
  background: var(--background-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.feature-card img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.feature-card h2 {
  padding: 1.5rem;
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--primary-color);
}

/* 文章列表 */
.articles {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

.article-card {
  background: var(--background-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}

.article-card:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.article-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.article-card h3 {
  padding: 1.5rem;
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* 瀑布流画廊 */
.gallery {
  padding: 5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--border-color);
  background: var(--background-light);
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.gallery-grid {
  columns: 4;
  column-gap: 1.5rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* 关于页面 */
.about {
  padding: 5rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.about-content {
  text-align: center;
  margin-bottom: 4rem;
}

.about h1 {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

.about p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--secondary-color);
  font-weight: 300;
}

.about-image {
  text-align: center;
  margin: 3rem 0;
}

.about-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

/* 页脚 */
footer {
  background: var(--background-gray);
  padding: 2rem;
  text-align: center;
}

footer p {
  color: var(--secondary-color);
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.05em;
}

/* 动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  nav ul {
    padding: 1rem 0;
  }
  
  nav ul li {
    margin: 0 1rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .gallery-grid {
    columns: 2;
  }
  
  .features,
  .articles,
  .gallery,
  .about {
    padding: 3rem 1rem;
  }
}

@media (max-width: 480px) {
  nav ul {
    flex-wrap: wrap;
    padding: 0.5rem 0;
  }
  
  nav ul li {
    margin: 0.25rem 0.5rem;
  }
  
  .hero h1 {
    font-size: 1.5rem;
    padding: 0 1rem;
  }
  
  .gallery-grid {
    columns: 1;
  }
  
  .features-grid,
  .articles-grid {
    grid-template-columns: 1fr;
  }
}