/* 路径：YDJT-SKC-assets/YDJT-SKC-css/YDJT-SKC-style.css | 商控查全站样式 */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
  color: #222;
  background: #f5f6f8;
}
a { color: #1668dc; text-decoration: none; }
a:hover { text-decoration: underline; }

/* 后台布局 */
.skc-layout { display: flex; min-height: 100vh; }
.skc-side {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 220px; background: #1f2733; color: #cfd8e3;
  display: flex; flex-direction: column;
  overflow-y: auto; z-index: 100;
  transition: transform .25s ease;
}
.skc-logo {
  display: flex; align-items: center; gap: 8px;
  padding: 18px 16px; border-bottom: 1px solid #2c3644;
}
.skc-logo img { height: 28px; width: 28px; object-fit: contain; }
.skc-logo span { font-size: 16px; font-weight: 600; color: #fff; }

.skc-side nav { padding: 10px 0; }
.skc-side nav a {
  display: block; padding: 10px 20px; color: #cfd8e3; font-size: 14px;
}
.skc-side nav a:hover {
  background: #2a3444; color: #fff; text-decoration: none;
}
.skc-side nav a.active {
  background: #1668dc; color: #fff;
  border-left: 3px solid #fff; font-weight: 600;
  padding-left: 17px;
}
.skc-side nav a.active:hover { background: #1668dc; color: #fff; }

.skc-main {
  flex: 1; display: flex; flex-direction: column; min-width: 0;
  margin-left: 220px;
  transition: margin-left .25s ease;
}
.skc-topbar {
  position: relative;
  height: 56px; background: #fff; border-bottom: 1px solid #e5e8ec;
  display: flex; align-items: center;
  padding: 0 16px;
}
.skc-topbar-toggle {
  width: 34px; height: 34px; flex-shrink: 0;
  border: none; background: transparent; cursor: pointer;
  border-radius: 6px; color: #555; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.skc-topbar-toggle:hover { background: #f0f2f5; color: #1668dc; }
.skc-topbar-title {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-size: 16px; font-weight: 600; color: #1f2733;
  white-space: nowrap; pointer-events: none;
}
.skc-topbar-user {
  margin-left: auto; display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: #666;
}
.skc-topbar-name { display: inline-flex; align-items: center; gap: 5px; }
.skc-topbar-name i { color: #1668dc; }
.skc-topbar-logout {
  display: inline-flex; align-items: center; gap: 5px;
  height: 30px; padding: 0 12px; border-radius: 15px;
  border: 1px solid #d5dae1; color: #555; font-size: 13px;
  text-decoration: none; transition: all .2s;
}
.skc-topbar-logout:hover {
  border-color: #1668dc; color: #1668dc; text-decoration: none;
  background: #f0f6ff;
}
.skc-content { padding: 20px; flex: 1; }
.skc-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; border-top: 1px solid #e5e8ec;
  background: #fff; color: #888; font-size: 12px;
}

/* 侧边栏收起状态 */
.skc-layout.skc-side-collapsed .skc-side { transform: translateX(-100%); }
.skc-layout.skc-side-collapsed .skc-main { margin-left: 0; }

/* 表单 / 按钮 / 表格 */
.skc-input {
  height: 34px; padding: 0 10px; border: 1px solid #d5dae1;
  border-radius: 4px; outline: none; font-size: 14px; width: 100%;
  background: #fff; transition: border-color .2s;
  vertical-align: middle;
}
textarea.skc-input { height: auto; padding: 8px 10px; resize: vertical; }
select.skc-input { padding: 0 6px; }
.skc-input:focus { border-color: #1668dc; }

.skc-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 34px; padding: 0 16px; border-radius: 4px; border: 1px solid #d5dae1;
  background: #fff; color: #333; cursor: pointer; font-size: 14px;
  text-decoration: none; white-space: nowrap;
}
.skc-btn:hover { border-color: #1668dc; color: #1668dc; text-decoration: none; }
.skc-btn-primary { background: #1668dc; color: #fff; border-color: #1668dc; }
.skc-btn-primary:hover { background: #0f56bf; color: #fff; }
.skc-btn-block { width: 100%; }
.skc-btn-danger {
  background: #fff1f0; color: #cf1322; border-color: #ffa39e;
}
.skc-btn-danger:hover {
  background: #cf1322; color: #fff; border-color: #cf1322;
}

/* 表格：所有列统一上下对齐、行高一致 */
.skc-table {
  width: 100%; border-collapse: collapse; background: #fff;
  border: 1px solid #e5e8ec; border-radius: 4px; overflow: hidden;
  margin: 0 0 16px;
  table-layout: auto;
}
.skc-table th, .skc-table td {
  padding: 10px 12px; border-bottom: 1px solid #eef1f4; text-align: left;
  font-size: 13px; vertical-align: middle;
  line-height: 1.5;
}
.skc-table th { background: #fafbfc; font-weight: 600; color: #555; white-space: nowrap; }
.skc-table tr:last-child td { border-bottom: none; }
/* 表格里的输入框/按钮，跟单元格垂直对齐 */
.skc-table .skc-input,
.skc-table .skc-btn { vertical-align: middle; }

/* 工具栏：输入框、下拉、按钮统一高度和间距 */
.skc-toolbar {
  display: flex; gap: 8px; margin: 0 0 16px; align-items: center;
  flex-wrap: wrap;
}
.skc-toolbar .skc-input { width: 240px; height: 34px; }
.skc-toolbar .skc-btn { height: 34px; }
.skc-toolbar-full .skc-input { flex: 1; width: auto; min-width: 120px; }

/* 表单按钮区：上下间距统一 */
.skc-form-actions {
  margin: 16px 0 0;
  display: flex; gap: 8px; flex-wrap: wrap;
  align-items: center;
}

/* 小标题：上下间距统一 */
.skc-sub-title {
  margin: 24px 0 12px; font-size: 15px;
  line-height: 1.6;
}
.skc-sub-title:first-of-type { margin-top: 0; }

.skc-sub-actions { margin-bottom: 12px; }
.skc-sub-actions .skc-btn { font-size: 13px; height: 30px; padding: 0 12px; }

/* 企业 logo 一行 */
.skc-logo-row { display: flex; gap: 8px; align-items: center; }
.skc-logo-row .skc-input { flex: 1; }
.skc-logo-row .skc-btn { flex-shrink: 0; }

/* 卡片：统一内边距，控制台不再内联覆盖 */
.skc-cards {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin-bottom: 16px;
}
.skc-card {
  background: #fff; border: 1px solid #e5e8ec; border-radius: 6px;
  padding: 20px; text-align: center;
}
.skc-card .n { font-size: 30px; font-weight: 700; color: #1668dc; line-height: 1.2; }
.skc-card .t { color: #888; margin-top: 6px; font-size: 13px; }
/* 控制台里的图表卡片，统一成一样 */
.skc-card-chart { padding: 16px 20px; text-align: left; }
.skc-card-chart h3 { margin: 0 0 12px; font-size: 15px; }

/* 分页 */
.skc-pager { display: flex; gap: 6px; margin: 14px 0 0; flex-wrap: wrap; }
.skc-pager a {
  padding: 5px 10px; border: 1px solid #d5dae1; border-radius: 4px;
  background: #fff; color: #333; font-size: 13px;
}
.skc-pager a.active { background: #1668dc; color: #fff; border-color: #1668dc; }

/* 登录页 */
.skc-login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1f2733, #1668dc);
}
.skc-login-box {
  width: 380px; background: #fff; border-radius: 8px;
  padding: 32px 28px; box-shadow: 0 12px 40px rgba(0,0,0,.18);
  text-align: center;
}
.skc-login-logo img { height: 56px; width: 56px; object-fit: contain; margin-bottom: 12px; }
.skc-login-box h1 { font-size: 18px; margin: 6px 0; }
.skc-login-sub { font-size: 12px; color: #999; margin-bottom: 18px; }
.skc-login-box .skc-input { margin-bottom: 12px; height: 40px; }
.skc-login-box .skc-btn { height: 40px; }

.skc-alert {
  background: #fff2f0; color: #d4380d; border: 1px solid #ffccc7;
  padding: 8px 10px; border-radius: 4px; margin-bottom: 12px; font-size: 13px;
}
.skc-alert-ok {
  background: #f6ffed; color: #389e0d; border-color: #b7eb8f;
}

/* 验证码 */
.skc-captcha-row { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.skc-captcha-img {
  height: 40px; width: 120px; border: 1px solid #d5dae1;
  border-radius: 4px; cursor: pointer; background: #fafbfc;
}

/* 404 / 500 */
.skc-404 { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.skc-404-box { text-align: center; }
.skc-404-box h1 { font-size: 80px; margin: 0; color: #1668dc; }
.skc-404-box p { color: #888; margin: 12px 0 24px; }

/* 风控等级标签 */
.skc-risk { padding: 2px 8px; border-radius: 10px; font-size: 12px; display: inline-block; }
.skc-risk-低 { background: #f6ffed; color: #389e0d; border: 1px solid #b7eb8f; }
.skc-risk-中 { background: #fffbe6; color: #d48806; border: 1px solid #ffe58f; }
.skc-risk-高 { background: #fff1f0; color: #cf1322; border: 1px solid #ffa39e; }

/* 企业预览页 */
.skc-preview-page { background: #eef1f5; }
.skc-preview-top { background: #1f2733; color: #fff; padding: 12px 0; }
.skc-preview-top-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 10px;
}
.skc-preview-logo { height: 30px; width: 30px; object-fit: contain; }
.skc-preview-sys { font-size: 15px; font-weight: 600; }

.skc-preview-wrap { max-width: 1100px; margin: 0 auto; padding: 24px 20px 40px; }

.skc-preview-head {
  background: #fff; border-radius: 6px; padding: 24px;
  display: flex; justify-content: space-between; gap: 20px; margin-bottom: 16px;
}
.skc-preview-head-left h1 { margin: 0 0 10px; font-size: 22px; word-break: break-all; }
.skc-preview-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.skc-tag {
  background: #f0f4fa; color: #1668dc; padding: 3px 10px;
  border-radius: 12px; font-size: 12px;
}

.skc-risk-box {
  min-width: 140px; text-align: center; padding: 14px 18px;
  border-radius: 6px; border: 1px solid;
}
.skc-risk-box-低 { background: #f6ffed; border-color: #b7eb8f; color: #389e0d; }
.skc-risk-box-中 { background: #fffbe6; border-color: #ffe58f; color: #d48806; }
.skc-risk-box-高 { background: #fff1f0; border-color: #ffa39e; color: #cf1322; }
.skc-risk-label { font-size: 12px; }
.skc-risk-value { font-size: 28px; font-weight: 700; margin: 4px 0; }
.skc-risk-count { font-size: 12px; }

.skc-preview-block {
  background: #fff; border-radius: 6px; padding: 20px 24px; margin-bottom: 16px;
}
.skc-preview-block h2 {
  margin: 0 0 14px; font-size: 16px;
  border-left: 4px solid #1668dc; padding-left: 10px;
}
.skc-count { color: #999; font-weight: normal; font-size: 13px; }

.skc-info-table { width: 100%; border-collapse: collapse; }
.skc-info-table th, .skc-info-table td {
  padding: 10px 12px; border: 1px solid #eef1f4; font-size: 13px;
  vertical-align: top; word-break: break-all; line-height: 1.5;
}
.skc-info-table th {
  background: #fafbfc; color: #666; font-weight: 600; width: 140px; text-align: left;
}
.skc-risk-type { color: #cf1322; font-weight: 600; }
.skc-empty { color: #999; font-size: 13px; margin: 0; }

.skc-preview-foot {
  text-align: center; color: #999; font-size: 12px; margin-top: 24px; line-height: 1.8;
}

/* 官网前台 */
.skc-home-page { background: #fff; }

.skc-home-top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eef1f4;
}
.skc-home-top-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.skc-home-brand {
  display: flex; align-items: center; gap: 10px;
  color: #1f2733; font-weight: 700; font-size: 17px;
  text-decoration: none;
}
.skc-home-brand:hover { text-decoration: none; }
.skc-home-brand img { height: 34px; width: 34px; object-fit: contain; }
.skc-home-nav { display: flex; align-items: center; gap: 24px; }
.skc-home-nav a { color: #444; font-size: 14px; }
.skc-home-nav a:hover { color: #1668dc; text-decoration: none; }
.skc-home-login {
  padding: 6px 16px; border-radius: 18px;
  background: #1668dc; color: #fff !important;
}
.skc-home-login:hover { background: #0f56bf; }

.skc-home-hero {
  position: relative; overflow: hidden;
  min-height: 520px; display: flex; align-items: center; justify-content: center;
  color: #fff; text-align: center;
}
.skc-home-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.04);
}
.skc-home-hero-mask {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,25,45,.72), rgba(15,25,45,.88));
}
.skc-home-hero-inner {
  position: relative; z-index: 2;
  max-width: 820px; padding: 60px 24px; width: 100%;
}
.skc-home-title {
  font-size: 40px; font-weight: 800; margin: 0 0 12px;
  letter-spacing: 1px;
}
.skc-home-slogan {
  font-size: 16px; color: #cfd8e3; margin: 0 0 32px;
}

.skc-home-search {
  display: flex; align-items: stretch;
  background: #fff; border-radius: 999px;
  padding: 6px; box-shadow: 0 12px 40px rgba(0,0,0,.28);
  max-width: 720px; margin: 0 auto;
}
.skc-home-search-input {
  flex: 1; height: 48px; border: none; outline: none;
  padding: 0 22px; font-size: 15px; color: #222;
  background: transparent; border-radius: 999px;
  min-width: 0;
}
.skc-home-search-btn {
  height: 48px; padding: 0 34px; border: none;
  background: #1668dc; color: #fff; font-size: 15px; font-weight: 600;
  border-radius: 999px; cursor: pointer; transition: background .2s;
}
.skc-home-search-btn:hover { background: #0f56bf; }

.skc-home-hot {
  margin-top: 22px; font-size: 13px; color: #b8c4d6;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
.skc-home-hot-label { color: #8b9ab0; }
.skc-home-hot a {
  color: #e6edf7; padding: 2px 10px; border-radius: 12px;
  background: rgba(255,255,255,.08); text-decoration: none;
}
.skc-home-hot a:hover { background: rgba(255,255,255,.18); text-decoration: none; }

.skc-home-stats {
  background: #f7f9fc; border-bottom: 1px solid #eef1f4;
}
.skc-home-stats-inner {
  max-width: 1200px; margin: 0 auto; padding: 32px 24px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.skc-stat { text-align: center; }
.skc-stat .n {
  font-size: 34px; font-weight: 800; color: #1668dc;
  font-variant-numeric: tabular-nums;
}
.skc-stat .t { color: #777; margin-top: 6px; font-size: 14px; }

.skc-home-feat { padding: 56px 0; }
.skc-home-feat-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.skc-feat {
  background: #fff; border: 1px solid #eef1f4; border-radius: 12px;
  padding: 28px 22px; transition: transform .2s, box-shadow .2s;
}
.skc-feat:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(22,104,220,.08);
}
.skc-feat .i { font-size: 30px; margin-bottom: 10px; }
.skc-feat h3 { margin: 0 0 8px; font-size: 16px; }
.skc-feat p { margin: 0; color: #777; font-size: 13px; line-height: 1.7; }

.skc-home-foot {
  background: #1f2733; color: #b8c4d6; padding: 32px 0;
  font-size: 13px;
}
.skc-home-foot-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  flex-wrap: wrap;
}
.skc-home-foot-left { display: flex; align-items: center; gap: 12px; }
.skc-home-foot-logo { height: 36px; width: 36px; object-fit: contain; }
.skc-home-foot-name { color: #fff; font-weight: 600; font-size: 14px; }
.skc-home-foot-en { font-size: 12px; color: #8b9ab0; margin-top: 2px; }
.skc-home-foot-right { text-align: right; line-height: 1.8; }
.skc-home-foot-note { color: #7b8a9f; font-size: 12px; }

/* 搜索结果页 */
.skc-search-bar {
  background: #f7f9fc; border-bottom: 1px solid #eef1f4;
  padding: 20px 0;
}
.skc-search-bar-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skc-home-search--inline {
  max-width: 720px; margin: 0; box-shadow: 0 6px 20px rgba(0,0,0,.08);
  border: 1px solid #e5e8ec;
}
.skc-search-wrap {
  max-width: 1000px; margin: 0 auto; padding: 28px 24px 60px;
}
.skc-search-meta { color: #666; font-size: 14px; margin-bottom: 18px; }
.skc-search-meta b { color: #1668dc; }
.skc-search-empty {
  text-align: center; color: #999; padding: 80px 0; font-size: 15px;
}
.skc-search-list { list-style: none; padding: 0; margin: 0; }
.skc-search-item {
  display: flex; justify-content: space-between; gap: 20px;
  background: #fff; border: 1px solid #eef1f4; border-radius: 10px;
  padding: 20px 24px; margin-bottom: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.skc-search-item:hover {
  border-color: #c9dcfb;
  box-shadow: 0 8px 24px rgba(22,104,220,.08);
}
.skc-search-item-main { min-width: 0; flex: 1; }
.skc-search-item-name {
  font-size: 17px; font-weight: 700; color: #1f2733;
  text-decoration: none; display: inline-block; margin-bottom: 10px;
  word-break: break-all;
}
.skc-search-item-name:hover { color: #1668dc; text-decoration: none; }
.skc-search-item-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.skc-search-item-info,
.skc-search-item-code {
  color: #666; font-size: 13px; margin-top: 4px;
  word-break: break-all;
}
.skc-search-item-right {
  flex-shrink: 0; text-align: right;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
}
.skc-search-item-risk-count { color: #999; font-size: 12px; }

/* 弹层 */
.skc-modal { position: fixed; inset: 0; z-index: 999; }
.skc-modal-mask {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.45);
}
.skc-modal-box {
  position: relative; max-width: 640px; margin: 60px auto;
  background: #fff; border-radius: 8px; overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,0,.2);
  max-height: 80vh; display: flex; flex-direction: column;
}
.skc-modal-head {
  padding: 14px 20px; border-bottom: 1px solid #eef1f4;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; font-size: 15px;
}
.skc-modal-close {
  font-size: 22px; color: #999; text-decoration: none; line-height: 1;
}
.skc-modal-close:hover { color: #333; text-decoration: none; }
.skc-modal-body { padding: 18px 20px; overflow-y: auto; }
.skc-modal-body .skc-table { margin-bottom: 0; }

/* 响应式 */
@media (max-width: 768px) {
  .skc-home-title { font-size: 26px; }
  .skc-home-slogan { font-size: 14px; }
  .skc-home-search { border-radius: 14px; padding: 4px; }
  .skc-home-search-input { height: 44px; padding: 0 16px; font-size: 14px; }
  .skc-home-search-btn { height: 44px; padding: 0 22px; font-size: 14px; }
  .skc-home-stats-inner,
  .skc-home-feat-inner { grid-template-columns: 1fr; }
  .skc-stat .n { font-size: 26px; }
  .skc-home-hero { min-height: 420px; }
  .skc-search-item { flex-direction: column; }
  .skc-search-item-right { align-items: flex-start; text-align: left; }
  .skc-home-foot-inner { flex-direction: column; text-align: center; }
  .skc-home-foot-right { text-align: center; }
  .skc-cards { grid-template-columns: repeat(2, 1fr); }
}

/* 页脚补充 */
.skc-home-foot-contact,
.skc-home-foot-copy,
.skc-home-foot-beian,
.skc-home-foot-links {
  font-size: 12px;
  margin-top: 4px;
}
.skc-home-foot-beian a,
.skc-home-foot-links a {
  color: #b8c4d6;
  text-decoration: none;
}
.skc-home-foot-beian a:hover,
.skc-home-foot-links a:hover {
  color: #fff;
  text-decoration: underline;
}