/* ============================================================
   亿渼诺 YIMEINUO · 基础与排版 Base
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: var(--ls-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

:focus-visible {
  outline: 1px solid var(--color-accent);
  outline-offset: 3px;
}

::selection {
  background: var(--color-accent);
  color: #0E0D0B;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-thumb {
  background: var(--color-line);
  border-radius: 99px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}

/* ---- 通用排版工具 ---- */
.serif { font-family: var(--font-serif); }
.latin { font-family: var(--font-latin); }
.accent { color: var(--color-accent); }

/* 小标：加宽字距的大写英文标签 */
.label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--color-ink-3);
}
.label--accent { color: var(--color-accent); }

/* 容器 */
.container {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* 板块 */
.section {
  position: relative;
  padding: var(--section-y) 0;
}

/* 板块头：小标 + 可选宋体大标题 */
.section-head {
  margin-bottom: clamp(40px, 6vh, 64px);
}
.section-title {
  margin-top: 16px;
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 400;
  letter-spacing: var(--ls-cn);
  line-height: 1.35;
}

/* ---- 渐显动效（层级淡入：虚化→聚焦，错层依次浮现） ---- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(7px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease),
    filter 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
html.js [data-reveal="fade"] {
  transform: none;
}
html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
}
