/* 全局重置与基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 300;
  line-height: 1.6;
  color: #000000;
  background-color: #FFFFFF;
}

/* 容器 */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }
}

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

nav {
  padding: 20px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-menu {
  display: none;
  list-style: none;
  gap: 40px;
}

.nav-menu li {
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-menu li:hover {
  font-weight: 500;
}

.nav-menu li.active {
  font-weight: 500;
  position: relative;
}

.nav-menu li.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #000000;
}

.hamburger {
  display: block;
  cursor: pointer;
  font-size: 24px;
}

@media (min-width: 768px) {
  .hamburger {
    display: none;
  }
  
  .nav-menu {
    display: flex;
  }
}

/* 页脚样式 */
footer {
  text-align: center;
  padding: 40px 20px;
  color: #8A8A8E;
  font-size: 14px;
}

/* 首页样式 */
.hero {
  height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #FFFFFF;
  padding: 20px;
}

.hero-title {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

/* 精选卡片样式 */
.featured-section {
  padding: 80px 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 60px;
}

@media (min-width: 768px) {
  .featured-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
}

.featured-card {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.featured-card:hover {
  transform: translateY(-5px);
}

.featured-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  margin-bottom: 20px;
}

.featured-title {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 10px;
}

.featured-desc {
  color: #8A8A8E;
  font-size: 14px;
  line-height: 1.6;
}

/* 风尚辑样式 */
.gallery-section {
  padding: 100px 0 60px;
}

.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.filter-tab {
  cursor: pointer;
  padding: 10px 0;
  border: none;
  background: none;
  font-size: 16px;
  font-weight: 300;
  color: #8A8A8E;
  transition: all 0.3s ease;
  position: relative;
}

.filter-tab:hover {
  color: #000000;
}

.filter-tab.active {
  color: #000000;
  font-weight: 500;
}

.filter-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #000000;
}

.masonry-grid {
  column-count: 1;
  column-gap: 20px;
}

@media (min-width: 768px) {
  .masonry-grid {
    column-count: 2;
  }
}

@media (min-width: 1024px) {
  .masonry-grid {
    column-count: 3;
  }
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

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

.gallery-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 型格志样式 */
.journal-section {
  padding: 100px 0 60px;
}

.article-list {
  max-width: 800px;
  margin: 0 auto;
}

.article-card {
  display: flex;
  flex-direction: column;
  margin-bottom: 60px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.article-card:hover {
  opacity: 0.8;
}

@media (min-width: 768px) {
  .article-card {
    flex-direction: row;
    gap: 40px;
  }
}

.article-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 4px;
}

@media (min-width: 768px) {
  .article-image {
    width: 300px;
    height: 200px;
    flex-shrink: 0;
  }
}

.article-content {
  flex: 1;
}

.article-title {
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 15px;
  line-height: 1.3;
}

.article-date {
  color: #8A8A8E;
  font-size: 14px;
  margin-bottom: 15px;
}

.article-excerpt {
  color: #333;
  line-height: 1.7;
}

/* 文章详情页 */
.article-detail {
  max-width: 700px;
  margin: 120px auto 80px;
  padding: 0 20px;
}

.article-detail h1 {
  font-size: 36px;
  font-weight: 400;
  margin-bottom: 20px;
  line-height: 1.3;
}

.article-detail .article-date {
  margin-bottom: 40px;
}

.article-detail p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.article-detail blockquote {
  margin: 40px 0;
  padding-left: 20px;
  border-left: 2px solid #E5E5E5;
  font-style: italic;
  color: #666;
}

.article-detail figure {
  margin: 40px 0;
}

.article-detail figcaption {
  text-align: center;
  color: #8A8A8E;
  font-size: 14px;
  margin-top: 10px;
}

/* 关于我们样式 */
.about-section {
  max-width: 800px;
  margin: 120px auto 80px;
  padding: 0 20px;
  text-align: center;
}

.about-hero {
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 40px;
  line-height: 1.4;
}

.about-content {
  margin-bottom: 60px;
}

.about-content p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: #333;
}

.about-image {
  width: 100%;
  max-width: 600px;
  height: 400px;
  object-fit: cover;
  border-radius: 4px;
  margin: 0 auto;
  display: block;
}

/* 移动端菜单 */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  background: #FFFFFF;
  z-index: 999;
  transition: left 0.3s ease;
}

.mobile-menu.active {
  left: 0;
}

.mobile-menu-list {
  list-style: none;
  padding: 80px 40px;
  text-align: center;
}

.mobile-menu-list li {
  margin-bottom: 30px;
  font-size: 24px;
  cursor: pointer;
}

.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 32px;
  cursor: pointer;
}

/* 加载动画 */
.loading {
  display: none;
  text-align: center;
  padding: 20px;
  color: #8A8A8E;
}

/* 通用动画 */
.fade-in {
  animation: fadeIn 0.6s ease-in;
}

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

/* 响应式调整 */
@media (max-width: 767px) {
  .hero-title {
    font-size: 28px;
  }
  
  .article-title {
    font-size: 24px;
  }
  
  .filter-tabs {
    gap: 20px;
  }
  
  .filter-tab {
    font-size: 14px;
  }
}

/* 无障碍支持 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 打印样式 */
@media print {
  header, footer, .hamburger, .filter-tabs {
    display: none;
  }
  
  .container {
    max-width: none;
    padding: 0;
  }
}