/* News页面专用样式 */
:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --warning-gradient: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  --shadow-soft: 0 10px 40px rgba(0,0,0,0.1);
  --shadow-hover: 0 20px 60px rgba(0,0,0,0.15);
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  line-height: 1.6;
  color: #2d3748;
}

/* 页面头部横幅 */
.page-hero {
  background: var(--warning-gradient);
  color: white;
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.page-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.page-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* 面包屑导航现代化 */
.breadcrumb-modern {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  padding: 1rem 1.5rem;
  margin: -2rem auto 0;
  max-width: 800px;
  box-shadow: var(--shadow-soft);
  position: relative;
  z-index: 2;
}

/* 文章内容卡片 */
.article-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 3rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0,0,0,0.05);
  margin-bottom: 2rem;
  transition: var(--transition);
}

.article-card:hover {
  box-shadow: var(--shadow-hover);
}

.article-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #f7fafc;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #718096;
  font-size: 0.9rem;
}

.meta-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8rem;
}

.meta-icon.date {
  background: var(--primary-gradient);
}

.meta-icon.views {
  background: var(--success-gradient);
}

.article-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #4a5568;
  margin-bottom: 3rem;
}

.article-content h1, .article-content h2, .article-content h3 {
  color: #2d3748;
  margin: 2rem 0 1rem;
  font-weight: 600;
}

.article-content h2 {
  font-size: 1.8rem;
  position: relative;
  padding-left: 1rem;
}

.article-content h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 4px;
  height: 1.5rem;
  background: var(--warning-gradient);
  border-radius: 2px;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  margin: 2rem 0;
  max-width: 100%;
  height: auto;
  display: block;
}

/* 确保图片容器正常显示 */
.article-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  display: block;
}

/* 新闻列表图片样式 */
.news-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
  display: block;
}

/* 产品图片样式 */
.product-image-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
  display: block;
}

/* 产品占位符样式 - 用于无图片测试 */
.product-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: 1.5rem;
  border-radius: var(--border-radius);
}

/* 内容提示样式 */
.content-notice {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--border-radius);
  padding: 1rem;
  margin-bottom: 2rem;
}

.article-content blockquote {
  border-left: 4px solid #ffecd2;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #4a5568;
  background: #fffbf5;
  padding: 1.5rem;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* 文章导航 */
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #f7fafc;
}

.nav-link-modern {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: var(--border-radius);
  text-decoration: none;
  color: #4a5568;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
  flex: 1;
  max-width: 45%;
}

.nav-link-modern:hover {
  background: white;
  box-shadow: var(--shadow-soft);
  color: #667eea;
  transform: translateY(-2px);
}

.nav-link-modern.prev {
  text-align: left;
}

.nav-link-modern.next {
  text-align: right;
  justify-content: flex-end;
}

/* 侧边栏现代化 */
.sidebar-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0,0,0,0.05);
  margin-bottom: 2rem;
  transition: var(--transition);
}

.sidebar-card:hover {
  box-shadow: var(--shadow-hover);
}

.sidebar-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 1.5rem;
  position: relative;
  text-align: center;
}

.sidebar-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--warning-gradient);
  border-radius: 2px;
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: var(--border-radius);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
}

.nav-list-item:hover {
  background: white;
  box-shadow: var(--shadow-soft);
  transform: translateX(5px);
}

.nav-list-item a {
  color: #4a5568;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.nav-list-item:hover a {
  color: #667eea;
}

.nav-count {
  background: var(--warning-gradient);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* 产品卡片现代化 */
.product-card-mini {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
}

.product-card-mini:hover {
  background: white;
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.product-image-mini {
  width: 80px;
  height: 80px;
  border-radius: var(--border-radius);
  overflow: hidden;
  flex-shrink: 0;
}

.product-image-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card-mini:hover .product-image-mini img {
  transform: scale(1.1);
}

.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-title {
  font-weight: 600;
  color: #2d3748;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

.product-title:hover {
  color: #667eea;
}

.product-price {
  color: #f56565;
  font-weight: 700;
  font-size: 1rem;
}

/* 标签云现代化 */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-item {
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 20px;
  text-decoration: none;
  color: #4a5568;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
}

.tag-item:hover {
  background: var(--warning-gradient);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* 响应式优化 */
@media (max-width: 768px) {
  .page-title {
    font-size: 2rem;
  }
  
  .article-card {
    padding: 2rem 1.5rem;
  }
  
  .article-title {
    font-size: 1.8rem;
  }
  
  .article-meta {
    gap: 1rem;
  }
  
  .article-nav {
    flex-direction: column;
  }
  
  .nav-link-modern {
    max-width: 100%;
  }
  
  .sidebar-card {
    margin-top: 2rem;
  }
}