/**
 * 论坛首页 Capabilities：腾讯云式动图分格
 * body.tx-cloud / .page-home-product
 */
body.tx-cloud .product-features.tx-caps {
  padding: 96px 0 72px;
  background: #f3f5f9;
  position: relative;
  overflow: hidden;
}
body.tx-cloud .product-features.tx-caps::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 0% 0%, rgba(0, 82, 217, 0.06), transparent 55%),
    radial-gradient(ellipse 40% 35% at 100% 20%, rgba(0, 163, 255, 0.05), transparent 50%);
  pointer-events: none;
}
body.tx-cloud .product-features.tx-caps > .container {
  position: relative;
  z-index: 1;
}

/* —— 区头 —— */
body.tx-cloud .tx-caps-head {
  max-width: 720px;
  margin: 0 0 40px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
body.tx-cloud .tx-caps-head .product-eyebrow {
  color: #0052d9;
  letter-spacing: 0.14em;
  font-weight: 700;
  margin-bottom: 10px;
}
body.tx-cloud .tx-caps-head h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1d2129;
  line-height: 1.25;
}
body.tx-cloud .tx-caps-head > p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #86909c;
  max-width: 560px;
}

/* —— 四大能力 Bento —— */
body.tx-cloud .tx-caps-bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 56px;
}
body.tx-cloud .tx-caps-tile {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 320px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}
body.tx-cloud .tx-caps-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 82, 217, 0.12);
}
body.tx-cloud .tx-caps-tile-visual {
  position: relative;
  height: 168px;
  background:
    linear-gradient(160deg, #e8f3ff 0%, #f0f7ff 45%, #f7faff 100%);
  overflow: hidden;
}
body.tx-cloud .tx-caps-tile-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(255, 255, 255, 0.85));
  pointer-events: none;
}
body.tx-cloud .tx-caps-tile-copy {
  padding: 8px 24px 24px;
}
body.tx-cloud .tx-caps-tile-num {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #86909c;
  margin-bottom: 8px;
}
body.tx-cloud .tx-caps-tile-copy h3 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  color: #1d2129;
  letter-spacing: -0.02em;
}
body.tx-cloud .tx-caps-tile-sub {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: #0052d9;
}
body.tx-cloud .tx-caps-tile-body {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #4e5969;
}

/* 动画面板通用 */
body.tx-cloud .tx-demo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.tx-cloud .tx-demo-card {
  width: min(86%, 280px);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 82, 217, 0.1);
  box-shadow: 0 12px 28px rgba(0, 82, 217, 0.1);
  padding: 14px 16px;
  backdrop-filter: blur(8px);
}

/* 01 越狱：进度环 + 状态点 */
body.tx-cloud .tx-demo-jail .tx-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background:
    conic-gradient(from -90deg, #0052d9 0%, #00a3ff 62%, rgba(0, 82, 217, 0.12) 62%);
  display: grid;
  place-items: center;
  animation: tx-ring-spin 3.2s linear infinite;
  flex-shrink: 0;
}
body.tx-cloud .tx-demo-jail .tx-ring > span {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #0052d9;
}
body.tx-cloud .tx-demo-jail .tx-demo-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
body.tx-cloud .tx-demo-jail .tx-steps {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
body.tx-cloud .tx-demo-jail .tx-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #4e5969;
}
body.tx-cloud .tx-demo-jail .tx-step i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c9cdd4;
  flex-shrink: 0;
}
body.tx-cloud .tx-demo-jail .tx-step.is-on i {
  background: #0052d9;
  box-shadow: 0 0 0 3px rgba(0, 82, 217, 0.18);
  animation: tx-dot-pulse 1.4s ease-out infinite;
}
body.tx-cloud .tx-demo-jail .tx-step.is-on { color: #1d2129; font-weight: 600; }

/* 02 刷机：进度条组 */
body.tx-cloud .tx-demo-flash .tx-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
body.tx-cloud .tx-demo-flash .tx-bar-row {
  display: grid;
  grid-template-columns: 52px 1fr 36px;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: #4e5969;
}
body.tx-cloud .tx-demo-flash .tx-bar-track {
  height: 8px;
  border-radius: 999px;
  background: #e5e6eb;
  overflow: hidden;
}
body.tx-cloud .tx-demo-flash .tx-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0052d9, #00a3ff);
  width: 20%;
  animation: tx-bar-fill 2.8s ease-in-out infinite;
}
body.tx-cloud .tx-demo-flash .tx-bar-row:nth-child(2) .tx-bar-fill { animation-delay: 0.35s; }
body.tx-cloud .tx-demo-flash .tx-bar-row:nth-child(3) .tx-bar-fill { animation-delay: 0.7s; }

