/* ============================================================
   peacm.com 商贸企业案例专属样式 css/case-trade.css
   布局概念：左文右图+转化数据卡悬浮首屏 → 商城功能拆解图（CSS商品流）→
   "从门店到网店"对比表 → 线上渠道成果条 → 客户怎么说 → CTA
   ============================================================ */

/* ---------- 1. 首屏 ---------- */
.tr-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 50px) 0 70px;
  background:
    radial-gradient(760px 380px at 8% 10%, rgba(220, 232, 210, 0.6), transparent 62%),
    var(--cream);
}

.tr-hero-in {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.tr-eyebrow {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 999px;
  background: var(--yellow-1);
  color: var(--amber-deep);
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 18px;
}

.tr-hero h1 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.25;
  margin-bottom: 16px;
}

.tr-hero h1 em {
  font-style: normal;
  color: var(--amber);
}

.tr-hero-sub {
  color: var(--ink-2);
  font-size: 15px;
  margin-bottom: 24px;
  max-width: 520px;
}

.tr-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* 右侧主图 + 悬浮转化数据卡 */
.tr-visual {
  position: relative;
  padding: 10px;
}

.tr-visual img {
  width: 100%;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lift);
  transform: rotate(-1.2deg);
}

.tr-float {
  position: absolute;
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-soft);
  padding: 12px 18px;
  font-size: 13px;
  color: var(--ink-2);
  animation: trFloat 5s ease-in-out infinite alternate;
}

.tr-float strong {
  display: block;
  font-size: 22px;
  color: var(--green-deep);
  line-height: 1.1;
}

.tr-float strong em {
  font-style: normal;
  font-size: 13px;
  color: var(--ink-3);
}

.tr-f1 { left: -24px; top: 30px; }
.tr-f2 { right: -16px; bottom: 40px; animation-delay: 1.4s; }

@keyframes trFloat {
  from { transform: translateY(0); }
  to   { transform: translateY(-12px); }
}

/* ---------- 2. 商城功能拆解 + 商品流 ---------- */
.tr-flow {
  background: var(--cream-2);
}

.tr-flow-diagram {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.tr-step {
  background: #fff;
  border-radius: var(--r-md);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  position: relative;
  transition: all 0.3s ease;
}

.tr-step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.tr-step-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 18px;
  background: var(--green-1);
  color: var(--green-deeper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
}

.tr-step:nth-child(even) .tr-step-icon {
  background: var(--yellow-1);
  color: var(--amber-deep);
}

.tr-step h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.tr-step p {
  font-size: 13px;
  color: var(--ink-2);
}

/* 商品流示意（箭头连接的小条） */
.tr-goods-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  background: #fff;
  border-radius: var(--r-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-soft);
}

.tr-gf-node {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--cream-2);
  border: 1.5px dashed var(--green-2);
  font-size: 13px;
  color: var(--green-deeper);
  white-space: nowrap;
}

.tr-gf-arrow {
  color: var(--amber);
  font-size: 18px;
}

.tr-flow-media {
  margin-top: 26px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.tr-flow-media img {
  width: 100%;
  display: block;
}

/* 客户原声 */
.tr-quote-sec {
  background: var(--cream);
}

.tr-quote-card {
  max-width: 820px;
  margin: 0 auto 30px;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  padding: 34px 38px;
  border-left: 6px solid var(--amber);
  font-size: 17px;
  line-height: 1.9;
  color: var(--ink);
}

.tr-quote-by {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-3);
}

.tr-quote-img {
  max-width: 820px;
  margin: 0 auto;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}

.tr-quote-img img {
  width: 100%;
  display: block;
}

/* ---------- 3. 门店 vs 网店 对比表 ---------- */
.tr-compare {
  background: var(--cream);
}

.tr-table-wrap {
  overflow-x: auto;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
}

.tr-table-note {
  margin-top: 24px;
  font-size: 14px;
  color: var(--ink-2);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.tr-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: #fff;
  font-size: 14px;
}

.tr-table th,
.tr-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.tr-table thead th {
  background: var(--green-1);
  color: var(--green-deeper);
}

.tr-table thead th.tr-head-new {
  background: var(--yellow-2);
  color: var(--amber-deep);
}

.tr-table tbody tr:last-child td {
  border-bottom: none;
}

.tr-table td.tr-dim {
  color: var(--ink-3);
}

.tr-table td.tr-bright {
  color: var(--green-deeper);
  font-weight: 600;
}

/* ---------- 4. 线上渠道成果 ---------- */
.tr-channel {
  background: linear-gradient(120deg, var(--amber), #B07820);
  padding: 60px 0;
}

.tr-channel-head {
  text-align: center;
  color: #fff;
  margin-bottom: 34px;
}

.tr-channel-head h2 {
  color: #fff;
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 10px;
}

.tr-channel-head p {
  color: #FBEBCB;
  font-size: 15px;
}

.tr-channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tr-ch-card {
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px dashed rgba(255, 255, 255, 0.5);
  border-radius: var(--r-md);
  padding: 26px 24px;
  color: #fff;
  text-align: center;
}

.tr-ch-card strong {
  display: block;
  font-size: 34px;
  color: #fff;
  line-height: 1.1;
}

.tr-ch-card p {
  margin-top: 8px;
  font-size: 13px;
  color: #FBEBCB;
}

/* ---------- 5. CTA ---------- */
.tr-cta {
  background: var(--cream-2);
  padding: 76px 0;
}

.tr-cta-panel {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.tr-cta-panel h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 14px;
}

.tr-cta-panel > p {
  color: var(--ink-2);
  font-size: 15px;
  margin-bottom: 28px;
}

.tr-cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tr-cta-sub {
  font-size: 13px;
  color: var(--ink-3);
}

.tr-cta-sub a {
  color: var(--amber-deep);
}

/* ---------- 6. 响应式 ---------- */
@media (max-width: 1080px) {
  .tr-flow-diagram { grid-template-columns: repeat(2, 1fr); }
  .tr-channel-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .tr-hero-in { grid-template-columns: 1fr; gap: 40px; }
  .tr-channel-grid { grid-template-columns: 1fr; }
  .tr-f1 { left: 0; }
  .tr-f2 { right: 0; }
}

@media (max-width: 640px) {
  .tr-hero { padding: calc(var(--header-h) + 30px) 0 50px; }
  .tr-flow-diagram { grid-template-columns: 1fr; }
  .tr-hero-actions .btn { width: 100%; }
  .tr-goods-flow { flex-direction: column; }
  .tr-gf-arrow { transform: rotate(90deg); }
}
