/* 博客页面专用样式 */
.main-col {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.mt-28 {
  margin-top: 7rem;
}

.mt-10 {
  margin-top: 2.5rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-5 {
  margin-top: 1.25rem;
}

.mb-5 {
  margin-bottom: 1.25rem;
}

.mb-0 {
  margin-bottom: 0;
}

.my-16 {
  margin-top: 4rem;
  margin-bottom: 4rem;
}

.pb-9 {
  padding-bottom: 2.25rem;
}

.p-2 {
  padding: 0.5rem;
}

.space-x-2 > * + * {
  margin-left: 0.5rem;
}

.gap-y-6 > * + * {
  margin-top: 1.5rem;
}

.gap-y-9 > * + * {
  margin-top: 2.25rem;
}

.gap-x-16 > * + * {
  margin-left: 4rem;
}

.gap-x-2 > * + * {
  margin-left: 0.5rem;
}

.gap-x-4 > * + * {
  margin-left: 1rem;
}

/* 布局类 */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.items-center {
  align-items: center;
}

/* 网格布局 */
.lg\:grid {
  display: grid;
}

.lg\:grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lg\:flex-row {
  flex-direction: row;
}

.lg\:justify-between {
  justify-content: space-between;
}

.lg\:items-center {
  align-items: center;
}

.lg\:gap-y-9 {
  row-gap: 2.25rem;
}

.lg\:gap-x-16 {
  column-gap: 4rem;
}

.lg\:gap-x-4 {
  column-gap: 1rem;
}

.lg\:text-6xl {
  font-size: 3.75rem;
  line-height: 1;
}

.lg\:text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.lg\:text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.lg\:mb-0 {
  margin-bottom: 0;
}

.lg\:h-56 {
  height: 14rem;
}

.lg\:ring-0 {
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.lg\:uppercase {
  text-transform: uppercase;
}

.lg\:bg-yellow-accent-04 {
  background-color: #fef3c7;
}

/* 文本样式 */
.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.font-semibold {
  font-weight: 600;
}

.font-medium {
  font-weight: 500;
}

.tracking-wide {
  letter-spacing: 0.05em;
}

.leading-tight {
  line-height: 1.25;
}

/* 颜色类 */
.text-blue-1 {
  color: #1e40af;
}

.bg-yellow-accent-10 {
  background-color: #fef3c7;
}

.border-yellow-accent-50 {
  border-color: #fef3c7;
}

.border-0 {
  border-width: 0;
}

.ring-1 {
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 0 1px var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.ring-yellow-accent {
  --tw-ring-color: #fbbf24;
}

.rounded {
  border-radius: 0.25rem;
}

/* 尺寸类 */
.w-full {
  width: 100%;
}

.h-64 {
  height: 16rem;
}

.object-cover {
  object-fit: cover;
}

.block {
  display: block;
}

/* 博客卡片样式 */
.blogpost-card {
  transition: transform 0.2s ease-in-out;
}

.blogpost-card:hover {
  transform: translateY(-2px);
}

.blogpost-card__intro {
  color: #666;
  line-height: 1.6;
}

.blogpost-card__intro p {
  margin-bottom: 0.5rem;
}

.blogpost-card__intro p:last-child {
  margin-bottom: 0;
}

/* 分页样式 */
.pagination {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.5rem;
}

.page-item {
  display: flex;
  align-items: center;
}

.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  text-decoration: none;
  color: #666;
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.25rem;
  transition: all 0.2s ease-in-out;
}

.page-link:hover {
  background-color: #f3f4f6;
  color: #374151;
}

.page-item.active .page-link {
  background-color: #fbbf24;
  color: #fff;
  border-color: #fbbf24;
}

.page-item.disabled .page-link {
  color: #9ca3af;
  cursor: not-allowed;
  background-color: #f9fafb;
}

.page-item.disabled .page-link:hover {
  background-color: #f9fafb;
  color: #9ca3af;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .lg\:grid {
    display: block;
  }
  
  .lg\:flex-row {
    flex-direction: column;
  }
  
  .lg\:justify-between {
    justify-content: flex-start;
  }
  
  .lg\:text-6xl {
    font-size: 2rem;
  }
  
  .lg\:text-3xl {
    font-size: 1.5rem;
  }
  
  .lg\:text-lg {
    font-size: 1rem;
  }
  
  .lg\:h-56 {
    height: 16rem;
  }
  
  .lg\:ring-0 {
    --tw-ring-offset-shadow: 0 0 #0000;
    --tw-ring-shadow: 0 0 0 1px var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
  }
  
  .lg\:uppercase {
    text-transform: none;
  }
  
  .lg\:bg-yellow-accent-04 {
    background-color: #fef3c7;
  }
  
  .lg\:gap-y-9 {
    row-gap: 1.5rem;
  }
  
  .lg\:gap-x-16 {
    column-gap: 0;
  }
  
  .lg\:gap-x-4 {
    column-gap: 0.5rem;
  }
  
  .lg\:mb-0 {
    margin-bottom: 1.25rem;
  }
}

@media (max-width: 768px) {
  .main-col {
    padding: 0 15px;
  }
  
  .mt-28 {
    margin-top: 5rem;
  }
  
  .pagination {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .page-link {
    min-width: 2rem;
    height: 2rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 640px) {
  .space-x-2 > * + * {
    margin-left: 0.25rem;
  }
  
  .gap-y-6 > * + * {
    margin-top: 1rem;
  }
  
  .gap-x-2 > * + * {
    margin-left: 0.25rem;
  }
  
  .pagination {
    gap: 0.25rem;
  }
  
  .page-link {
    min-width: 1.75rem;
    height: 1.75rem;
    font-size: 0.75rem;
  }
}

/* 图片浮窗样式 */
.image-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

.image-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  text-align: center;
  animation: zoomIn 0.3s ease;
}

.image-modal-content img {
  max-width: 100%;
  max-height: 90vh;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.image-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  color: #fff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 10001;
}

.image-modal-close:hover {
  color: #fbbf24;
}

.image-modal-info {
  position: absolute;
  bottom: -40px;
  left: 0;
  right: 0;
  color: #fff;
  text-align: center;
  font-size: 14px;
  opacity: 0.8;
}

/* 浮窗动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* 响应式浮窗 */
@media (max-width: 768px) {
  .image-modal-content {
    max-width: 95%;
    max-height: 95%;
  }
  
  .image-modal-close {
    top: -50px;
    font-size: 40px;
  }
  
  .image-modal-info {
    bottom: -50px;
    font-size: 16px;
  }
} 