/* 03 签名：节点连线 */
body.tx-cloud .tx-demo-sign .tx-nodes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
body.tx-cloud .tx-demo-sign .tx-node {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f2f3f5;
  border: 1px solid #e5e6eb;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #4e5969;
  position: relative;
  z-index: 1;
}
body.tx-cloud .tx-demo-sign .tx-node.is-active {
  background: linear-gradient(145deg, #0052d9, #00a3ff);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 82, 217, 0.28);
  animation: tx-node-pop 2.4s ease-in-out infinite;
}
body.tx-cloud .tx-demo-sign .tx-wire {
  flex: 1;
  height: 2px;
  background: repeating-linear-gradient(90deg, #c9cdd4 0 6px, transparent 6px 10px);
  position: relative;
  overflow: hidden;
}
body.tx-cloud .tx-demo-sign .tx-wire > em {
  position: absolute;
  top: -3px;
  left: -20%;
  width: 18px;
  height: 8px;
  border-radius: 999px;
  background: #0052d9;
  animation: tx-wire-run 2s linear infinite;
}
body.tx-cloud .tx-demo-sign .tx-sign-meta {
  margin-top: 12px;
  font-size: 11px;
  color: #86909c;
  display: flex;
  justify-content: space-between;
}
body.tx-cloud .tx-demo-sign .tx-sign-meta strong { color: #00b42a; }

/* 04 工具箱：宫格浮动 */
body.tx-cloud .tx-demo-kit .tx-kit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
body.tx-cloud .tx-demo-kit .tx-kit-cell {
  aspect-ratio: 1;
  border-radius: 10px;
  background: #f2f3f5;
  border: 1px solid #e5e6eb;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  color: #4e5969;
  animation: tx-kit-float 3s ease-in-out infinite;
}
body.tx-cloud .tx-demo-kit .tx-kit-cell:nth-child(odd) { animation-delay: 0.4s; }
body.tx-cloud .tx-demo-kit .tx-kit-cell.is-hi {
  background: linear-gradient(145deg, rgba(0, 82, 217, 0.1), rgba(0, 163, 255, 0.12));
  border-color: rgba(0, 82, 217, 0.22);
  color: #0052d9;
}

/* 00 验机：报告卡片 + 扫描线 */
body.tx-cloud .tx-caps-tile.is-featured {
  grid-column: 1 / -1;
  grid-template-columns: minmax(280px, 1.05fr) minmax(0, 1.2fr);
  grid-template-rows: auto;
  min-height: 280px;
}
body.tx-cloud .tx-caps-tile.is-featured .tx-caps-tile-visual {
  height: 100%;
  min-height: 240px;
}
body.tx-cloud .tx-caps-tile.is-featured .tx-caps-tile-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 32px 28px 8px;
}
body.tx-cloud .tx-demo-verify .tx-demo-card {
  position: relative;
  overflow: hidden;
  width: min(90%, 320px);
}
body.tx-cloud .tx-verify-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
body.tx-cloud .tx-verify-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 82, 217, 0.1);
  color: #0052d9;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
body.tx-cloud .tx-verify-ok {
  font-size: 12px;
  font-weight: 700;
  color: #00b42a;
}
body.tx-cloud .tx-verify-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
body.tx-cloud .tx-verify-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: #86909c;
  padding: 6px 8px;
  border-radius: 8px;
  background: #f7f8fa;
}
body.tx-cloud .tx-verify-row b {
  color: #1d2129;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
body.tx-cloud .tx-verify-row.is-scan {
  background: rgba(0, 180, 42, 0.08);
}
body.tx-cloud .tx-verify-row.is-scan b { color: #00b42a; }
body.tx-cloud .tx-verify-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 82, 217, 0.75), transparent);
  box-shadow: 0 0 12px rgba(0, 82, 217, 0.45);
  animation: tx-verify-scan 2.4s ease-in-out infinite;
  pointer-events: none;
}

