/* ============================================
   西兰卡普 - 新闻动态页面样式
   ============================================ */

/* 新闻列表 */
.news-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.news-item {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
  background: var(--bg-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.news-item:hover {
  transform: translateX(10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.news-image {
  width: 300px;
  height: 200px;
  background: linear-gradient(135deg, var(--primary-navy), var(--fabric-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.news-image::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255,255,255,0.02) 10px,
    rgba(255,255,255,0.02) 20px
  );
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 图片占位符标记 */
.image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
}

.image-placeholder::before {
  content: '📷';
  font-size: 3rem;
  opacity: 0.5;
}

.image-placeholder::after {
  content: '图片位置';
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.news-content {
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.news-date {
  font-size: 0.85rem;
  color: var(--accent-red);
  margin-bottom: var(--spacing-xs);
  letter-spacing: 0.05em;
}

.news-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--primary-navy);
  margin-bottom: var(--spacing-sm);
  letter-spacing: 0.05em;
}

.news-excerpt {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(201, 162, 39, 0.1);
  color: var(--accent-gold);
  font-size: 0.8rem;
  border-radius: 20px;
  margin-top: var(--spacing-sm);
  width: fit-content;
}

/* 新闻分类标签 */
.news-categories {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
  justify-content: center;
}

.category-btn {
  padding: 8px 20px;
  background: var(--bg-light);
  border: 2px solid #e5e5e5;
  color: var(--text-light);
  font-size: 0.9rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}

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

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-2xl);
}

.page-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  border: 2px solid #e5e5e5;
  color: var(--text-light);
  font-size: 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

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

/* 热门推荐 */
.hot-news {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.hot-item {
  display: flex;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--bg-light);
  border-radius: 8px;
  transition: var(--transition);
}

.hot-item:hover {
  background: var(--bg-warm);
}

.hot-number {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--accent-gold);
  font-weight: bold;
  width: 30px;
}

.hot-content h4 {
  font-size: 0.95rem;
  color: var(--primary-navy);
  margin-bottom: 4px;
  line-height: 1.4;
}

.hot-content span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* 响应式 */
@media (max-width: 768px) {
  .news-item {
    flex-direction: column;
  }
  
  .news-image {
    width: 100%;
    height: 200px;
  }
}
