﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿/* Article Pages - Dark Theme */

/* 使用products.css中定义的CSS变量 */

.article-page {
  min-height: 100vh;
  position: relative;
}

/* Hero Section */
.article-hero {
  position: relative;
  padding: 100px 20px 80px;
  text-align: center;
  overflow: hidden;
}

/* Ensure hero content is centered */
.article-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center !important;
}

.article-hero-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(34, 211, 238, 0.1));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(139, 92, 246, 0.2);
  box-shadow: 0 4px 16px rgba(139,92,246,0.15);
}

.article-hero-icon svg {
  width: 40px;
  height: 40px;
  color: var(--theme-primary);
}

.article-hero h1 {
  font-size: 42px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.article-hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-secondary) 50%, var(--theme-primary) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
  display: inline-block;
  position: relative;
}

.article-hero h1 .gradient-text::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--theme-primary) 0%, var(--theme-secondary) 100%);
  border-radius: 2px;
  opacity: 0.6;
}



.article-hero p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.8;
}

/* Search Box */
.article-search {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.article-search-form {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(var(--theme-primary-rgb), 0.2);
  border-radius: 60px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.article-search-form:focus-within {
  border-color: rgba(var(--theme-primary-rgb), 0.5);
  box-shadow: 0 0 30px rgba(var(--theme-primary-rgb), 0.2);
}

.article-search-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 18px 28px;
  font-size: 16px;
  color: var(--text-primary);
  outline: none;
}

.article-search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.article-search-btn {
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-secondary) 100%);
  border: none;
  padding: 18px 36px;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(var(--theme-primary-rgb), 0.3);
  position: relative;
  overflow: hidden;
}

.article-search-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: all 0.8s ease;
}

.article-search-btn:hover::before {
  left: 100%;
}

.article-search-btn:hover {
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-secondary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--theme-primary-rgb), 0.4);
}

.article-search-btn svg {
  width: 20px;
  height: 20px;
  transition: all 0.3s ease;
}

.article-search-btn:hover svg {
  transform: scale(1.1);
}

/* Main Content Layout */
.article-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start !important;
  position: relative !important;
  z-index: 1 !important;
}

/* Override product-features-section padding for article pages */
.product-features-section {
  padding: 60px 20px !important;
}

/* Ensure exact alignment by resetting all margins and paddings */
.article-sidebar,
.article-content-area {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.article-sidebar-card {
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 20px !important;
  overflow: hidden !important;
}

.article-list {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-sidebar-header {
  margin: 0 !important;
  padding: 20px 24px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.1), rgba(var(--theme-secondary-rgb), 0.05)) !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.article-category-list {
  margin: 0 !important;
  padding: 12px !important;
  border: none !important;
}

.article-card {
  margin: 0 !important;
  padding: 24px 28px !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.02) !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
}

/* Remove any top margin from the first article card */
.article-list .article-card:first-child {
  margin-top: 0 !important;
}

/* Ensure both sidebar and content start at the same vertical position */
.article-content-area {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
}

/* Ensure sidebar card and article list have the same vertical alignment */
.article-sidebar-card,
.article-list {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
}

/* Sidebar */
.article-sidebar {
  position: relative !important;
  top: 0 !important;
  height: fit-content !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
}

.article-sidebar-header svg {
  width: 22px;
  height: 22px;
  color: var(--theme-primary);
}

.article-sidebar-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.article-category-list {
  padding: 12px;
}

.article-category-item {
  display: block;
  padding: 14px 20px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.article-category-item:hover {
  background: rgba(var(--theme-primary-rgb), 0.1);
  color: var(--text-primary);
}

.article-category-item.active {
  background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.2), rgba(var(--theme-secondary-rgb), 0.15));
  color: var(--theme-primary);
  font-weight: 500;
}

.article-category-item svg {
  width: 16px;
  height: 16px;
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.3s ease;
}

.article-category-item:hover svg,
.article-category-item.active svg {
  opacity: 1;
  transform: translateX(0);
  color: var(--theme-primary);
}

/* Ensure hero content is centered */
.article-hero-content {
  text-align: center;
}

