/* ========================================================================
   基础样式 · reset + 排版 + 移动优先布局
   ======================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--ff-sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--c-ink);
  background: var(--c-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

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

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

ul {
  list-style: none;
}

/* ---------- 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* 略宽容器，用于作品/资料等需要呼吸的区块 */
.container--wide {
  max-width: 760px;
}

/* ---------- 区块通用 ---------- */
.section {
  padding: var(--sp-7) 0;
}

.section--soft {
  background: var(--c-bg-soft);
}

/* 区块小标题：衬线 + 左侧短竖线，文艺感 */
.section__title {
  font-family: var(--ff-serif);
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: var(--sp-2);
  padding-left: var(--sp-4);
  position: relative;
}

.section__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 1.1em;
  background: var(--c-accent);
  border-radius: var(--r-pill);
}

.section__sub {
  font-size: var(--fs-small);
  color: var(--c-ink-mute);
  margin-bottom: var(--sp-5);
  padding-left: var(--sp-4);
}

/* ---------- 文字工具 ---------- */
.serif {
  font-family: var(--ff-serif);
}

.caption {
  font-size: var(--fs-caption);
  color: var(--c-ink-mute);
  letter-spacing: 0.04em;
}

.muted {
  color: var(--c-ink-mute);
}

/* ---------- 无障碍 ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
