/* 详情页专用样式 - 增强视觉效果 */

/* 详情页主容器 */
.detail-container {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: 100vh;
  padding: 20px 0;
}

/* 工具详情卡片 */
.tool-detail-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-detail-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* 工具头部信息 */
.tool-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.tool-header::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"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.tool-header-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.tool-icon {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
}

.tool-info h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tool-description {
  font-size: 16px;
  opacity: 0.9;
  line-height: 1.6;
  margin: 0 0 16px 0;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tool-tag {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.tool-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
  color: white;
  text-decoration: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
}

/* 内容区域 */
.tool-content {
  padding: 24px;
}

.content-section {
  margin-bottom: 32px;
  background: #f8fafc;
  border-radius: 12px;
  padding: 20px;
  border-left: 4px solid #667eea;
}

.content-section h3 {
  color: #2d3748;
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.content-section h3::before {
  content: '✨';
  font-size: 18px;
}

.feature-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.feature-item {
  background: white;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.feature-item:hover {
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.feature-item strong {
  color: #667eea;
  font-weight: 600;
}

/* 详细介绍区域 */
.detail-summary {
  background: linear-gradient(135deg, #e6fffa 0%, #f0fff4 100%);
  border: 1px solid #81e6d9;
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
  position: relative;
  overflow: hidden;
}

.detail-summary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, #38b2ac 0%, #319795 100%);
}

.detail-summary h3 {
  color: #2d3748;
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 600;
}

.detail-summary p {
  color: #4a5568;
  line-height: 1.7;
  margin: 6px 0;
  font-size: 15px;
}

.detail-summary p:first-of-type {
  margin-top: 0;
}

/* 使用指南 */
.usage-guide {
  background: linear-gradient(135deg, #fef5e7 0%, #fef3c7 100%);
  border: 1px solid #f6d55c;
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
}

.usage-guide h3 {
  color: #92400e;
  margin: 0 0 16px 0;
  font-size: 18px;
  font-weight: 600;
}

.usage-guide ol {
  color: #92400e;
  padding-left: 20px;
  margin: 0;
}

.usage-guide li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* AI 应用指南页面的排版微调 */
.guide-page {
  background: #f3f4f6;
}

.guide-page #guide-article {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  margin-top: 8px;
}

.guide-page #guide-content {
  background: transparent;
  border-radius: 0;
  border: none;
  padding: 8px 4px 0 4px;
}

.guide-page #guide-content p {
  font-size: 15px;
  line-height: 1.8;
  margin: 0 0 14px 0;
  color: #374151;
}

.guide-page #guide-content h2,
.guide-page #guide-content h3 {
  margin: 22px 0 12px 0;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}

.guide-page #guide-content ul,
.guide-page #guide-content ol {
  margin: 0 0 12px 1.25rem;
  padding: 0;
}

.guide-page #guide-content li {
  margin-bottom: 6px;
  line-height: 1.7;
}

/* 在应用指南页里，让顶部工具列表卡片更简洁，并去掉绿色竖线 */
.guide-page .usage-guide {
  background: linear-gradient(135deg, #fef5e7 0%, #fef3c7 100%);
  border: 1px solid #f6d55c;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 0 0 20px 0;
}

.guide-page .usage-guide h3 {
  margin: 0 0 10px 0;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

.guide-page .usage-guide ul {
  margin: 0;
  padding-left: 1.1rem;
}

.guide-page .usage-guide li {
  margin-bottom: 6px;
  line-height: 1.6;
}

/* 去掉应用指南正文里的绿色竖线效果，保持更干净的文章排版 */
.guide-page .detail-summary {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
}

.guide-page .detail-summary::before {
  display: none;
}

/* 状态标签 */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.status-spa {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.status-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .tool-header-content {
    flex-direction: column;
    text-align: center;
  }
  
  .tool-icon {
    align-self: center;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .tool-actions {
    justify-content: center;
  }
}

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

.tool-detail-card {
  animation: fadeInUp 0.6s ease-out;
}

.content-section {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.content-section:nth-child(2) { animation-delay: 0.1s; }
.content-section:nth-child(3) { animation-delay: 0.2s; }
.content-section:nth-child(4) { animation-delay: 0.3s; }
.content-section:nth-child(5) { animation-delay: 0.4s; }
