/* ============================================================
   tokens.css — 设计令牌（颜色 / 字体 / 断点 / 动效）
   改主题只改这里
   ============================================================ */

:root {
  /* ---------- 颜色 ---------- */
  --header-blue: #00193c;
  --blue-900: #00204d;
  --balyasny-blue: #0054cc;
  --blue-100: #e6f0ff;
  --blue-400: #5b99f1;
  --gray-400: #bdbdbd;
  --gray-300: #dfdfdb;
  --gray-150: #f2f2f2;
  --ink: #101010;
  --white: #ffffff;
  --white-25: rgba(255, 255, 255, 0.25);
  --cookie-bg: rgba(0, 42, 102, 0.98);

  /* ---------- 字体 ---------- */
  --font-sans: "Sharp Sans", "Sharp Sans Fallback", Arial, Helvetica, sans-serif;

  /* ---------- 布局 ---------- */
  --page-max: 1440px;
  --gutter: 20px;
  --header-h: 48px;
  --radius-btn: 4px;
  --radius-pill: 9999px;

  /* ---------- 动效 ---------- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 200ms;
  --t-med: 400ms;
  --t-slow: 800ms;

  /* ---------- 圆环图（canvas 用，供 JS 读取） ---------- */
  --ring-investment: rgb(65, 175, 190);
  --ring-risk: rgb(30, 230, 145);
  --ring-technology: rgb(255, 120, 30);
  --ring-business: rgb(140, 55, 255);
}

/* ---------- 字体面 ---------- */
@font-face {
  font-family: "Sharp Sans";
  src: url("../assets/fonts/SharpSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sharp Sans";
  src: url("../assets/fonts/SharpSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sharp Sans";
  src: url("../assets/fonts/SharpSans-Semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sharp Sans";
  src: url("../assets/fonts/SharpSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* 兜底字体度量模拟（避免 FOUT 时布局跳动） */
@font-face {
  font-family: "Sharp Sans Fallback";
  src: local("Arial");
  ascent-override: 86.31%;
  descent-override: 26.18%;
  line-gap-override: 0%;
  size-adjust: 116.9%;
}

/* ---------- 断点：布局变量 ---------- */
@media (min-width: 640px) {
  :root {
    --header-h: 64px;
  }
}
@media (min-width: 768px) {
  :root {
    --gutter: 32px;
    --header-h: 96px;
  }
}
@media (min-width: 1024px) {
  :root {
    --gutter: 40px;
    --header-h: 128px;
  }
}
@media (min-width: 1280px) {
  :root {
    --gutter: 56px;
  }
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  border: 0 solid #eeeeec;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: #000;
  background: #fff;
  /* 与原站保持一致：不覆盖浏览器的文字平滑/渲染策略（antialiased / optimizeLegibility 会改变字形像素） */
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  text-rendering: auto;
}
h1, h2, h3, h4, h5, h6, p, figure, ul, ol {
  margin: 0;
}
ul, ol {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: inherit;
}
img, svg, video, canvas {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
button {
  font: inherit;
  color: inherit;
  background: transparent;
  margin: 0;
  padding: 0;
  cursor: pointer;
  text-align: inherit;
  -webkit-appearance: button;
}
[hidden] {
  display: none !important;
}

/* 无障碍：屏幕阅读器专用 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* 跳转链接 */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 12px 20px;
  background: #fff;
  color: #000;
  font-weight: 600;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
}

