/* ===================================
   智播助手官网 · 模块 3「核心功能」v2
   作用域: .features-section
   说明: 6 卡网格（桌面 6 列 / 平板 2 列 / 移动 1 列 · 紧凑布局）
        与 css/style.css 旧 .features 完全隔离
   依赖: 字体 Sora / Plus Jakarta Sans 由 index.html 全局加载
   =================================== */

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

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

/* ============ SECTION ============ */
.features-section {
  position: relative;
  padding: 80px 24px;
  background: linear-gradient(180deg, #FAFCFF 0%, #F1F5F9 100%);
  font-family: var(--fv2-font-ui);
  color: var(--fv2-ink-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  isolation: isolate;
}

/* 装饰背景点阵（mask 限制范围，呼应 hero v2 的视觉语言） */
.features-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(14, 165, 233, .08) 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;
}

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

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

.features-v2-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(14, 165, 233, .08);
  border: 1px solid rgba(14, 165, 233, .18);
  border-radius: 999px;
  font-family: var(--fv2-font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  font-weight: 600;
  color: #0369A1;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.features-v2-eyebrow .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0EA5E9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, .18);
}

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

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

/* ============ GRID（桌面 6 列 · 紧凑） ============ */
.features-v2-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

/* ============ CARD（紧凑） ============ */
.features-v2-card {
  --accent: #0EA5E9;
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--fv2-ink-200);
  border-radius: 16px;
  padding: 16px 14px 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1),
              box-shadow .25s ease,
              border-color .25s ease;
  overflow: hidden;
}

/* 卡片右上角微弱主色渐隐光晕（默认隐形，hover 时显形） */
.features-v2-card::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 70%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}

.features-v2-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 38%, transparent);
  box-shadow: 0 18px 36px -16px color-mix(in srgb, var(--accent) 38%, transparent),
              0 4px 10px rgba(15, 23, 42, .06);
}
.features-v2-card:hover::before {
  opacity: 1;
}

/* 图标块（紧凑） */
.features-v2-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  color: var(--accent);
  margin-bottom: 12px;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.features-v2-icon::after {
  /* 图标块内层细高光，提升质感 */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 60%);
  pointer-events: none;
}
.features-v2-card:hover .features-v2-icon {
  transform: scale(1.05);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 14%, transparent),
              0 8px 16px -6px color-mix(in srgb, var(--accent) 45%, transparent);
}
.features-v2-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  position: relative;
  z-index: 1;
}

/* 功能名（紧凑） */
.features-v2-name {
  font-family: var(--fv2-font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--fv2-ink-900);
  letter-spacing: -0.005em;
  margin: 0 0 4px;
}

/* 一句话价值（紧凑） */
.features-v2-value {
  font-size: 12px;
  color: var(--fv2-ink-500);
  line-height: 1.55;
  margin: 0 0 12px;
}

/* checklist（紧凑） */
.features-v2-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
}
.features-v2-checklist li {
  position: relative;
  padding-left: 20px;
  font-size: 12px;
  color: var(--fv2-ink-700);
  line-height: 1.5;
}
.features-v2-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 14px;
  height: 14px;
  background: color-mix(in srgb, var(--accent) 14%, #fff);
  border-radius: 50%;
}
.features-v2-checklist li::after {
  /* ✓ 钩 */
  content: "";
  position: absolute;
  left: 3.5px;
  top: 6px;
  width: 6px;
  height: 3px;
  border-left: 1.6px solid var(--accent);
  border-bottom: 1.6px solid var(--accent);
  transform: rotate(-45deg);
}

/* 了解更多链接（紧凑） */
.features-v2-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  align-self: flex-start;
  letter-spacing: .005em;
}
.features-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;
}
.features-v2-card:hover .features-v2-more::after,
.features-v2-more:hover::after,
.features-v2-more:focus-visible::after {
  width: 100%;
}
.features-v2-more .arrow {
  display: inline-block;
  transition: transform .25s ease;
}
.features-v2-card:hover .features-v2-more .arrow,
.features-v2-more:hover .arrow {
  transform: translateX(4px);
}

/* ============ 响应式 ============ */
/* 平板：2 列 + 还原宽松卡片样式（覆盖默认紧凑值） */
@media (max-width: 1099px) {
  .features-v2-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .features-v2-card {
    border-radius: 20px;
    padding: 28px 26px 24px;
  }
  .features-v2-card::before {
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
  }
  .features-v2-card:hover {
    box-shadow: 0 22px 44px -18px color-mix(in srgb, var(--accent) 38%, transparent),
                0 4px 10px rgba(15, 23, 42, .06);
  }
  .features-v2-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    margin-bottom: 20px;
  }
  .features-v2-icon::after {
    border-radius: 14px;
  }
  .features-v2-card:hover .features-v2-icon {
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 14%, transparent),
                0 10px 20px -8px color-mix(in srgb, var(--accent) 45%, transparent);
  }
  .features-v2-icon svg {
    width: 28px;
    height: 28px;
  }
  .features-v2-name {
    font-size: 18px;
    margin-bottom: 6px;
  }
  .features-v2-value {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 18px;
  }
  .features-v2-checklist {
    gap: 9px;
    margin-bottom: 22px;
  }
  .features-v2-checklist li {
    padding-left: 24px;
    font-size: 13.5px;
    line-height: 1.55;
  }
  .features-v2-checklist li::before {
    top: 3px;
    width: 16px;
    height: 16px;
  }
  .features-v2-checklist li::after {
    left: 4px;
    top: 7px;
    width: 7px;
    height: 4px;
    border-left-width: 1.8px;
    border-bottom-width: 1.8px;
  }
  .features-v2-more {
    gap: 6px;
    font-size: 13.5px;
    padding-bottom: 3px;
  }
}

/* 移动：1 列（继承平板宽松值，再做小屏微调） */
@media (max-width: 640px) {
  .features-section {
    padding: 64px 16px;
  }
  .features-v2-header {
    margin-bottom: 36px;
  }
  .features-v2-title {
    font-size: 28px;
  }
  .features-v2-subtitle {
    font-size: 15px;
  }
  .features-v2-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .features-v2-card {
    padding: 24px 22px 22px;
    border-radius: 18px;
  }
  .features-v2-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
  }
  .features-v2-icon svg {
    width: 26px;
    height: 26px;
  }
}

/* 减弱动画 - 尊重用户系统偏好 */
@media (prefers-reduced-motion: reduce) {
  .features-v2-card,
  .features-v2-icon,
  .features-v2-more::after,
  .features-v2-more .arrow,
  .features-v2-card::before {
    transition: none !important;
  }
  .features-v2-card:hover {
    transform: none;
  }
  .features-v2-card:hover .features-v2-icon {
    transform: none;
  }
}
