/* ===================================
   智播助手官网 · 模块 4「使用场景」v2
   作用域:
     .platforms-section  -> 轻量 trust strip（4 平台 pill 横排）
     .scenarios-section  -> 4 张商家身份场景卡（SVG 自绘插画）
   说明:
     与 css/style.css 旧 .scenarios 完全隔离；视觉风格延续 hero-v2 / features-v2。
   依赖:
     字体 Sora / Plus Jakarta Sans / JetBrains Mono 由 index.html 全局加载。
   =================================== */

/* ============ TOKENS（共享，局部不污染全局） ============ */
.platforms-section,
.scenarios-section {
  --scnv2-ink-900: #0F172A;
  --scnv2-ink-700: #334155;
  --scnv2-ink-500: #64748B;
  --scnv2-ink-300: #CBD5E1;
  --scnv2-ink-200: #E2E8F0;
  --scnv2-ink-100: #F1F5F9;
  --scnv2-ink-50:  #F8FAFC;

  --scnv2-font-display: 'Sora', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --scnv2-font-ui:      'Plus Jakarta Sans', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --scnv2-font-mono:    'JetBrains Mono', ui-monospace, monospace;
}

/* ===================================================================
   PLATFORMS · 轻量 trust strip（独立 section · #platforms）
   桌面/平板：横排 pill；移动：换行
   =================================================================== */
.platforms-section {
  position: relative;
  padding: 56px 24px;
  /* 与 features-section 末端衔接：白底，比 scenarios 更轻 */
  background: #FFFFFF;
  font-family: var(--scnv2-font-ui);
  color: var(--scnv2-ink-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  border-top: 1px solid var(--scnv2-ink-100);
  border-bottom: 1px solid var(--scnv2-ink-100);
}

.platforms-section .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
}

.platforms-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.platforms-label-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.platforms-label-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--scnv2-font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  font-weight: 600;
  color: #0369A1;
  text-transform: uppercase;
}
.platforms-label-eyebrow .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0EA5E9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, .18);
}
.platforms-label-text {
  font-family: var(--scnv2-font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--scnv2-ink-900);
  letter-spacing: -0.005em;
}
.platforms-label-text strong {
  color: #0369A1;
  font-weight: 700;
}

.platforms-logos {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.platform-pill {
  --accent: #0EA5E9;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--scnv2-ink-50);
  border: 1px solid var(--scnv2-ink-200);
  border-radius: 999px;
  font-family: var(--scnv2-font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--scnv2-ink-700);
  text-decoration: none;
  transition: transform .25s cubic-bezier(.2,.8,.2,1),
              border-color .25s ease,
              background .25s ease,
              color .25s ease,
              box-shadow .25s ease;
}
.platform-pill:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 6%, #fff);
  color: var(--scnv2-ink-900);
  box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--accent) 50%, transparent);
}
.platform-pill svg {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
}

/* ===================================================================
   SCENARIOS · 4 张商家身份场景卡（独立 section · #scenarios）
   桌面 ≥1100：4 列 / 平板 641-1099：2 列 / 移动 ≤640：1 列
   =================================================================== */
.scenarios-section {
  position: relative;
  padding: 80px 24px;
  background: linear-gradient(180deg, #FAFCFF 0%, #F1F5F9 100%);
  font-family: var(--scnv2-font-ui);
  color: var(--scnv2-ink-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  isolation: isolate;
}

/* 装饰背景点阵（与 features-section 同款语言） */
.scenarios-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(14, 165, 233, .07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 30%, transparent 85%);
  pointer-events: none;
}

.scenarios-section .container {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  padding: 0;
}

/* ============ HEADER ============ */
.scn-v2-header {
  text-align: center;
  margin-bottom: 44px;
}

.scn-v2-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(139, 92, 246, .08);
  border: 1px solid rgba(139, 92, 246, .18);
  border-radius: 999px;
  font-family: var(--scnv2-font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  font-weight: 600;
  color: #6D28D9;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.scn-v2-eyebrow .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8B5CF6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, .18);
}

.scn-v2-title {
  font-family: var(--scnv2-font-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--scnv2-ink-900);
  margin: 0 0 14px;
}

.scn-v2-subtitle {
  font-size: 17px;
  line-height: 1.6;
  color: var(--scnv2-ink-500);
  max-width: 680px;
  margin: 0 auto;
}
.scn-v2-subtitle strong {
  color: var(--scnv2-ink-900);
  font-weight: 700;
}

/* ============ GRID ============ */
.scn-v2-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* ============ CARD ============ */
.scn-v2-card {
  --accent: #0EA5E9;
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--scnv2-ink-200);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  transition: transform .3s cubic-bezier(.2,.8,.2,1),
              box-shadow .3s ease,
              border-color .3s ease;
  text-decoration: none;
  color: inherit;
}

