/* ============================================
   layout.less - 布局容器、公共样式
   ============================================ */
/* ---------- 主容器 ---------- */
.dji-container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
/* ---------- 窄容器 ---------- */
.dji-container-sm {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
/* ---------- 宽容器 ---------- */
.dji-container-lg {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
/* ---------- 全宽容器（无内边距） ---------- */
.dji-container-fluid {
  width: 100%;
  padding-left: 24px;
  padding-right: 24px;
}
/* ---------- Flex布局工具 ---------- */
.flex {
  display: flex;
}
.flex-col {
  display: flex;
  flex-direction: column;
}
.flex-wrap {
  flex-wrap: wrap;
}
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.flex-start {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.flex-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.flex-1 {
  flex: 1;
}
.flex-none {
  flex: none;
}
.items-start {
  align-items: flex-start;
}
.items-center {
  align-items: center;
}
.items-end {
  align-items: flex-end;
}
.items-stretch {
  align-items: stretch;
}
.gap-xs {
  gap: 4px;
}
.gap-sm {
  gap: 8px;
}
.gap-md {
  gap: 16px;
}
.gap-lg {
  gap: 24px;
}
.gap-xl {
  gap: 32px;
}
.gap-2xl {
  gap: 48px;
}
/* ---------- 网格布局 ---------- */
.grid {
  display: grid;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.grid-6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}
/* ---------- 区块样式 ---------- */
.dji-section {
  padding-top: 80px;
  padding-bottom: 80px;
  position: relative;
  background-color: #0a0a0f;
}
/* 交替浅色区块 */
.dji-products-section {
  background-color: #14141f;
}
.dji-compare-section {
  background-color: #14141f;
}
.dji-trust-section {
  background-color: #0a0a0f;
}
/* ---------- 区块标题 ---------- */
.dji-section-header {
  text-align: center;
  margin-bottom: 64px;
}
.dji-section-title {
  font-size: 36px;
  font-weight: 700;
  color: #e8e8f0;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.dji-section-subtitle {
  font-size: 18px;
  color: #8888a0;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.75;
}
.dji-section-label {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #2979ff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
/* ---------- 分割线 ---------- */
.dji-divider {
  border: none;
  height: 1px;
  background-color: #2a2a40;
  margin: 48px 0;
}
.dji-divider-light {
  background-color: #1a1a2e;
}
/* ---------- 面包屑导航 ---------- */
.dji-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 16px 0;
  font-size: 14px;
  list-style: none;
}
.dji-breadcrumb-link {
  display: flex;
  align-items: center;
  color: #8888a0;
}
.dji-breadcrumb-link a {
  color: #8888a0;
  transition: color 0.15s ease;
}
.dji-breadcrumb-link a:hover {
  color: #2979ff;
}
.dji-breadcrumb-sep {
  margin: 0 8px;
  color: #55556a;
  font-size: 12px;
}
.dji-breadcrumb-link.active {
  color: #e8e8f0;
}
/* ---------- 页面标题区 ---------- */
.dji-page-header {
  padding: 64px 0 48px;
  background-color: #14141f;
  border-bottom: 1px solid #1a1a2e;
}
.dji-page-title {
  font-size: 36px;
  font-weight: 700;
  color: #e8e8f0;
  margin-bottom: 8px;
}
.dji-page-desc {
  font-size: 18px;
  color: #8888a0;
  max-width: 700px;
  margin-bottom: 0;
}
/* ---------- 空状态 ---------- */
.dji-empty-state {
  text-align: center;
  padding: 120px 32px;
}
.dji-empty-state-icon {
  font-size: 64px;
  color: #55556a;
  margin-bottom: 32px;
}
.dji-empty-state-title {
  font-size: 24px;
  font-weight: 600;
  color: #e8e8f0;
  margin-bottom: 16px;
}
.dji-empty-text {
  font-size: 16px;
  color: #8888a0;
  margin-bottom: 32px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
/* ---------- 加载骨架屏 ---------- */
.skeleton {
  position: relative;
  overflow: hidden;
  background-color: #1c1c2e;
  border-radius: 8px;
}
.skeleton::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}
.skeleton-text {
  height: 16px;
  margin-bottom: 16px;
  border-radius: 4px;
}
.skeleton-title {
  height: 24px;
  width: 60%;
  margin-bottom: 24px;
  border-radius: 4px;
}
.skeleton-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}
.skeleton-image {
  width: 100%;
  height: 200px;
  border-radius: 8px;
}
.skeleton-card {
  padding: 24px;
  border-radius: 8px;
  background-color: #1c1c2e;
}
/* ---------- 侧边栏布局 ---------- */
.dji-layout-sidebar {
  display: flex;
  gap: 48px;
}
.dji-layout-sidebar-main {
  flex: 1;
  min-width: 0;
}
.dji-layout-sidebar-aside {
  width: 280px;
  flex-shrink: 0;
}
/* ---------- 返回顶部按钮 ---------- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1c1c2e;
  border: 1px solid #2a2a40;
  border-radius: 8px;
  color: #8888a0;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 200;
}
.back-to-top:hover {
  background-color: #2979ff;
  border-color: #2979ff;
  color: #ffffff;
  transform: translateY(0);
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* ---------- 页面过渡遮罩 ---------- */
.page-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0a0a0f;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 800;
  transition: opacity 0.5s ease;
}
.page-loading.is-loaded {
  opacity: 0;
  pointer-events: none;
}
.page-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #2a2a40;
  border-top-color: #2979ff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
