/* ==========================================================================
   千谋 CLM 静态演示站 · 基础样式
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}
/* 注意：这里不能用 height:100% —— 它会把 body 的高度锁成一屏，
   导致 body 内的 position:sticky 元素（如介绍页悬浮导航）没有可粘滞的空间。
   后台外壳 (#app) 与全屏页各自使用 100vh/100dvh，不依赖这条规则。 */
html { min-height: 100%; }

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--el-text-primary);
  background: var(--el-bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--el-color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--el-color-primary-dark-2);
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
}

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  background: #c8ccd4;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8abb2;
}

::-webkit-scrollbar-track {
  background: transparent;
}

/* ---------- 图标（内联 SVG sprite） ---------- */
.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.15em;
  fill: currentColor;
  flex-shrink: 0;
  overflow: hidden;
}

/* ---------- 通用工具类 ---------- */
.u-flex {
  display: flex;
  align-items: center;
}
.u-flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.u-flex-wrap {
  flex-wrap: wrap;
}
.u-gap-1 { gap: 4px; }
.u-gap-2 { gap: 8px; }
.u-gap-3 { gap: 12px; }
.u-gap-4 { gap: 16px; }
.u-gap-6 { gap: 24px; }
.u-grow { flex: 1; }
.u-ml-auto { margin-left: auto; }
.u-mt-2 { margin-top: 8px; }
.u-mt-4 { margin-top: 16px; }
.u-mt-6 { margin-top: 24px; }
.u-mb-2 { margin-bottom: 8px; }
.u-mb-4 { margin-bottom: 16px; }
.u-mb-6 { margin-bottom: 24px; }
.u-text-secondary { color: var(--el-text-secondary); }
.u-text-regular { color: var(--el-text-regular); }
.u-text-primary { color: var(--el-text-primary); }
.u-text-brand { color: var(--el-color-primary); }
.u-text-center { text-align: center; }
.u-text-right { text-align: right; }
.u-fw-500 { font-weight: 500; }
.u-fw-600 { font-weight: 600; }
.u-fw-700 { font-weight: 700; }
.u-fs-xs { font-size: var(--fs-xs); }
.u-fs-sm { font-size: var(--fs-sm); }
.u-fs-2xl { font-size: var(--fs-2xl); }
.u-nowrap { white-space: nowrap; }
.u-mono { font-family: var(--font-mono); }
.u-hidden { display: none !important; }
.u-pointer { cursor: pointer; }

/* ---------- 动画 ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.anim-fade-up {
  animation: fadeUp 0.5s both;
}

/* 演示站专用浮标 */
.demo-badge {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  font-size: var(--fs-xs);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(6px);
}

.demo-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulseDot 1.6s infinite;
}

.demo-badge a {
  color: #93c5fd;
}