/* Search Result Tip */
.article-search-tip {
  background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.1), rgba(var(--theme-secondary-rgb), 0.05));
  border: 1px solid rgba(var(--theme-primary-rgb), 0.2);
  border-radius: 12px;
  padding: 16px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.article-search-tip-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.article-search-tip-text strong {
  color: var(--theme-primary);
}

.article-search-tip-clear {
  color: var(--theme-primary);
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease;
}

.article-search-tip-clear:hover {
  color: var(--theme-secondary);
}

.article-search-tip-clear svg {
  width: 16px;
  height: 16px;
}

/* Article List */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 24px 28px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 20px;
}

.article-card:hover {
  background: rgba(var(--theme-primary-rgb), 0.08);
  border-color: rgba(var(--theme-primary-rgb), 0.2);
  transform: translateX(8px);
}

.article-card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.15), rgba(var(--theme-secondary-rgb), 0.1));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.article-card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--theme-primary);
}

.article-card-content {
  flex: 1;
  min-width: 0;
}

.article-card-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}

.article-card:hover .article-card-title {
  color: var(--theme-primary);
}

.article-card-meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-card-meta svg {
  width: 14px;
  height: 14px;
}

.article-card-arrow {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.article-card-arrow svg {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.article-card:hover .article-card-arrow {
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
}

.article-card:hover .article-card-arrow svg {
  color: var(--text-primary);
  transform: translateX(2px);
}

/* Empty State */
.article-empty {
  text-align: center;
  padding: 80px 20px;
  color: rgba(255, 255, 255, 0.4);
}

.article-empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-empty-icon svg {
  width: 40px;
  height: 40px;
  color: rgba(255, 255, 255, 0.2);
}

.article-empty p {
  font-size: 16px;
}

/* Pagination */
.article-pagination {
  display: none;
  justify-content: center;
  margin: 20px 0;
  gap: 12px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.article-pagination a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-secondary) 100%);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.article-pagination a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(var(--theme-primary-rgb), 0.4);
}

.article-pagination a svg {
  width: 18px;
  height: 18px;
}

/* ==================== */
/* Article Detail Page  */
/* ==================== */

.article-detail {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* When inside article-main with sidebar */
.article-content-area .article-detail-card {
  margin-bottom: 40px;
}

.article-detail-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  overflow: hidden;
}

/* Article Header */
.article-detail-header {
  padding: 50px 50px 40px;
  background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.1), rgba(var(--theme-secondary-rgb), 0.05));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.article-detail-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 20px;
}

.article-detail-meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.article-detail-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

.article-detail-meta-item svg {
  width: 16px;
  height: 16px;
  color: var(--theme-primary);
}

/* Article Body */
.article-detail-body {
  padding: 50px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.3px;
}

.article-detail-body p {
  margin-bottom: 1.5em;
  text-align: justify;
}

.article-detail-body h1,
.article-detail-body h2,
.article-detail-body h3,
.article-detail-body h4,
.article-detail-body h5,
.article-detail-body h6 {
  color: #fff;
  margin: 2em 0 1em;
  font-weight: 600;
}

.article-detail-body h2 {
  font-size: 24px;
  padding-left: 16px;
  border-left: 4px solid #3b82f6;
}

.article-detail-body h3 {
  font-size: 20px;
}

.article-detail-body h4 {
  font-size: 18px;
}

.article-detail-body a {
  color: var(--theme-primary);
  text-decoration: none;
  border-bottom: 1px dashed rgba(var(--theme-primary-rgb), 0.5);
  transition: all 0.3s ease;
}

.article-detail-body a:hover {
  color: var(--theme-secondary);
  border-bottom-color: var(--theme-secondary);
}

.article-detail-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.article-detail-body ul,
.article-detail-body ol {
  margin: 1.5em 0;
  padding-left: 2em;
}

.article-detail-body li {
  margin: 0.5em 0;
}

.article-detail-body li::marker {
  color: var(--theme-primary);
}

