/* ============================================================
   base.css — 设计令牌、重置、排版基础
   ============================================================ */

:root {
  /* 深海色板 */
  --abyss:        #03060c;
  --deep:         #050b14;
  --surface:      #081420;
  --surface-2:    #0c1c2c;
  --surface-3:    #112637;
  --line:         rgba(150, 195, 225, 0.14);
  --line-strong:  rgba(150, 195, 225, 0.28);

  /* 文本 */
  --ink:          #e8f2f8;
  --ink-soft:     #b4c8d8;
  --ink-mute:     #7d94a6;

  /* 强调色 */
  --accent:       #5fd3f3;
  --accent-deep:  #2a9fd0;
  --accent-warm:  #f2b880;
  --accent-warm-2:#e08a4c;
  --accent-green: #6fd6a8;
  --accent-violet:#a48cf0;

  /* 语义色 */
  --temp:         #f2b880;
  --sal:          #6fd6a8;
  --dens:         #a48cf0;
  --light:        #5fd3f3;

  /* 排版 */
  --font-sans: "Inter", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-serif: "Songti SC", "SimSun", "Noto Serif SC", "Source Han Serif SC",
                Georgia, "Times New Roman", serif;
  --font-mono: "SF Mono", "JetBrains Mono", Consolas, "Courier New", monospace;

  /* 尺度 */
  --measure: 68ch;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --maxw: 1440px;
  --radius: 14px;
  --radius-lg: 22px;

  /* 层级 */
  --header-h: 64px;
  --z-header: 100;
  --z-dots: 90;
  --z-progress: 95;

  /* 动效 */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.5s;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--deep);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(0.98rem, 0.94rem + 0.2vw, 1.08rem);
  line-height: 1.72;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: 0.01em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.25s var(--ease-out);
}
a:hover { color: var(--accent-warm); }

b, strong { color: var(--ink); font-weight: 600; }

canvas { display: block; }

img, svg { max-width: 100%; }

::selection {
  background: rgba(95, 211, 243, 0.28);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--abyss); }
::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 6px;
  border: 2px solid var(--abyss);
}
::-webkit-scrollbar-thumb:hover { background: #1b3a50; }

/* 无障碍 */
.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 999;
  padding: 0.7rem 1.1rem;
  background: var(--accent);
  color: var(--abyss);
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  transition: top 0.25s var(--ease-out);
}
.skip-link:focus { top: 0; color: var(--abyss); }

.noscript {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 500;
  padding: 1rem 1.5rem;
  background: var(--surface-2);
  border-top: 1px solid var(--line-strong);
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
