/* ============================================================
 * QVMConsole 官网 - 内容区块样式
 * 核心特性 / 功能概览 Bento / 数据统计 / 快速开始
 * ============================================================ */

/* ================= 核心特性（交替大版块） ================= */
.feature-block {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
  padding: 58px 0;
}
.feature-block + .feature-block { border-top: 1px dashed var(--line-strong); }
.feature-block-left .feature-shot { order: 2; }
.feature-block-left .feature-content { order: 1; }

.feature-shot { position: relative; }
/* 仅在缺图占位时固定比例撑开高度；有图时容器随图片原始比例自适应 */
.feature-shot .shot-frame.is-empty { aspect-ratio: 4 / 3; }
.feature-shot .shot-glow {
  position: absolute;
  inset: -14% -10%;
  z-index: -1;
  filter: blur(52px);
  opacity: .55;
  background:
    radial-gradient(50% 55% at 30% 35%, rgba(45, 212, 191, .4), transparent 70%),
    radial-gradient(50% 55% at 70% 70%, rgba(139, 92, 246, .38), transparent 70%);
  animation: glowBreath 7s ease-in-out infinite;
}
/* 版块序号水印 */
.feature-idx {
  position: absolute;
  top: -44px;
  right: -8px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 92px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(180deg, rgba(12, 20, 37, .10), rgba(12, 20, 37, .02));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  pointer-events: none;
  user-select: none;
}

.feature-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--qvm-blue);
  text-transform: uppercase;
}
.feature-kicker::before {
  content: "";
  width: 22px; height: 2px;
  border-radius: 2px;
  background: var(--qvm-grad);
}
.feature-heading {
  margin-top: 12px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.3;
}
.feature-descriptions { position: relative; margin-top: 16px; min-height: 108px; }
.feature-desc {
  position: absolute;
  inset: 0 0 auto;
  font-size: 15.5px;
  color: var(--ink-2);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .45s ease, transform .45s var(--ease-out);
  pointer-events: none;
}
.feature-desc.active { position: relative; opacity: 1; transform: none; pointer-events: auto; }

/* 特性选项卡（滑动指示丸） */
.feature-tabs {
  position: relative;
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.feature-tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .6);
  transition: color .35s ease, border-color .35s ease, background .35s ease, transform .35s var(--ease-spring), box-shadow .35s ease;
}
.feature-tab i { font-size: 14px; transition: transform .35s var(--ease-spring); }
.feature-tab:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.feature-tab:hover i { transform: scale(1.18) rotate(-6deg); }
.feature-tab.active {
  color: #fff;
  border-color: transparent;
  background: var(--qvm-grad);
  box-shadow: 0 8px 22px -6px rgba(56, 189, 248, .55);
}

/* ================= 数据统计带 ================= */
#stats { padding: 70px 0; }
.stats-band {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 46px 40px;
  border-radius: var(--r-xl);
  background: var(--card);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
/* 顶部渐变光线 */
.stats-band::before {
  content: "";
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 2px;
  background: var(--qvm-grad);
  border-radius: 2px;
  opacity: .9;
}
.stat-cell { position: relative; text-align: center; }
.stat-cell + .stat-cell::before {
  content: "";
  position: absolute;
  left: -12px; top: 12%;
  height: 76%;
  width: 1px;
  background: var(--line);
}
.stat-icon {
  width: 46px; height: 46px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 19px;
  color: #fff;
  background: var(--qvm-grad);
  box-shadow: 0 8px 20px -6px rgba(56, 189, 248, .5);
}
.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -.02em;
  background: var(--qvm-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-num .suffix { font-size: .55em; margin-left: 2px; }
.stat-label { margin-top: 6px; font-size: 14px; color: var(--ink-3); }

/* ================= 功能概览 Bento ================= */
.overview-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 42px;
}
.filter-btn {
  padding: 9px 19px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .6);
  transition: all .35s var(--ease-out);
}
.filter-btn:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.filter-btn.active {
  color: #fff;
  border-color: transparent;
  background: var(--qvm-grad);
  box-shadow: 0 8px 22px -6px rgba(56, 189, 248, .5);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.bento-card {
  position: relative;
  padding: 26px 24px;
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .45s var(--ease-out), box-shadow .45s ease, border-color .45s ease, opacity .4s ease;
}
/* 鼠标追光 */
.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(56, 189, 248, .13), transparent 65%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.bento-card:hover::before { opacity: 1; }
.bento-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(56, 189, 248, .35); }
.bento-card.hide { display: none; }
.bento-icon {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 19px;
  color: #fff;
  background: var(--bento-grad, var(--qvm-grad));
  box-shadow: 0 8px 18px -6px rgba(56, 189, 248, .45);
  transition: transform .45s var(--ease-spring);
}
.bento-card:hover .bento-icon { transform: scale(1.1) rotate(-8deg); }
.bento-title { margin-top: 16px; font-size: 16.5px; font-weight: 700; }
.bento-desc { margin-top: 8px; font-size: 13.5px; line-height: 1.65; color: var(--ink-3); }
.bento-cat {
  position: absolute;
  top: 18px; right: 18px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--ink-4);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  background: rgba(255, 255, 255, .5);
}

