/* ============================================================
   Lshell 官网 —— 基础层：重置、排版、通用工具
   ============================================================ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.75;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  line-height: 1.35;
  font-weight: 400;
  color: var(--fg-strong);
  /* 内置字体是等宽的，英文与中文都占满字宽，
     需要收紧字距才不至于显得松散 */
  letter-spacing: -0.02em;
}

::selection {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
::-webkit-scrollbar-track {
  background: var(--bg-tint);
}
::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: var(--r-pill);
  border: 3px solid var(--bg-tint);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--fg-faint);
}

/* ---------- 布局工具 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  position: relative;
  padding: 104px 0;
}

.section-tight {
  padding: 72px 0;
}

/* ---------- 区块标题 ---------- */
.sec-head {
  max-width: 720px;
  margin-bottom: 52px;
}

.sec-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.sec-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 400;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-pill);
  padding: 5px 15px;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.sec-kicker .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.sec-title {
  font-size: clamp(30px, 3.8vw, 42px);
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.sec-desc {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.8;
}

/* ---------- 滚动渐显 ---------- */.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.4s; }

/* ---------- 通用文字强调 ---------- */
.hl {
  color: var(--accent-ink);
  position: relative;
  white-space: nowrap;
}

.hl::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 2px;
  height: 10px;
  background: var(--accent-soft);
  border-radius: 4px;
  z-index: -1;
}

.hl-peach { color: var(--peach-ink); }
.hl-peach::after { background: var(--peach-soft); }
.hl-mint { color: var(--mint-ink); }
.hl-mint::after { background: var(--mint-soft); }

/* ---------- 无障碍 ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 200;
  background: var(--accent);
  color: var(--fg-on-accent);
  padding: 10px 18px;
  border-radius: var(--r-xs);
  transition: top var(--dur-fast) var(--ease);
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
