/* ============================================================
   RetailLib 首页打磨（2026-11-14，unslop polish pass）
   —— 只由 index.html 加载；全部规则挂在 body.home-v2 下，
      其他页面零影响，回滚 = 删本文件 + 还原 index.html。
   —— 不改品牌四色（酒红 / 藏蓝 / 荧光青 / 奢金），只改用法：
      青色退出正文，只留主按钮；卡片走藏蓝，标题走奢金。
   ============================================================ */

.home-v2 .hero {
  min-height: auto;
  padding: 88px 0 72px;
  text-align: left;
}

.home-v2 .hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 64px;
  align-items: center;
}

.home-v2 .hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.home-v2 .hero-eyebrow {
  margin: 0 0 20px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: rgba(254, 212, 167, 0.66);
  font-variant-numeric: tabular-nums;
}

.home-v2 .hero-title {
  margin: 0;
  font-size: clamp(2.2rem, 3.6vw, 3.4rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: 0.02em;
}

/* 两行各自成行：中文标题按字断行会把成语拆碎 */
.home-v2 .hero-title > span {
  white-space: nowrap;
}

.home-v2 .hero-subline {
  color: rgba(254, 212, 167, 0.62);
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.home-v2 .hero-mainline {
  color: var(--brand-text);
}

.home-v2 .hero-desc {
  margin: 24px 0 0;
  max-width: 34em;
  font-size: 1.02rem;
  line-height: 1.8;
  color: rgba(254, 212, 167, 0.78);
}

.home-v2 .hero-desc strong {
  color: var(--brand-text);
  font-weight: 500;
}

/* 强调色收口：正文里的青色下划线改为奢金细下划线 */
.home-v2 .highlight-text {
  color: var(--brand-text);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(254, 212, 167, 0.38);
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

.home-v2 .hero-actions {
  margin: 32px 0 0;
  justify-content: flex-start;
  gap: 12px;
}

.home-v2 .hero-stats {
  margin: 36px 0 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  gap: 0 18px;
  justify-content: flex-start;
  flex-wrap: nowrap;
}

.home-v2 .hero-stats .stat-item {
  white-space: nowrap;
}

.home-v2 .stat-number {
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--brand-text);
  font-variant-numeric: tabular-nums;
}

.home-v2 .stat-label {
  font-size: 0.82rem;
  color: rgba(254, 212, 167, 0.62);
}

.home-v2 .stat-divider {
  height: 22px;
  background: rgba(254, 212, 167, 0.16);
}

.home-v2 .hero-footnote {
  margin: 16px 0 0;
  font-size: 0.82rem;
  color: rgba(254, 212, 167, 0.5);
}

/* ---------- 产品预览卡：L·M·S 研判卡 ---------- */
.home-v2 .hero-preview {
  position: relative;
}

.home-v2 .preview-card {
  background: var(--brand-bg-card);
  border: 1px solid rgba(254, 212, 167, 0.16);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.home-v2 .preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.home-v2 .preview-code {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--brand-text);
  letter-spacing: 0.01em;
}

.home-v2 .preview-meta {
  margin-top: 4px;
  font-size: 0.76rem;
  color: rgba(254, 212, 167, 0.52);
  font-variant-numeric: tabular-nums;
}

/* 签名细节：方形朱红小印，只用于关键状态 */
.home-v2 .seal {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid #9A0F1E;
  border-radius: 4px;
  background: rgba(154, 15, 30, 0.22);
  color: #FED4A7;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  line-height: 1;
}

.home-v2 .preview-cycles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.home-v2 .preview-cycles li {
  display: grid;
  grid-template-columns: 28px 64px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(254, 212, 167, 0.1);
}

.home-v2 .preview-cycles li:first-child {
  border-top: 0;
}

.home-v2 .cyc-key {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(254, 212, 167, 0.52);
  font-variant-numeric: tabular-nums;
}

.home-v2 .cyc-name {
  font-size: 0.86rem;
  color: rgba(254, 212, 167, 0.7);
}

.home-v2 .cyc-val {
  font-size: 0.9rem;
  color: var(--brand-text);
  text-align: right;
}

.home-v2 .preview-plan {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

.home-v2 .plan-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 0.86rem;
  color: rgba(254, 212, 167, 0.62);
}

.home-v2 .plan-row b {
  font-weight: 500;
  color: var(--brand-text);
  font-variant-numeric: tabular-nums;
}

.home-v2 .preview-note {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(254, 212, 167, 0.12);
  font-size: 0.84rem;
  line-height: 1.7;
  color: rgba(254, 212, 167, 0.72);
}

/* 强调色收口：区块标题里的青色 → 奢金 + 细下划线 */
.home-v2 .section-title strong,
.home-v2 .cta-title strong {
  color: var(--brand-text);
  text-decoration: underline;
  text-decoration-color: rgba(254, 212, 167, 0.32);
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

/* ---------- 响应式：<980px 单列，预览降到操作按钮之后 ---------- */
@media (max-width: 980px) {
  .home-v2 .hero {
    padding: 56px 0 48px;
  }

  .home-v2 .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .home-v2 .hero-preview {
    max-width: 460px;
  }

  .home-v2 .hero-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .home-v2 .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px 24px;
    padding: 0;
    border-radius: 0;
    text-align: left;
  }

  .home-v2 .stat-divider {
    display: none;
  }

  .home-v2 .preview-card {
    padding: 20px;
  }
}
