/* 「引擎」页专属样式：以内容为主的引擎介绍，不做滚动动画（公共样式见 site.css） */
.en { max-width: 960px; margin: 0 auto; padding: 136px 32px 96px; }
.en-head { display: flex; flex-direction: column; gap: 12px; }
.en-title { margin: 0; font-family: var(--font-display); font-size: 48px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.en-lead { margin: 0; max-width: 38em; font-size: 16px; line-height: 1.75; color: var(--text-secondary); }

/* 目录：两个引擎的快速入口 */
.en-toc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 40px 0 0; padding: 0; list-style: none; }
.en-toc a { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--input); box-shadow: var(--shadow-button); color: var(--text-primary); text-decoration: none;
  transition: border-color .12s var(--tf-ease-standard); }
.en-toc a:hover { border-color: var(--border-hover); }
.en-toc a:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.en-toc b { display: block; font-size: 15px; font-weight: 600; }
.en-toc small { display: block; font-size: 13px; color: var(--text-secondary); }
.en-toc .tf-tag { margin-left: auto; flex: none; }

/* 每个引擎一节 */
.en-item { margin-top: 72px; padding-top: 48px; border-top: 1px solid var(--border); scroll-margin-top: 88px; }
.en-item-head { display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; }
.en-icon { width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 14px; background: var(--input); box-shadow: var(--shadow-button); color: var(--primary); }
.en-icon .tf-ico { width: 26px; height: 26px; }
.en-name-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.en-name { margin: 0; font-size: 30px; font-weight: 700; line-height: 1.25; }
.en-kind { margin: 6px 0 0; font-size: 13px; color: var(--text-tertiary); }
.en-desc { margin: 24px 0 0; max-width: 42em; font-size: 16px; line-height: 1.8; }
.en-uses { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 20px 0 0; font-size: 13px; color: var(--text-secondary); }
.en-uses a { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--input); color: var(--text-primary); text-decoration: none; }
.en-uses a:hover { border-color: var(--border-hover); }
.en-uses span.en-use-plain { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border: 1px dashed var(--border-strong); border-radius: 999px; color: var(--text-secondary); }

.en-h3 { margin: 40px 0 0; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--text-tertiary); }
.en-caps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 12px 0 0; padding: 0; list-style: none; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--input); }
.en-caps li { padding: 20px 24px; border-bottom: 1px solid var(--border); }
.en-caps li:nth-child(odd) { border-right: 1px solid var(--border); }
.en-caps li:nth-last-child(-n+2) { border-bottom: 0; }
.en-caps b { display: block; font-size: 15px; font-weight: 600; }
.en-caps span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.75; color: var(--text-secondary); }

.en-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 12px 0 0; }
.en-stat { padding: 20px 24px; border: 1px solid var(--border); border-radius: 10px; background: var(--input); }
.en-stat-value { font-family: var(--font-mono); font-size: 32px; font-weight: 600; line-height: 1.2; color: var(--text-primary); }
.en-stat-value small { margin-left: 4px; font-size: 14px; font-weight: 500; color: var(--text-secondary); }
.en-stat-label { margin-top: 6px; font-size: 13px; line-height: 1.6; color: var(--text-secondary); }
.en-note { margin: 12px 0 0; font-size: 12px; line-height: 1.7; color: var(--text-tertiary); }

.en-spec { display: grid; grid-template-columns: 120px 1fr; gap: 0; margin: 12px 0 0; border-top: 1px solid var(--border); }
.en-spec dt, .en-spec dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 14px; line-height: 1.7; }
.en-spec dt { color: var(--text-tertiary); }
.en-spec dd { color: var(--text-primary); }

@supports (corner-shape: superellipse(1.5)) {
  .en-toc a, .en-caps, .en-stat { corner-shape: var(--corner-smooth); border-radius: calc(10px * var(--corner-smooth-scale)); }
  .en-icon { corner-shape: var(--corner-smooth); border-radius: calc(14px * var(--corner-smooth-scale)); }
}

/* ---------- 移动端 ---------- */
@media (max-width: 760px) {
  .en { padding: 112px 16px 72px; }
  .en-title { font-size: 36px; }
  .en-toc, .en-caps, .en-stats { grid-template-columns: 1fr; }
  .en-caps li:nth-child(odd) { border-right: 0; }
  .en-caps li:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .en-caps li:last-child { border-bottom: 0; }
  .en-item { margin-top: 56px; padding-top: 40px; }
  .en-item-head { grid-template-columns: 48px 1fr; gap: 16px; }
  .en-icon { width: 48px; height: 48px; border-radius: 12px; }
  .en-name { font-size: 24px; }
  .en-spec { grid-template-columns: 96px 1fr; }
}
