/* ============================================
   Page Hero
   ============================================ */
.page-hero {
  padding: 100px 0 40px;
  background: linear-gradient(180deg, #0a0c10 0%, #111318 100%);
  text-align: center;
}

.page-title {
  font-size: 42px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.page-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   News Section
   ============================================ */
.news-section {
  padding: 40px 0 80px;
  background: #111318;
}

/* News Tabs */
.news-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.news-tab {
  padding: 12px 24px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.news-tab:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.9);
}

.news-tab.active {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
}

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

/* News Card */
.news-card {
  display: block;
  background: #1a1d24;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.news-image {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  background: rgba(239, 68, 68, 0.9);
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
}

.news-tag.company {
  background: rgba(59, 130, 246, 0.9);
}

.news-content {
  padding: 20px;
}

.news-title {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-excerpt {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.news-date,
.news-views {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.news-date iconify-icon,
.news-views iconify-icon {
  font-size: 14px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.page-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1d24;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.page-btn:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.page-btn.active {
  background: #2563EB;
  border-color: #2563EB;
  color: #ffffff;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-ellipsis {
  color: rgba(255, 255, 255, 0.4);
  padding: 0 8px;
}

/* ============================================
   Article Hero
   ============================================ */
.article-hero {
  padding: 100px 0 40px;
  background: #0a0c10;
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 14px;
}

.article-breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
}

.article-breadcrumb a:hover {
  color: #ffffff;
}

.breadcrumb-sep {
  color: rgba(255, 255, 255, 0.3);
}

.article-breadcrumb .current {
  color: rgba(255, 255, 255, 0.4);
}

.article-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
  margin-bottom: 16px;
}

.article-title {
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 24px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

.meta-item iconify-icon {
  font-size: 16px;
}

/* ============================================
   Article Section
   ============================================ */
.article-section {
  padding: 40px 0 80px;
  background: #111318;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
}

/* Article Content */
.article-content {
  background: #1a1d24;
  border-radius: 12px;
  padding: 40px;
}

.article-lead {
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.article-content h2 {
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
  margin-top: 40px;
  margin-bottom: 16px;
}

.article-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin-top: 32px;
  margin-bottom: 12px;
}

.article-content p {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
}

.article-content strong {
  color: #ffffff;
  font-weight: 600;
}

.article-list {
  margin: 16px 0;
  padding-left: 24px;
}

.article-list li {
  position: relative;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 12px;
  padding-left: 16px;
}

.article-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: #ef4444;
  border-radius: 50%;
}

.article-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tag-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

.article-tag-link {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.article-tag-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Article Sidebar */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-card {
  background: #1a1d24;
  border-radius: 12px;
  padding: 24px;
}

.sidebar-title {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Related Articles */
.related-articles {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.related-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.related-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.related-image {
  width: 80px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}

.related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.related-title {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-date {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* Product Links */
.product-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.product-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.product-link iconify-icon {
  font-size: 20px;
  color: #ef4444;
}

.product-link span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

/* Back to List */
.back-to-list {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.back-to-list .btn {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================
   News Detail
   ============================================ */
.news-detail-section {
  padding: 60px 0 80px;
  background: #111318;
}

.news-detail {
  max-width: 800px;
  margin: 0 auto;
}

.news-detail-header {
  text-align: center;
  margin-bottom: 40px;
}

.news-detail-title {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
  margin-bottom: 20px;
}

.news-detail-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.news-detail-author,
.news-detail-source,
.news-detail-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

.news-detail-author iconify-icon,
.news-detail-source iconify-icon,
.news-detail-date iconify-icon {
  font-size: 16px;
}

.news-detail-summary {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 32px;
}

.news-detail-summary p {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
}

.news-detail-content {
  background: #1a1d24;
  border-radius: 12px;
  padding: 40px;
  line-height: 1.8;
}

.news-detail-content p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
}

.news-detail-content h2 {
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
  margin-top: 32px;
  margin-bottom: 16px;
}

/* Article Text */
.article-text {
  line-height: 1.8;
}

.article-text p {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
}

.article-text h2 {
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
  margin-top: 32px;
  margin-bottom: 16px;
}

.article-text h3 {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin-top: 24px;
  margin-bottom: 12px;
}

.article-text ul {
  margin: 16px 0;
  padding-left: 24px;
  list-style: none;
}

.article-text ul li {
  position: relative;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 12px;
  padding-left: 16px;
}

.article-text ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: #ef4444;
  border-radius: 50%;
}

.article-text strong {
  color: #ffffff;
  font-weight: 600;
}

.news-detail-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin-top: 24px;
  margin-bottom: 12px;
}

.news-detail-footer {
  margin-top: 40px;
  text-align: center;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #1a1d24;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  transition: all 0.3s ease;
}

.back-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    order: -1;
  }

  .related-articles {
    flex-direction: row;
    overflow-x: auto;
  }

  .related-item {
    flex-direction: column;
    min-width: 200px;
  }
}

@media (max-width: 768px) {
  .page-title {
    font-size: 32px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-tabs {
    flex-wrap: wrap;
  }

  .article-title {
    font-size: 28px;
  }

  .article-meta {
    flex-wrap: wrap;
    gap: 12px;
  }

  .article-content {
    padding: 24px;
  }

  .article-content h2 {
    font-size: 20px;
  }

  .article-content h3 {
    font-size: 16px;
  }
}
