/* ==========================================================================
   Clash中文网 · home.css
   首页专属:Hero 纯排版构图 / 状态栏装饰条 / 特性观测板 / 平台入口 /
   快速上手 / 开源背书 / 收尾间距。全部取值引用 base.css 设计令牌。
   ========================================================================== */

/* ---------- Hero:纯排版,无图形装饰,无动画 ---------- */

.hero-field { padding: 88px 0 30px; }

.hero-kicker {
  display: block;
  margin: 0;
  letter-spacing: var(--track-wide);
}

.hero-title {
  margin: 20px 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 6.4vw, 4.75rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 13em;
}

.hero-title .hero-clash {
  background: linear-gradient(115deg, var(--aurora), var(--aurora-pale));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* 标题与按钮之间保留一整行高度的纯留白 */
.hero-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(2.8rem, 6vw, 4.75rem);
}

.hero-note {
  margin: 26px 0 20px;
  max-width: 38em;
  color: var(--script-dim);
}
.hero-note strong { color: var(--script); }

/* ---------- 状态栏装饰条 ---------- */

.pulse-belt { padding: 0 0 14px; }

.pulse-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 34px;
  padding: 16px 24px;
  background: var(--glass-2);
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  border: 1px solid var(--edge);
  border-radius: var(--r-sm);
}

.pulse-cell {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.pulse-key {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--script-dim);
  white-space: nowrap;
}

.pulse-val {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--aurora);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- 特性观测板:2:1 非对称层叠,镜像交错 ---------- */

.feat-board {
  display: grid;
  grid-template-columns: 1.9fr 1fr;
  gap: 18px;
}
.feat-board > * { min-width: 0; }

.feat-side {
  display: grid;
  gap: 18px;
  align-content: stretch;
}

.feat-board--flip .feat-major { order: 2; }
.feat-board--flip .feat-side { order: 1; }

.feat-major { padding: 34px; }
.feat-major h3 {
  margin: 0 0 12px;
  font-size: 1.5rem;
}
.feat-major p {
  margin: 0;
  color: var(--script-dim);
}

.feat-side .pane h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}
.feat-side .pane p {
  margin: 0;
  color: var(--script-dim);
  font-size: 0.88rem;
}

/* ---------- 平台入口网格 ---------- */

.plat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.plat-grid > * { min-width: 0; }

.plat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px 22px;
}

.plat-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--aurora);
  background: var(--aurora-wash);
  border: 1px solid var(--edge-glow);
  border-radius: var(--r-ctl);
  flex-shrink: 0;
}

.plat-card h3 {
  margin: 0;
  font-size: 1.02rem;
}
.plat-card p {
  margin: 0;
  color: var(--script-dim);
  font-size: 0.82rem;
}
.plat-card .btn {
  margin-top: auto;
  align-self: stretch;
}

/* ---------- 快速上手三步 ---------- */

.quick-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.quick-row > * { min-width: 0; }

.quick-row--pair { grid-template-columns: repeat(2, 1fr); }

.quick-row .trail-link {
  display: flex;
  margin-top: 10px;
  font-size: 0.86rem;
}

.quick-row h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.quick-row p {
  margin: 0;
  color: var(--script-dim);
  font-size: 0.9rem;
}

/* ---------- 开源背书 ---------- */

.trust-board {
  display: grid;
  grid-template-columns: 1.9fr 1fr;
  gap: 18px;
  align-items: stretch;
}
.trust-board > * { min-width: 0; }

.trust-major { padding: 34px; }
.trust-major h3 {
  margin: 0 0 12px;
  font-size: 1.4rem;
}
.trust-major p {
  margin: 0;
  color: var(--script-dim);
}

.clone-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}
.clone-shell pre {
  flex: 1 1 260px;
  min-width: 0;
  margin: 0;
}

.fact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fact-list li {
  position: relative;
  padding-left: 22px;
  color: var(--script-dim);
  font-size: 0.9rem;
}
.fact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--aurora);
}

/* ---------- 分区尾随链接行 ---------- */

.strata-tail { margin-top: 26px; }

/* ---------- 响应式 ---------- */

@media (max-width: 900px) {
  .feat-board,
  .trust-board {
    grid-template-columns: 1fr;
  }
  .feat-board--flip .feat-major { order: 1; }
  .feat-board--flip .feat-side { order: 2; }
  .quick-row,
  .quick-row--pair { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero-field { padding: 56px 0 22px; }
  .hero-acts .btn { flex: 1 1 100%; }
  .feat-major,
  .trust-major { padding: 24px 20px; }
  .pulse-strip {
    gap: 10px 22px;
    padding: 14px 18px;
  }
  .clone-shell .clone-copy { flex: 1 1 100%; }
}