/* global.css */
:root {
  /* 轮播的条数，可以覆盖 */
  --s: 6;
  /* 单个条目的高度 */
  --h: 36;
  /* 单次动画的时长 */
  --speed: 3s;
}

.latest-news {
  margin-top: 4px;
  height: calc(var(--h) * 1px);
  line-height: calc(var(--h) * 1px);
  border-radius: 6px;
  border: 1px solid rgb(202, 201, 201);
  overflow: hidden;
  display: flex;
}

.latest-news .icon {
  width: 12px;
  margin-left: 10px;
  display: flex;
  align-items: center;
}

.latest-news .content {
  font-size: 14px;
  overflow: hidden;
  margin-left: 8px;
}

.latest-news .content ul {
  animation: move calc(var(--speed) * var(--s)) steps(var(--s)) infinite;
  margin: 0;
  padding: 0;
}

.latest-news .content ul li {
  list-style: none;
  white-space: nowrap;
  cursor: pointer;
  animation: liMove calc(var(--speed)) infinite;
}

.latest-news .content ul li a {
  color: var(--accent-a11);
  font-weight: 500;
}

@keyframes move {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(0, calc(var(--s) * var(--h) * -1px));
  }
}

@keyframes liMove {
  0% {
    transform: translate(0, 0);
  }

  80%,
  100% {
    transform: translate(0, calc(var(--h) * -1px));
  }
}

a {
  color: #002bb7c5;
}

a,
.radix-link {
  text-decoration: none !important;
}

[data-has-background="true"] {
  background: none !important;
}

p img {
  display: block;
  margin: 0 auto;
  border-color: var(--gray-5);
  border-radius: 4px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

@keyframes autoClear {
    0% {
        filter: blur(8px);
        transform: scale(1.1);
    }
    100% {
        filter: blur(0);
        transform: scale(1);
    }
}
/* src/styles/layout.css */
/* 内容容器 - 用于 Header、Content、Footer 的内容区域 */
.layout-container {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    padding-left: clamp(12px, 4vw, 20px);
    padding-right: clamp(12px, 4vw, 20px);
}

/* Header 专用容器 - 保持 flex 布局 */
.header-container {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    padding-left: clamp(12px, 4vw, 20px);
    padding-right: clamp(12px, 4vw, 20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Footer 内容容器 */
.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

/* 响应式调整 */
@media (min-width: 1200px) {
    .layout-container,
    .header-container,
    .footer-container {
        max-width: 1000px;
    }
}
