/* 新闻详情页容器 */
.container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 40px 20px;
}

.news-detail {
  width: 100%;
}

.detail-content {
  background: #000;
  border-radius: 0;
  padding: 40px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  max-width: 100%;
  overflow: hidden;
  overflow-x: hidden;
}

/* 封面图 */
.detail-cover {
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 0;
  margin-bottom: 30px;
}

.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.detail-cover:hover img {
  transform: scale(1.05);
}

/* 标题 */
.detail-title {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 20px 0;
  line-height: 1.4;
}

/* 元信息 */
.detail-meta {
  display: flex;
  align-items: center;
  gap: 30px;
  padding-bottom: 25px;
  margin-bottom: 30px;
  border-bottom: 1px solid #333;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #888;
  font-size: 14px;
}

.meta-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
}

.date-icon {
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23888"><path d="M19 4h-1V2h-2v2H8V2H6v2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zM5 8V6h14v2H5z"/></svg>') no-repeat center;
  background-size: contain;
}

.view-icon {
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23888"><path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"/></svg>') no-repeat center;
  background-size: contain;
}

.view-count {
  color: #27ae60;
  font-weight: 600;
}

/* 正文内容 */
.detail-body {
  font-size: 16px;
  line-height: 1.9;
  color: #fff;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  width: 100%;
}

.detail-body * {
  max-width: 100%;
  box-sizing: border-box;
}

.detail-body img {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
  border-radius: 0;
  display: block;
}

.detail-body p {
  margin-bottom: 20px;
}

.detail-body h2,
.detail-body h3,
.detail-body h4 {
  color: #fff;
  margin: 30px 0 15px 0;
}

.detail-body h2 {
  font-size: 24px;
}

.detail-body h3 {
  font-size: 20px;
}

.detail-body h4 {
  font-size: 18px;
}

.detail-body ul,
.detail-body ol {
  margin: 20px 0;
  padding-left: 25px;
}

.detail-body li {
  margin-bottom: 10px;
}

.detail-body table {
  max-width: 100%;
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}

.detail-body iframe,
.detail-body video,
.detail-body embed {
  max-width: 100%;
  height: auto;
}

.detail-body a {
  color: #27ae60;
  text-decoration: none;
  transition: color 0.3s ease;
}

.detail-body a:hover {
  color: #2ecc71;
  text-decoration: underline;
}

/* 上一篇下一篇导航 */
.detail-navigation {
  display: flex;
  gap: 20px;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #333;
}

.nav-link {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: #2a2a2a;
  border-radius: 0;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background: #333;
  transform: translateY(-2px);
}

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

.nav-icon {
  font-size: 24px;
  color: #27ae60;
  flex-shrink: 0;
}

.nav-content {
  flex: 1;
  min-width: 0;
}

.nav-label {
  display: block;
  color: #888;
  font-size: 13px;
  margin-bottom: 5px;
}

.nav-title {
  display: block;
  color: #fff;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 返回按钮 */
.detail-actions {
  margin-top: 30px;
  text-align: center;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 30px;
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 0;
  text-decoration: none;
  transition: all 0.3s ease;
}

.back-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.back-icon {
  font-size: 18px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .detail-content {
    padding: 30px;
  }
  
  .detail-cover {
    height: 350px;
  }
  
  .detail-title {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 30px 15px;
  }
  
  .detail-content {
    padding: 25px 20px;
  }
  
  .detail-cover {
    height: 280px;
  }
  
  .detail-title {
    font-size: 24px;
  }
  
  .detail-meta {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  
  .detail-navigation {
    flex-direction: column;
  }
  
  .next-link {
    justify-content: flex-start;
    text-align: left;
  }
  
  .detail-body {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 20px 10px;
  }
  
  .detail-content {
    padding: 20px 15px;
  }
  
  .detail-cover {
    height: 220px;
  }
  
  .detail-title {
    font-size: 20px;
  }
  
  .nav-link {
    padding: 15px;
  }
  
  .back-btn {
    padding: 10px 25px;
    font-size: 15px;
  }
}