.article-detail-body blockquote {
  margin: 2em 0;
  padding: 20px 24px;
  background: rgba(var(--theme-primary-rgb), 0.1);
  border-left: 4px solid var(--theme-primary);
  border-radius: 0 12px 12px 0;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

.article-detail-body blockquote p:last-child {
  margin-bottom: 0;
}

.article-detail-body code {
  background: rgba(var(--theme-primary-rgb), 0.15);
  padding: 3px 8px;
  border-radius: 6px;
  font-family: 'Fira Code', Consolas, Monaco, monospace;
  font-size: 14px;
  color: var(--theme-primary);
}

.article-detail-body pre {
  background: #1a1025;
  border: 1px solid rgba(var(--theme-primary-rgb), 0.2);
  border-radius: 12px;
  padding: 24px;
  overflow-x: auto;
  margin: 2em 0;
}

.article-detail-body pre code {
  background: none;
  padding: 0;
  color: #e2e8f0;
  font-size: 14px;
  line-height: 1.6;
}

.article-detail-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 15px;
}

.article-detail-body th,
.article-detail-body td {
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

.article-detail-body th {
  background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.2), rgba(var(--theme-secondary-rgb), 0.15));
  color: var(--text-primary);
  font-weight: 600;
}

.article-detail-body tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.article-detail-body tr:hover {
  background: rgba(var(--theme-primary-rgb), 0.05);
}

.article-detail-body hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--theme-primary-rgb), 0.3), transparent);
  margin: 3em 0;
}

.article-detail-body strong,
.article-detail-body b {
  color: var(--text-primary);
  font-weight: 600;
}

.article-detail-body mark {
  background: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Article Footer */
.article-detail-footer {
  padding: 30px 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: center;
}

.article-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-secondary) 100%);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.article-back-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(var(--theme-primary-rgb), 0.4);
}

.article-back-btn svg {
  width: 20px;
  height: 20px;
}

/* Related Articles */
.article-related {
  margin-top: 60px;
}

.article-related-title {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-related-title svg {
  width: 24px;
  height: 24px;
  color: var(--theme-primary);
}

.article-related-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.article-related-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.article-related-item:hover {
  background: rgba(var(--theme-primary-rgb), 0.08);
  border-color: rgba(var(--theme-primary-rgb), 0.2);
}

.article-related-item-title {
  font-size: 14px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}

.article-related-item:hover .article-related-item-title {
  color: var(--theme-primary);
}

/* Quick Links (Floating) */
.article-quick-links {
  position: fixed;
  right: 30px;
  bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 100;
}

.article-quick-link {
  width: 50px;
  height: 50px;
  background: rgba(var(--theme-primary-rgb), 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(var(--theme-primary-rgb), 0.4);
}

.article-quick-link:hover {
  background: var(--theme-primary);
  transform: scale(1.1);
}

.article-quick-link svg {
  width: 24px;
  height: 24px;
}

/* Responsive */
@media (max-width: 1024px) {
  .article-main {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }

  .article-category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px;
  }

  .article-category-item {
    padding: 10px 18px;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .article-category-item svg {
    display: none;
  }

  .article-related-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .article-hero {
    padding: 80px 20px 60px;
  }

  .article-hero h1 {
    font-size: 32px;
  }

  .article-hero p {
    font-size: 16px;
  }

  .article-search-form {
    flex-direction: column;
    border-radius: 20px;
  }

  .article-search-input {
    padding: 16px 20px;
    text-align: center;
  }

  .article-search-btn {
    justify-content: center;
    border-radius: 0 0 20px 20px;
  }

  .article-card {
    padding: 20px;
  }

  .article-card-icon {
    display: none;
  }

  .article-detail-header {
    padding: 30px 24px;
  }

  .article-detail-title {
    font-size: 24px;
  }

  .article-detail-body {
    padding: 30px 24px;
  }

  .article-detail-footer {
    padding: 24px;
  }

  .article-quick-links {
    right: 20px;
    bottom: 80px;
  }

  .article-quick-link {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  .article-hero h1 {
    font-size: 26px;
  }

  .article-detail-meta {
    flex-direction: column;
    gap: 12px;
  }

  .article-pagination {
    flex-direction: column;
    align-items: center;
  }

  .article-pagination a {
    width: 100%;
    justify-content: center;
  }
}
