/* ============================================
   article.less - 文章列表/详情
   ============================================ */
/* ---------- 文章列表页 ---------- */
.dji-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
/* ---------- 文章卡片 ---------- */
.dji-news-card {
  position: relative;
  background-color: #181825;
  border: 1px solid #1a1a2e;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}
.dji-news-card:hover {
  border-color: #2a2a40;
  background-color: #202035;
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
/* 文章封面图 */
.dji-news-card-image {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  background-color: #14141f;
}
.dji-news-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.dji-news-card:hover .dji-news-card-image img {
  transform: scale(1.05);
}
/* 文章类型标签 */
.dji-news-card-type {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  border-radius: 4px;
  z-index: 2;
}
.dji-news-card-type.type-news {
  background-color: #2979ff;
}
.dji-news-card-type.type-review {
  background-color: #00e5ff;
  color: #0a0a0f;
}
.dji-news-card-type.type-tutorial {
  background-color: #00c853;
}
.dji-news-card-type.type-event {
  background-color: #ffab40;
  color: #0a0a0f;
}
/* 文章视频标识 */
.dji-news-card-video-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}
.dji-news-card:hover .dji-news-card-video-icon {
  opacity: 1;
}
/* 文章内容 */
.dji-news-card-info {
  padding: 24px;
}
.dji-news-card-category {
  font-size: 12px;
  font-weight: 600;
  color: #2979ff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.dji-news-card-title {
  font-size: 18px;
  font-weight: 600;
  color: #e8e8f0;
  line-height: 1.25;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
}
.dji-news-card:hover .dji-news-card-title {
  color: #2979ff;
}
.dji-news-card-summary {
  font-size: 14px;
  color: #8888a0;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}
/* 文章底部信息 */
.dji-news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid #1a1a2e;
  font-size: 12px;
  color: #55556a;
}
.dji-news-card-author {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dji-news-card-author img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}
.dji-news-card-author span {
  color: #8888a0;
}
.dji-news-card-date {
  color: #55556a;
}
.dji-news-card-stats {
  display: flex;
  align-items: center;
  gap: 16px;
}
.dji-news-card-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #55556a;
}
/* ---------- 文章列表横向布局 ---------- */
.dji-news-card-horizontal {
  display: flex;
  flex-direction: row;
}
.dji-news-card-horizontal .dji-news-card-image {
  width: 280px;
  padding-top: 0;
  height: auto;
  flex-shrink: 0;
}
.dji-news-card-horizontal .dji-news-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* ---------- 文章详情页 ---------- */
.dji-article-detail {
  max-width: 800px;
  margin: 0 auto;
  padding: 64px 24px;
}
.dji-article-detail-header {
  margin-bottom: 48px;
  text-align: center;
}
.dji-article-detail-category {
  font-size: 14px;
  font-weight: 600;
  color: #2979ff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.dji-article-detail-title {
  font-size: 36px;
  font-weight: 700;
  color: #e8e8f0;
  line-height: 1.25;
  margin-bottom: 24px;
}
.dji-article-detail-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  font-size: 14px;
  color: #55556a;
}
.dji-article-detail-author-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dji-article-detail-author-info img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.dji-article-detail-author-info .dji-author-name {
  color: #8888a0;
  font-weight: 500;
}
/* 文章封面大图 */
.dji-article-detail-cover {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 48px;
  background-color: #14141f;
}
.dji-article-detail-cover img {
  width: 100%;
  display: block;
}
/* 文章正文 */
.dji-article-detail-content {
  font-size: 16px;
  line-height: 1.8;
  color: #e8e8f0;
}
.dji-article-detail-content p {
  margin-bottom: 24px;
  color: #e8e8f0;
}
.dji-article-detail-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 16px;
  color: #e8e8f0;
}
.dji-article-detail-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 8px;
  color: #e8e8f0;
}
.dji-article-detail-content img {
  border-radius: 8px;
  margin: 32px 0;
}
.dji-article-detail-content a {
  color: #2979ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.dji-article-detail-content a:hover {
  color: #00e5ff;
}
.dji-article-detail-content blockquote {
  margin: 32px 0;
  padding: 24px 32px;
  border-left: 3px solid #2979ff;
  background-color: #14141f;
  border-radius: 0 8px 8px 0;
  color: #8888a0;
  font-style: italic;
}
.dji-article-detail-content ul,
.dji-article-detail-content ol {
  margin-bottom: 24px;
  padding-left: 32px;
}
.dji-article-detail-content ul li,
.dji-article-detail-content ol li {
  margin-bottom: 8px;
  color: #e8e8f0;
  line-height: 1.75;
}
.dji-article-detail-content ul li::before,
.dji-article-detail-content ol li::before {
  content: "• ";
  color: #2979ff;
  font-weight: bold;
}
.dji-article-detail-content code {
  padding: 2px 6px;
  font-size: 14px;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  background-color: #1c1c2e;
  border-radius: 4px;
  color: #00e5ff;
}
.dji-article-detail-content pre {
  margin: 32px 0;
  padding: 24px;
  background-color: #14141f;
  border: 1px solid #2a2a40;
  border-radius: 8px;
  overflow-x: auto;
}
.dji-article-detail-content pre code {
  padding: 0;
  background: none;
  font-size: 14px;
  line-height: 1.6;
}
/* 文章标签 */
.dji-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #1a1a2e;
}
.dji-article-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 16px;
  font-size: 14px;
  color: #8888a0;
  background-color: #1c1c2e;
  border-radius: 9999px;
  transition: all 0.15s ease;
}
.dji-article-tag:hover {
  color: #2979ff;
  border-color: #2979ff;
  background-color: rgba(41, 121, 255, 0.1);
}
/* 文章分享 */
.dji-article-share {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}
.dji-article-share-label {
  font-size: 14px;
  color: #55556a;
}
.dji-article-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #1c1c2e;
  color: #8888a0;
  transition: all 0.15s ease;
}
.dji-article-share-btn:hover {
  background-color: #2979ff;
  color: #ffffff;
}
.dji-article-share-btn svg {
  width: 16px;
  height: 16px;
}
/* ---------- 上下篇导航 ---------- */
.dji-article-nav {
  display: flex;
  gap: 24px;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid #1a1a2e;
}
.dji-article-nav-item {
  flex: 1;
  padding: 24px;
  background-color: #181825;
  border: 1px solid #1a1a2e;
  border-radius: 8px;
  transition: all 0.15s ease;
}
.dji-article-nav-item:hover {
  border-color: #2979ff;
  background-color: #202035;
}
.dji-article-nav-label {
  font-size: 12px;
  color: #55556a;
  margin-bottom: 4px;
}
.dji-article-nav-title {
  font-size: 14px;
  font-weight: 500;
  color: #e8e8f0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dji-article-nav-next {
  text-align: right;
}
/* ---------- 文章侧边栏 ---------- */
.dji-article-sidebar-widget {
  background-color: #181825;
  border: 1px solid #1a1a2e;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
}
.dji-article-sidebar-widget-title {
  font-size: 18px;
  font-weight: 600;
  color: #e8e8f0;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #1a1a2e;
}
/* 推荐文章列表 */
.dji-article-recommend-list {
  list-style: none;
}
.dji-article-recommend-item {
  display: flex;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid #1a1a2e;
}
.dji-article-recommend-item:last-child {
  border-bottom: none;
}
.dji-article-recommend-item:hover .dji-article-recommend-title {
  color: #2979ff;
}
.dji-article-recommend-thumb {
  width: 80px;
  height: 56px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  background-color: #14141f;
}
.dji-article-recommend-title {
  font-size: 14px;
  font-weight: 500;
  color: #e8e8f0;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
}
.dji-article-recommend-date {
  font-size: 12px;
  color: #55556a;
  margin-top: 4px;
}
/* ---------- 文章筛选栏 ---------- */
-article-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #1a1a2e;
}
.dji-article-filter-tabs {
  display: flex;
  gap: 4px;
}
.dji-article-filter-tab {
  padding: 8px 24px;
  font-size: 14px;
  font-weight: 500;
  color: #8888a0;
  border-radius: 9999px;
  transition: all 0.15s ease;
  cursor: pointer;
}
.dji-article-filter-tab:hover {
  color: #e8e8f0;
}
.dji-article-filter-tab.is-active {
  color: #ffffff;
  background-color: #2979ff;
}
.dji-article-filter-sort {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dji-article-filter-sort select {
  padding: 8px 16px;
  font-size: 14px;
  color: #8888a0;
  background-color: #1c1c2e;
  border: 1px solid #2a2a40;
  border-radius: 4px;
  cursor: pointer;
}
/* ---------- 加载更多 ---------- */
.dji-article-load-more {
  text-align: center;
  margin-top: 48px;
}
.dji-article-load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 48px;
  font-size: 14px;
  font-weight: 500;
  color: #8888a0;
  background-color: #1c1c2e;
  border: 1px solid #2a2a40;
  border-radius: 9999px;
  transition: all 0.3s ease;
  cursor: pointer;
}
.dji-article-load-more-btn:hover {
  border-color: #2979ff;
  color: #2979ff;
}