/* ================= 快速开始 ================= */
#quickstart .qs-wrap {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.qs-steps { margin-top: 30px; display: flex; flex-direction: column; gap: 0; }
.qs-step { position: relative; display: flex; gap: 18px; padding-bottom: 30px; }
.qs-step:last-child { padding-bottom: 0; }
/* 连接虚线 */
.qs-step::before {
  content: "";
  position: absolute;
  left: 19px; top: 42px; bottom: 2px;
  width: 2px;
  background: repeating-linear-gradient(180deg, var(--line-strong) 0 5px, transparent 5px 11px);
}
.qs-step:last-child::before { display: none; }
.qs-step-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--qvm-grad);
  box-shadow: 0 6px 16px -4px rgba(56, 189, 248, .5);
}
.qs-step h4 { font-size: 16.5px; font-weight: 700; padding-top: 7px; }
.qs-step p { margin-top: 5px; font-size: 14px; color: var(--ink-3); }

/* 终端卡片 */
.terminal {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #0d1526;
  box-shadow: 0 24px 70px -18px rgba(12, 20, 37, .45), 0 0 0 1px rgba(56, 189, 248, .15);
  transform-style: preserve-3d;
  will-change: transform;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  background: rgba(255, 255, 255, .05);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.terminal-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.terminal-bar .dot-r { background: #ff5f57; }
.terminal-bar .dot-y { background: #febc2e; }
.terminal-bar .dot-g { background: #28c840; }
.terminal-bar .t-title {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, .45);
}
.terminal-body {
  position: relative;
  padding: 24px 22px 26px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 2.05;
  color: #c9d6ee;
  min-height: 178px;
}
.terminal-body .t-line { display: block; white-space: pre-wrap; word-break: break-all; }
.terminal-body .t-prompt { color: var(--qvm-teal); font-weight: 700; }
.terminal-body .t-cmd { color: #eaf1ff; }
.terminal-body .t-comment { color: rgba(201, 214, 238, .45); }
.terminal-body .t-ok { color: #34d399; }
.terminal-caret {
  display: inline-block;
  width: 8px; height: 17px;
  margin-left: 3px;
  vertical-align: -3px;
  background: var(--qvm-teal);
  animation: caretBlink 1s steps(1) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }
.copy-btn {
  position: absolute;
  right: 14px; top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, .75);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  transition: all .3s ease;
}
.copy-btn:hover { color: #fff; background: rgba(56, 189, 248, .22); border-color: rgba(56, 189, 248, .45); }
.copy-btn.copied { color: #34d399; border-color: rgba(52, 211, 153, .5); background: rgba(52, 211, 153, .14); }

/* ================= 响应式 ================= */
@media (max-width: 1080px) {
  .bento-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .feature-block { grid-template-columns: 1fr; gap: 34px; padding: 46px 0; }
  .feature-block-left .feature-shot { order: 0; }
  .feature-idx { font-size: 64px; top: -30px; }
  #quickstart .qs-wrap { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: repeat(2, 1fr); gap: 34px 16px; padding: 38px 26px; }
  .stat-cell:nth-child(3)::before { display: none; }
}
@media (max-width: 720px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .bento-grid { grid-template-columns: 1fr; }
  .feature-descriptions { min-height: 150px; }
}
