/* reset,start ================ */
body,
html,
div,
p,
article,
section,
header,
footer,
nav,
aside,
main,
img,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
form,
input,
textarea,
select,
button {
  margin: 0;
  padding: 0;
}

body {
  font-size: 14px;
  font-family: Arial, Helvetica, sans-serif;
  font-style: normal;
  font-weight: 400;
  color: #333;
  background-color: #fff;
  line-height: 20px;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: none;
  overflow-x: hidden;
}
a {
  color: #333;
  text-decoration: none;
  outline: none;
}

select {
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  outline: none;
}
select::-ms-expand {
  display: none;
}

ul,
ol,
li {
  list-style: none;
}

img {
  border: 0;
  vertical-align: middle;
}
/* reset,end ================ */
@media (any-hover: hover) {
  a:hover {
    color: #000;
    text-decoration: none;
  }
  .message-close:hover {
    color: #666;
  }
}

/* 图片默认效果 =============== */
img.skeleton {
  display: block;
  object-fit: cover;
  overflow: hidden;
  background: linear-gradient(
      135deg,
      transparent 0,
      transparent 30%,
      rgba(255, 255, 255, 0.9) 50%,
      transparent 70%,
      transparent 100%
    ),
    linear-gradient(
      135deg,
      #d0d0d0 0,
      #e8e8e8 25%,
      #f5f5f5 50%,
      #e8e8e8 75%,
      #d0d0d0 100%
    );
  background-size: 200% 100%, 200% 100%;
  background-position: -200% 0, 0 0;
  animation: skeleton-shimmer 2.5s infinite ease-in-out;
}
@keyframes skeleton-shimmer {
  0% {
    background-position: -200% 0, 0 0;
  }
  50% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 200% 0, 0 0;
  }
}
img.loaded {
  background: none;
  animation: none;
  display: block;
}
/* 图片默认效果 =============== */
/* 消息组件 =============== */
.message-container {
  position: fixed;
  top: 24px;
  left: 50%;
  z-index: 1010;
  padding: 0 15px;
  transform: translateX(-50%);
}
.message {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  margin-bottom: 8px;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08),
    0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  transform: translateY(-100%);
  opacity: 0;
}
.message.show {
  transform: translateY(0);
  opacity: 1;
}
.message.hide {
  transform: translateY(-100%);
  opacity: 0;
}
.message-icon {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  flex-shrink: 0;
}
.message-content {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}
.message-close {
  width: 16px;
  height: 16px;
  margin-left: 12px;
  cursor: pointer;
  color: #ccc;
  transition: color 0.2s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.message-info .message-icon {
  color: #1890ff;
}
.message-success .message-icon {
  color: #52c41a;
}
.message-warning .message-icon {
  color: #faad14;
}
.message-error .message-icon {
  color: #f5222d;
}
/* 消息组件 =============== */
:root {
  --primary-color: var(--color-primary, #000000);
  --secondary-color: var(--color-secondary, #333333);
  --loading-color: var(--color-loading, #999);
  --border-color: var(--color-border, #ddd);
  --hover-color: var(--color-hover, #333333);
}

/* Loading start ================== */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 30px;
}

.loading-container .loading-text {
  color: #333;
  font-size: 14px;
}
.loading-container .dots {
  display: flex;
  gap: 6px;
}

.loading-container .dot {
  width: 12px;
  height: 12px;
  background-color: var(--loading-color);
  border-radius: 50%;
  animation: loadingBounce 1.4s infinite ease-in-out both;
}

.loading-container .dot:nth-child(1) {
  animation-delay: -0.32s;
}
.loading-container .dot:nth-child(2) {
  animation-delay: -0.16s;
}
.loading-container.sm {
  padding: 0;
  transform: translateY(2px);
}
.loading-container.sm .dots {
  gap: 2px;
}

.loading-container.sm .dot {
  width: 6px;
  height: 6px;
}

.loading-container.sm .loading-text {
  display: none;
}

@keyframes loadingBounce {
  0%,
  80%,
  100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}
/* Loading end ================== */
/* Empty Container start ================== */
.empty-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
  color: #333;
  font-size: 14px;
}

.empty-container .icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  opacity: 0.3;
  fill: #cdcdcd;
}
/* Empty Container end ================== */

