/* ============================================
   base.less - 基础变量、重置、字体
   仿DJI深色科技风主题
   ============================================ */
/* ---------- 色彩变量 ---------- */
/* ---------- 扩展色彩 ---------- */
/* ---------- 语义色 ---------- */
/* ---------- 渐变 ---------- */
/* ---------- 字体变量 ---------- */
/* ---------- 间距变量 ---------- */
/* ---------- 布局变量 ---------- */
/* ---------- 阴影 ---------- */
/* ---------- 过渡 ---------- */
/* ---------- Z-index层级 ---------- */
/* ---------- 断点变量 ---------- */
/* ============================================
   CSS Reset / 基础重置
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  line-height: 1.75;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: #e8e8f0;
  background-color: #0a0a0f;
  min-height: 100vh;
  overflow-x: hidden;
}
/* ---------- 文字基础 ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.25;
  color: #e8e8f0;
  margin-bottom: 16px;
}
h1 {
  font-size: 48px;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 36px;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 30px;
}
h4 {
  font-size: 24px;
}
h5 {
  font-size: 20px;
}
h6 {
  font-size: 18px;
}
p {
  margin-bottom: 16px;
  color: #000000;
  line-height: 1.75;
}
a {
  color: #2979ff;
  text-decoration: none;
  transition: color 0.3s ease;
  outline: none;
}
a:hover {
  color: #00e5ff;
}
a:focus-visible {
  outline: 2px solid #2979ff;
  outline-offset: 2px;
}
/* ---------- 列表重置 ---------- */
ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
/* ---------- 图片重置 ---------- */
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
  vertical-align: middle;
}
/* ---------- 表单元素重置 ---------- */
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
  appearance: none;
  -webkit-appearance: none;
}
button {
  cursor: pointer;
  background: none;
  border: none;
}
input,
textarea,
select {
  background-color: transparent;
}
/* ---------- 表格重置 ---------- */
table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}
/* ---------- 滚动条样式（Webkit） ---------- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #14141f;
}
::-webkit-scrollbar-thumb {
  background: #2a2a40;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #55556a;
}
/* ---------- 选中文本样式 ---------- */
::selection {
  background: #2979ff;
  color: #ffffff;
}
::-moz-selection {
  background: #2979ff;
  color: #ffffff;
}
/* ---------- 工具类 ---------- */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}
.text-primary {
  color: #e8e8f0;
}
.text-secondary {
  color: #000000;
}
.text-accent {
  color: #2979ff;
}
.text-cyan {
  color: #00e5ff;
}
.text-danger {
  color: #ff5252;
}
.text-success {
  color: #00c853;
}
.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.text-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.text-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* ---------- 背景工具类 ---------- */
.bg-primary {
  background-color: #0a0a0f;
}
.bg-secondary {
  background-color: #14141f;
}
.bg-tertiary {
  background-color: #1c1c2e;
}
/* ---------- 间距工具类 ---------- */
.mt-sm {
  margin-top: 8px;
}
.mt-md {
  margin-top: 16px;
}
.mt-lg {
  margin-top: 24px;
}
.mt-xl {
  margin-top: 32px;
}
.mt-2xl {
  margin-top: 48px;
}
.mb-sm {
  margin-bottom: 8px;
}
.mb-md {
  margin-bottom: 16px;
}
.mb-lg {
  margin-bottom: 24px;
}
.mb-xl {
  margin-bottom: 32px;
}
.mb-2xl {
  margin-bottom: 48px;
}
.pt-sm {
  padding-top: 8px;
}
.pt-md {
  padding-top: 16px;
}
.pt-lg {
  padding-top: 24px;
}
.pt-xl {
  padding-top: 32px;
}
.pt-2xl {
  padding-top: 48px;
}
.pb-sm {
  padding-bottom: 8px;
}
.pb-md {
  padding-bottom: 16px;
}
.pb-lg {
  padding-bottom: 24px;
}
.pb-xl {
  padding-bottom: 32px;
}
.pb-2xl {
  padding-bottom: 48px;
}
/* ---------- 页面主容器 ---------- */
#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.dji-main {
  flex: 1;
  padding-top: 64px;
}
/* ---------- 动画关键帧（供全局复用） ---------- */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 5px #2979ff, 0 0 10px rgba(41, 121, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 20px #2979ff, 0 0 40px rgba(41, 121, 255, 0.5);
  }
}
