/**
 * JXKit 行业垂直风控预设系统样式表 (industry.css)
 * 纯客户端 5 大黄金场景预设控制器、法规动态警示条、S级红线徽章
 */

/* 1. 行业风控预设外层卡片 */
.industry-preset-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 0.85rem 1.1rem;
  margin-bottom: 0.85rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.industry-preset-card:hover {
  border-color: rgba(243, 128, 32, 0.28);
}

/* 2. 预设选择器头部与胶囊选项 */
.industry-preset-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.industry-preset-title {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.industry-preset-title svg {
  color: var(--accent-cf);
  flex-shrink: 0;
}

.industry-pills {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.industry-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  font-family: inherit;
}

.industry-pill:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: rgba(243, 128, 32, 0.35);
}

.industry-pill.active {
  background: rgba(243, 128, 32, 0.12);
  border-color: var(--accent-cf);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 0 2px rgba(243, 128, 32, 0.18);
}

.pill-icon {
  font-size: 0.95rem;
  line-height: 1;
}

/* 3. 行业法规动态提示条 */
.industry-notice-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.6rem;
  padding: 0.45rem 0.65rem;
  background: rgba(243, 128, 32, 0.04);
  border-left: 3px solid var(--accent-cf);
  border-radius: 4px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.notice-main {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.4rem;
  flex: 1;
  min-width: 240px;
}

.notice-icon {
  font-size: 0.85rem;
  line-height: 1.3;
  flex-shrink: 0;
}

.notice-text {
  line-height: 1.45;
  color: var(--text-secondary);
}

.load-sample-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(243, 128, 32, 0.1);
  border: 1px solid rgba(243, 128, 32, 0.3);
  border-radius: 6px;
  color: var(--accent-cf);
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.load-sample-link:hover {
  background: var(--accent-cf);
  color: #ffffff;
}

/* 4. S级行业专属红线徽章与高亮增强 */
.v-industry-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(243, 128, 32, 0.12);
  color: var(--accent-cf);
  border: 1px solid rgba(243, 128, 32, 0.25);
  margin-left: 0.4rem;
  vertical-align: middle;
}

.pop-cat-badge.badge-industry-active {
  background: rgba(243, 128, 32, 0.16);
  color: var(--accent-cf);
  border: 1px solid rgba(243, 128, 32, 0.35);
  font-weight: 600;
}

.violation-mark.focus-industry {
  border-bottom: 2px dashed #f97316;
  box-shadow: 0 0 6px rgba(249, 115, 22, 0.35);
}

/* 移动端自适应微调 */
@media (max-width: 768px) {
  .industry-preset-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .industry-pills {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .industry-pill {
    flex-shrink: 0;
  }
  .industry-notice-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .load-sample-link {
    align-self: flex-start;
  }
}
