/* 字体定义 */
@font-face {
  font-family: 'AlibabaPuHuiTi';
  src: url('../font/AlibabaPuHuiTi-2-45-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'AlibabaPuHuiTi';
  src: url('../font/AlibabaPuHuiTi-2-55-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'AlibabaPuHuiTi';
  src: url('../font/AlibabaPuHuiTi-2-65-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

/* 基础样式 */
body {
  font-family: 'AlibabaPuHuiTi', 'Source Han Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 14px;
  color: #333;
  line-height: 1.5;
  margin: 0;
  padding: 0;
}

/* 多语言显示控制：默认中文，英文通过 body.language-en-US 控制 */
.lang-zh { display: inline; }
.lang-en { display: none; }

body.language-en-US .lang-zh { display: none; }
body.language-en-US .lang-en { display: inline; }

/* 容器样式 */
.container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 主要内容区域 */
.main-content {
  padding: 40px 0;
}

.main-content h1 {
  font-size: 32px;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

.content-section {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.content-section h2 {
  font-size: 24px;
  color: #333;
  margin-bottom: 20px;
  border-bottom: 2px solid #007bff;
  padding-bottom: 10px;
}

/* 文章列表样式 */
.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-item {
  margin-bottom: 15px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 4px solid #007bff;
  transition: all 0.3s ease;
}

.post-item:hover {
  background: #e9ecef;
  transform: translateX(5px);
}

.post-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.post-link:hover {
  color: #007bff;
}

/* 分页样式 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.pagination-link {
  padding: 10px 20px;
  background: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.pagination-link:hover {
  background: #0056b3;
}

/* 主要内容响应式样式 */
@media (max-width: 768px) {
  .main-content {
    padding: 20px 0;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .main-content h1 {
    font-size: 28px;
  }
  
  .content-section {
    padding: 20px;
  }
}
