/* ============================================================
   肯森特AI — 基础样式：重置、排版、通用元素
   ============================================================ */

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

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ---- 通用工具类 ---- */
.hidden { display: none !important; }

/* ---- 进度条 ---- */
.progress {
  height: 3px;
  background: var(--color-gray-200);
  border-radius: 2px;
  margin: 6px 0;
}

.progress .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-expert-institution));
  border-radius: 2px;
  transition: width .3s;
}

/* ---- 滚动条 ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, .15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, .25); }

/* ---- 文本选中 ---- */
::selection {
  background: rgba(0, 122, 255, .18);
  color: var(--text-primary);
}
