/* ============================================================
   Clash下载 · 首页专属样式
   ============================================================ */

/* ---------- Hero 右侧动画:裸放漂在背景上,不加任何框线/底色 ---------- */
.hero-visual .hx20 {
  max-width: 460px;
  margin-left: auto;
}

@media (max-width: 960px) {
  .hero-visual .hx20 {
    margin-left: 0;
    max-width: 420px;
  }
}

@media (max-width: 720px) {
  .hero-visual {
    display: none;
  }
}

/* Hero 右侧几何动画的内部元素 */
.hx20 {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 280px;
  overflow: hidden;
}
.hx20-s {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1.5px solid #155EEF33;
  border-radius: 10%;
}
.hx20-s1 { width: 22%; padding-top: 22%; animation: hx20-r 16s linear infinite; }
.hx20-s2 { width: 38%; padding-top: 38%; border-color: #0E45B52b; animation: hx20-r 22s linear infinite reverse; }
.hx20-s3 { width: 54%; padding-top: 54%; border-color: #155EEF24; animation: hx20-r 28s linear infinite; }
.hx20-s4 { width: 70%; padding-top: 70%; border-color: #0E45B518; animation: hx20-r 30s linear infinite reverse; }
.hx20-c {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: #155EEF;
  animation: hx20-b 8s ease-in-out infinite;
}
@keyframes hx20-r {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes hx20-b {
  0%, 100% { transform: scale(1); opacity: .4; }
  50% { transform: scale(1.6); opacity: .9; }
}
@media (prefers-reduced-motion: reduce) {
  .hx20 * { animation: none !important; }
}

/* ---------- 平台下载入口网格 ---------- */
.os-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.os-grid > * {
  min-width: 0;
}

.os-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding-top: 22px;
  padding-bottom: 22px;
  padding-left: 20px;
  padding-right: 20px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.os-card:hover {
  border-color: var(--blueprint);
  box-shadow: var(--lift);
}

.os-card svg {
  color: var(--blueprint);
  flex-shrink: 0;
}

.os-card h3 {
  margin-bottom: 0;
  font-size: 1.02rem;
}

.os-card p {
  color: var(--ink-soft);
  font-size: 0.86rem;
  margin-bottom: 6px;
  flex: 1;
}

.os-card .btn {
  margin-top: auto;
}

@media (max-width: 1020px) {
  .os-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .os-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .os-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- 「更多」链接行 ---------- */
.more-row {
  margin-top: 28px;
  margin-bottom: 0;
  font-weight: 600;
}

/* ---------- git clone 命令展示框 ---------- */
.clone-box {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--paper-mist);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding-top: 18px;
  padding-bottom: 18px;
  padding-left: 22px;
  padding-right: 22px;
  margin-top: 28px;
}

.clone-box code {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  padding: 0;
  font-size: 0.9rem;
  color: var(--ink);
  overflow-x: auto;
  white-space: nowrap;
}

.clone-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--blueprint);
  background: var(--paper);
  color: var(--blueprint);
  border-radius: var(--r-pill);
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 18px;
  padding-right: 18px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.clone-copy:hover {
  background: var(--blueprint);
  color: var(--paper);
}

.clone-copy.done {
  border-color: var(--tone-ok);
  background: var(--ok-wash);
  color: var(--tone-ok);
}

.clone-note {
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin-top: 12px;
  margin-bottom: 0;
}

/* ---------- 能力索引面板右侧容器 ---------- */
.idx-stage {
  min-width: 0;
}