.tj-hero{
  display:flex;
  gap:14px;
  justify-content:space-between;
  align-items:stretch;
  background:linear-gradient(135deg,#0b5cff 0%,#03c6ff 100%);
  color:#fff;
  border-radius:16px;
  padding:16px;
  margin:10px 0 16px;
}

.tj-hero-left h3{
  margin:0 0 8px;
  font-size:20px;
}

.tj-hero-left p{
  margin:0 0 12px;
  opacity:.92;
}

.tj-hero-right{
  display:flex;
  align-items:center;
}

/* hero 右侧小指标块 */
.tj-hero-right .tj-kpi{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px;
  min-width:260px;
}

.tj-hero-right .tj-kpi .k{
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.22);
  border-radius:14px;
  padding:12px 14px;
  min-width:0;
}

.tj-hero-right .tj-kpi b{
  display:block;
  font-size:18px;
  line-height:1.1;
  color:#fff;
  margin-bottom:4px;
}

.tj-hero-right .tj-kpi span{
  display:block;
  opacity:.92;
  font-size:12px;
  color:rgba(255,255,255,.92);
  line-height:1.35;
}

.tj-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:14px 0 0;
}

.tj-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
  margin-top:14px;
}

.tj-grid2{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}

.tj-grid-2{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  margin-top:16px;
}

.tj-card{
  border:1px solid #eee;
  border-radius:14px;
  padding:14px;
  background:#fff;
}

.tj-card h3{
  margin:0 0 6px;
}

.tj-card p{
  margin:0 0 10px;
  color:#555;
}

.tj-card .link{
  text-decoration:none;
  color:#0b5cff;
  font-weight:700;
}

.tj-form{
  margin-top:12px;
}

.tj-form label{
  display:block;
  margin:10px 0 6px;
  font-weight:700;
}

.tj-form input,
.tj-form textarea,
.tj-form select{
  width:100%;
  border:1px solid #e5e5e5;
  border-radius:12px;
  padding:10px 12px;
  margin:0;
}

.tj-form textarea{
  resize:vertical;
}

.tj-box{
  border:1px solid #eee;
  border-radius:14px;
  background:#fff;
  padding:14px;
  margin:12px 0;
}

.tj-row{
  margin:8px 0;
}

.tj-tip{
  color:#555;
  margin:8px 0;
}

.tj-tip-mt12{
  margin-top:12px;
}

.tj-ok{
  font-weight:900;
  color:#2f9e44;
}

.tj-bad{
  font-weight:900;
  color:#c92a2a;
}

.tj-code{
  width:100%;
  border:1px solid #e5e5e5;
  border-radius:12px;
  padding:10px 12px;
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.tj-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  border:1px solid #eee;
  background:#fafafa;
  white-space:nowrap;
}

.tj-badge.pending{
  color:#b26a00;
  border-color:#ffe8a3;
  background:#fff7e6;
}

.tj-badge.approved,
.tj-badge.enabled{
  color:#2f9e44;
  border-color:#b2f2bb;
  background:#ebfbee;
}

.tj-badge.rejected,
.tj-badge.disabled{
  color:#c92a2a;
  border-color:#ffc9c9;
  background:#fff5f5;
}

.tj-table-wrap{
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  border:1px solid #eee;
  border-radius:14px;
  background:#fff;
}

.tj-table{
  width:max-content;
  min-width:100%;
  border-collapse:collapse;
  background:#fff;
  table-layout:auto;
}

.tj-table th,
.tj-table td{
  border-bottom:1px solid #eee;
  padding:10px 12px;
  text-align:left;
  vertical-align:middle;
  white-space:nowrap;
}

.tj-table th{
  background:#fafafa;
  font-weight:800;
}

.tj-table-center th,
.tj-table-center td{
  text-align:center;
}

.tj-domain{
  font-weight:800;
  white-space:nowrap;
}

.tj-sub{
  color:#777;
  font-size:12px;
  white-space:nowrap;
}

.tj-ops{
  display:flex;
  gap:8px;
  flex-wrap:nowrap;
  white-space:nowrap;
}

.tj-col-source{
  min-width:320px;
}

.tj-col-num{
  min-width:180px;
}

.tj-copy{
  display:inline-flex;
  align-items:center;
  max-width:320px;
  padding:6px 10px;
  border:1px solid #e5e7eb;
  border-radius:10px;
  background:#f8fafc;
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:12px;
  line-height:1.4;
  color:#0f172a;
  cursor:pointer;
  user-select:all;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  transition:.18s ease;
}

.tj-copy:hover{
  border-color:#93c5fd;
  background:#eff6ff;
}

.tj-copy.is-copied{
  border-color:#86efac;
  background:#f0fdf4;
  color:#166534;
}

.tj-copy-empty{
  color:#777;
  font-size:12px;
  white-space:nowrap;
}

.tj-table-wrap::-webkit-scrollbar{
  height:10px;
}

.tj-table-wrap::-webkit-scrollbar-thumb{
  background:rgba(120,120,120,.28);
  border-radius:999px;
}

/* tongji view inline-style migration */
.tj-wrap{
  max-width:980px;
  margin:0 auto;
  padding:18px 12px;
}

.tj-wrap-wide{
  max-width:1100px;
}

.tj-wrap-narrow{
  max-width:980px;
}

.tj-title{
  text-align:center;
  margin:0 0 10px;
  font-size:22px;
}

.tj-title-reset{
  margin:0 0 10px !important;
  font-size:22px;
}

.tj-toplink{
  text-align:center;
  margin:6px 0 10px;
  font-weight:700;
}

.tj-toplink a{
  color:#d40000;
  text-decoration:none;
}

.tj-toplink a:hover{
  text-decoration:underline;
}

.tj-toplink-muted{
  color:#666;
  font-weight:400;
}

.tj-hr{
  border:none;
  border-top:1px solid #999;
  margin:12px 0 18px;
}

.tj-section-gap{
  margin-top:22px !important;
}

.tj-canvas{
  height:260px;
}

.tj-canvas-lg{
  height:360px;
}

/* 普通统计数字卡片 */
.tj-kpis{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  margin:12px 0;
}

.tj-kpis .tj-kpi{
  border:1px solid #eee;
  border-radius:14px;
  padding:12px;
  min-width:0;
  background:#fff;
}

.tj-kpis .tj-kpi .n{
  font-size:22px;
  font-weight:900;
}

.tj-kpis .tj-kpi .t{
  color:#666;
  margin-top:6px;
  font-size:12px;
}

.tj-h3{
  margin:0 0 10px;
}

.tj-ol{
  margin:0;
  padding-left:18px;
  color:#555;
}

.tj-grid-2 + .tj-card{
  margin-top:16px;
}

.tj-wrap > .tj-card + .tj-card{
  margin-top:16px;
}

@media (max-width:900px){
  .tj-kpis{
    grid-template-columns:repeat(2,1fr);
  }

  .tj-grid-2{
    grid-template-columns:1fr;
  }

  .tj-title-reset,
  .tj-card h3{
    font-size:18px;
  }

  .tj-table-center th,
  .tj-table-center td{
    padding:10px 6px;
    font-size:13px;
  }

  .tj-canvas-lg{
    height:320px;
  }
}
.uc-panel .tj-form .tj-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:5px;
  margin-bottom:0;
}
@media (max-width:760px){
  .tj-grid{
    grid-template-columns:1fr;
  }

  .tj-hero{
    flex-direction:column;
  }
}

@media (min-width:640px){
  .tj-kpis .tj-kpi{
    min-width:240px;
  }
}