.scn-v2-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: 0 22px 44px -18px color-mix(in srgb, var(--accent) 45%, transparent),
              0 4px 10px rgba(15, 23, 42, .06);
}

/* ===== Visual area（顶部插画区） ===== */
.scn-v2-visual {
  position: relative;
  height: 130px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent) 16%, #fff) 0%,
    color-mix(in srgb, var(--accent) 4%,  #fff) 100%);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 16%, transparent);
  overflow: hidden;
}

/* 插画层叠装饰：右下角小光晕 */
.scn-v2-visual::after {
  content: "";
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 70%);
  pointer-events: none;
}

.scn-v2-visual svg {
  width: 220px;
  height: 110px;
  position: relative;
  z-index: 1;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.scn-v2-card:hover .scn-v2-visual svg {
  transform: scale(1.04);
}

/* SVG 通用 stroke 样式（4 张卡公用） */
.scn-v2-visual svg .stroke-accent { stroke: var(--accent); }
.scn-v2-visual svg .fill-accent   { fill: var(--accent); }
.scn-v2-visual svg .fill-accent-soft { fill: color-mix(in srgb, var(--accent) 18%, #fff); }
.scn-v2-visual svg .fill-white { fill: #fff; }
.scn-v2-visual svg .stroke-ink { stroke: #334155; }
.scn-v2-visual svg .fill-ink   { fill: #334155; }

/* ===== Body（卡片下半部分） ===== */
.scn-v2-body {
  padding: 22px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.scn-v2-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: color-mix(in srgb, var(--accent) 14%, #fff);
  color: var(--accent);
  border-radius: 6px;
  font-family: var(--scnv2-font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  align-self: flex-start;
  margin-bottom: 12px;
}
.scn-v2-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.scn-v2-pain {
  font-family: var(--scnv2-font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--scnv2-ink-900);
  letter-spacing: -0.005em;
  margin: 0 0 8px;
  line-height: 1.3;
}

.scn-v2-desc {
  font-size: 13.5px;
  color: var(--scnv2-ink-500);
  line-height: 1.6;
  margin: 0 0 16px;
  flex: 1;
}

.scn-v2-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  align-self: flex-start;
}
.scn-v2-more::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
  transition: width .25s ease;
}
.scn-v2-card:hover .scn-v2-more::after {
  width: 100%;
}
.scn-v2-more .arrow {
  display: inline-block;
  transition: transform .25s ease;
}
.scn-v2-card:hover .scn-v2-more .arrow {
  transform: translateX(4px);
}

/* ===================================================================
   响应式
   =================================================================== */

/* 平板：4 列 → 2 列 */
@media (max-width: 1099px) {
  .scn-v2-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .scn-v2-visual {
    height: 150px;
  }
  .scn-v2-visual svg {
    width: 240px;
    height: 130px;
  }
  .scn-v2-pain {
    font-size: 19px;
  }
  .scn-v2-desc {
    font-size: 14px;
  }
}

/* 平板下：trust strip 居中堆叠 */
@media (max-width: 900px) {
  .platforms-strip {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }
  .platforms-label-wrap {
    align-items: center;
  }
}

/* 移动：单列 + padding 收紧 */
@media (max-width: 640px) {
  .platforms-section {
    padding: 40px 16px;
  }
  .platforms-logos {
    gap: 10px;
    justify-content: center;
  }
  .platform-pill {
    padding: 9px 14px;
    font-size: 13px;
  }
  .platform-pill svg {
    width: 20px;
    height: 20px;
  }

  .scenarios-section {
    padding: 64px 16px;
  }
  .scn-v2-header {
    margin-bottom: 36px;
  }
  .scn-v2-title {
    font-size: 28px;
  }
  .scn-v2-subtitle {
    font-size: 15px;
  }
  .scn-v2-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .scn-v2-visual {
    height: 140px;
  }
  .scn-v2-visual svg {
    width: 220px;
    height: 120px;
  }
  .scn-v2-body {
    padding: 20px 20px 20px;
  }
  .scn-v2-pain {
    font-size: 18px;
  }
  .scn-v2-desc {
    font-size: 13.5px;
  }
}

/* 减弱动画 - 尊重用户偏好 */
@media (prefers-reduced-motion: reduce) {
  .platform-pill,
  .scn-v2-card,
  .scn-v2-visual svg,
  .scn-v2-more::after,
  .scn-v2-more .arrow {
    transition: none !important;
  }
  .platform-pill:hover,
  .scn-v2-card:hover,
  .scn-v2-card:hover .scn-v2-visual svg {
    transform: none;
  }
}
