/* 页面各区块与响应式布局；令牌与通用控件见 base.css。 */
/* 全站单栏：宽度收在内容盒内，分隔线与文字左右对齐。 */
main > section,
.footer {
  width: var(--page);
  margin-inline: auto;
}

/* ---- 首屏 ---- */
.hero {
  padding-top: clamp(64px, 12vh, 112px);
  padding-bottom: clamp(72px, 12vh, 112px);
}

.eyebrow {
  color: var(--ink-faint);
  font-size: 13px;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.focus {
  position: relative;
  font: 650 clamp(44px, 12vw, 68px) / 1.12 var(--font-display);
  letter-spacing: -0.03em;
}

.focus-word {
  display: inline-block;
  padding: 0.04em 0.08em;
  transition:
    filter var(--move) var(--ease),
    color var(--move) var(--ease);
}

.focus.is-ready .focus-word {
  filter: blur(4px);
  color: var(--ink-faint);
}

.focus.is-ready .focus-word.is-active {
  filter: none;
  color: var(--ink);
}

.focus-frame {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  transition:
    transform var(--move) var(--ease),
    width var(--move) var(--ease),
    height var(--move) var(--ease);
}

.corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 0 solid var(--ink);
}

.corner-tl {
  left: -4px;
  top: -2px;
  border-width: 2.5px 0 0 2.5px;
}
.corner-tr {
  right: -4px;
  top: -2px;
  border-width: 2.5px 2.5px 0 0;
}
.corner-bl {
  left: -4px;
  bottom: -2px;
  border-width: 0 0 2.5px 2.5px;
}
.corner-br {
  right: -4px;
  bottom: -2px;
  border-width: 0 2.5px 2.5px 0;
}

.lede {
  margin-top: 28px;
  color: var(--ink-soft);
  font-size: 17px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 32px;
}

.meta {
  color: var(--ink-faint);
  font-size: 13px;
}

/* ---- 通用区块 ---- */
.section-title {
  font: 650 26px / 1.25 var(--font-display);
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}

.modes,
.engines,
.shortcuts,
.privacy {
  padding-block: 72px;
  border-top: 1px solid var(--line);
}

/* ---- 三种模式 ---- */
.mode {
  display: grid;
  gap: 10px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.mode:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.mode-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.mode-head h3 {
  font: 600 20px/1.3 var(--font-display);
}

.mode-index {
  font: 500 12px var(--font-mono);
  color: var(--ink-faint);
}

.mode-desc {
  color: var(--ink-soft);
  font-size: 15px;
}

.demo {
  margin-top: 8px;
  padding: 20px 22px;
  border-radius: 14px;
  background: var(--bg-soft);
  font-size: 18px;
  line-height: 1.6;
}

.demo-src {
  color: var(--ink-faint);
}

.demo-out {
  margin-top: 8px;
  font-weight: 600;
}

.demo-check del {
  color: var(--del);
  text-decoration-thickness: 2px;
}

.demo-check ins {
  color: var(--ins);
  text-decoration: none;
  font-weight: 600;
}

.note,
.legend {
  margin-top: 12px;
  color: var(--ink-faint);
  font-size: 13px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}

.legend span::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: currentColor;
}

.r {
  text-decoration: underline;
  text-decoration-thickness: 2.5px;
  text-underline-offset: 5px;
}

.r-sub {
  color: var(--role-sub);
}
.r-pred {
  color: var(--role-pred);
}
.r-obj {
  color: var(--role-obj);
}
.r-attr {
  color: var(--role-attr);
}

/* ---- 引擎 ---- */
.engine-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.engine-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 16px 16px 0;
  border-top: 1px solid var(--line);
}

.engine-list strong {
  font-size: 17px;
  font-weight: 600;
}

.engine-list span {
  color: var(--ink-faint);
  font-size: 13px;
}

/* ---- 快捷键 ---- */
.keys {
  margin: 0 0 20px;
}

.keys > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.keys dt {
  order: 2;
  white-space: nowrap;
}

.keys dd {
  margin: 0;
  font-size: 15px;
}

kbd {
  display: inline-block;
  min-width: 2.2em;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-bottom-width: 3px;
  border-radius: 7px;
  background: var(--key-bg);
  color: var(--ink);
  font: 500 13px/1.4 var(--font-mono);
  text-align: center;
}

.mode-head kbd {
  margin-left: auto;
  font-size: 12px;
}

/* ---- 隐私 ---- */
.facts {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.facts li {
  padding-top: 14px;
  border-top: 2px solid var(--ink);
  font-size: 16px;
}

/* ---- 下载 ---- */
.download {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-block: 88px;
  text-align: center;
  border-top: 1px solid var(--line);
}

.download h2 {
  font: 650 clamp(26px, 6vw, 32px) / 1.25 var(--font-display);
  letter-spacing: -0.01em;
}

.download .btn {
  margin-top: 10px;
}

.footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 12px;
}

/* ---- 窄屏 ---- */
@media (max-width: 480px) {
  .nav-actions {
    gap: 6px;
    white-space: nowrap;
  }
  .nav-link {
    padding-inline: 8px;
  }
  .nav .btn-small {
    padding-inline: 10px;
  }
  .nav .lang {
    padding-inline: 8px;
  }
  .nav {
    gap: 8px;
    flex-wrap: wrap;
  }
  /* 窄屏仍保留完整字标；按钮放不下时换行，避免挤压品牌图案。 */
  .brand-wordmark {
    width: 80px;
    height: 24px;
  }
  .engine-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .focus.is-ready .focus-word {
    filter: none;
  }
  .focus-word,
  .focus-frame,
  .btn {
    transition: none;
  }
}