/* —— 全部功能 —— */
body.tx-cloud .tx-caps-all {
  margin-top: 8px;
  padding: 36px 32px 28px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}
body.tx-cloud .tx-caps-all-head {
  max-width: 640px;
  margin: 0 0 28px;
}
body.tx-cloud .tx-caps-all-head .product-eyebrow {
  color: #0052d9;
  margin-bottom: 8px;
}
body.tx-cloud .tx-caps-all-head h3 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  color: #1d2129;
}
body.tx-cloud .tx-caps-all-head p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #86909c;
}
body.tx-cloud .tx-caps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
body.tx-cloud .tx-caps-card {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 16px;
  border-radius: 12px;
  background: #f7f8fa;
  border: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
}
body.tx-cloud .tx-caps-card:hover {
  background: #fff;
  border-color: rgba(0, 82, 217, 0.18);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 82, 217, 0.08);
}
body.tx-cloud .tx-caps-ico {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #e8f3ff, #f0f7ff);
  border: 1px solid rgba(0, 82, 217, 0.12);
  color: #0052d9;
}
body.tx-cloud .tx-caps-ico svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.tx-cloud .tx-caps-card:hover .tx-caps-ico {
  background: linear-gradient(145deg, #0052d9, #00a3ff);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 14px rgba(0, 82, 217, 0.28);
}
body.tx-cloud .tx-caps-card h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: #1d2129;
}
body.tx-cloud .tx-caps-card .tx-caps-sub {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: #0052d9;
}
body.tx-cloud .tx-caps-card .tx-caps-body {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: #86909c;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.tx-cloud .tx-caps-card:hover .tx-caps-body {
  -webkit-line-clamp: 4;
  color: #4e5969;
}

@keyframes tx-ring-spin {
  0% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(12deg); }
  100% { filter: hue-rotate(0deg); }
}
@keyframes tx-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 82, 217, 0.35); }
  50% { box-shadow: 0 0 0 5px rgba(0, 82, 217, 0); }
}
@keyframes tx-bar-fill {
  0% { width: 18%; }
  45% { width: 88%; }
  70% { width: 92%; }
  100% { width: 18%; }
}
@keyframes tx-wire-run {
  0% { left: -25%; }
  100% { left: 110%; }
}
@keyframes tx-node-pop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
@keyframes tx-kit-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes tx-verify-scan {
  0% { top: 18%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 86%; opacity: 0; }
}

@media (max-width: 980px) {
  body.tx-cloud .tx-caps-bento { grid-template-columns: 1fr; }
  body.tx-cloud .tx-caps-tile.is-featured {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
  body.tx-cloud .tx-caps-tile.is-featured .tx-caps-tile-visual {
    height: 168px;
    min-height: 0;
  }
  body.tx-cloud .tx-caps-tile.is-featured .tx-caps-tile-copy {
    padding: 8px 24px 24px;
  }
  body.tx-cloud .tx-caps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.tx-cloud .tx-caps-all { padding: 28px 20px 20px; }
}
@media (max-width: 640px) {
  body.tx-cloud .product-features.tx-caps { padding: 64px 0 48px; }
  body.tx-cloud .tx-caps-grid { grid-template-columns: 1fr; }
  body.tx-cloud .tx-caps-tile { min-height: 0; }
  body.tx-cloud .tx-caps-tile-visual { height: 150px; }
}
