﻿* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  color: #e8f0fb;
  background:
    radial-gradient(circle at 0 0, rgba(42, 255, 42, 0.14), transparent 28%),
    radial-gradient(circle at 100% 0, rgba(95, 212, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #07111f 0%, #0a1220 48%, #06101d 100%);
}

.page {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 22px 16px 52px;
}

.hero {
  padding: 18px 0 18px;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid rgba(42, 255, 42, 0.55);
  border-radius: 999px;
  color: #2aff2a;
  font-size: 13px;
  margin-bottom: 14px;
  background: rgba(42, 255, 42, 0.08);
}

h1 {
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.18;
  letter-spacing: 0.02em;
}

h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

p {
  margin: 0;
  line-height: 1.7;
  color: #aab7c8;
}

.panel,
.status-card,
.raw-box,
.notice,
.detail-panel,
.table-panel {
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.095);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}

.status-card {
  color: #c9d6e5;
}

.status-card.success {
  color: #b9ffbd;
  border-color: rgba(42, 255, 42, 0.38);
  background: rgba(42, 255, 42, 0.08);
}

.status-card.error {
  color: #ffd4d4;
  border-color: rgba(255, 110, 110, 0.4);
  background: rgba(255, 110, 110, 0.08);
}

.status-card.loading-status {
  color: #bdefff;
  border-color: rgba(95, 212, 255, 0.35);
  background: rgba(95, 212, 255, 0.1);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.summary-card {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.095);
}

.summary-card span {
  display: block;
  color: #aab7c8;
  font-size: 13px;
  margin-bottom: 8px;
}

.summary-card b {
  font-size: 26px;
  color: #2aff2a;
}

.toolbar {
  display: grid;
  grid-template-columns: 2fr 1fr 160px 160px;
  gap: 12px;
  align-items: end;
}

.field label {
  display: block;
  margin: 0 0 8px;
  color: #c9d6e5;
  font-size: 14px;
}

input,
select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 15px;
  outline: none;
}

select option {
  color: #111;
}

button {
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #2aff2a;
  color: #07110a;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.secondary-btn {
  background: #5fd4ff;
}

.tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 0 14px;
  margin-bottom: 2px;
}

.tab {
  min-width: 138px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  color: #d7e3f2;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tab.active {
  color: #07110a;
  background: #2aff2a;
}

.tab b {
  font-size: 18px;
}

.table-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.count-pill {
  min-width: 58px;
  padding: 8px 12px;
  text-align: center;
  border-radius: 999px;
  color: #07110a;
  background: #2aff2a;
  font-weight: 900;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #b9c7d8;
  background: rgba(6, 16, 29, 0.98);
}

td span {
  color: #aab7c8;
}

tr:hover td {
  background: rgba(42, 255, 42, 0.045);
}

.link-btn {
  width: auto;
  height: auto;
  padding: 0;
  text-align: left;
  color: #e8f0fb;
  background: transparent;
  border-radius: 0;
}

.link-btn b {
  color: #ffffff;
}

.trend {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 800;
}

.trend.up {
  color: #b9ffbd;
  background: rgba(42, 255, 42, 0.12);
}

.trend.down {
  color: #ffdd9a;
  background: rgba(255, 176, 58, 0.12);
}

.pool {
  display: inline-block;
  padding: 3px 7px;
  margin-bottom: 4px;
  border-radius: 999px;
  color: #bdefff;
  background: rgba(95, 212, 255, 0.12);
}

.empty-cell,
.detail-empty {
  padding: 20px;
  color: #aab7c8;
  text-align: center;
}

.danger-text {
  color: #ffb3b3;
}

.detail-main {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
}

.detail-item,
.field-row {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-item span,
.field-row span {
  display: block;
  color: #aab7c8;
  font-size: 12px;
  margin-bottom: 6px;
}

.detail-item b,
.field-row b {
  color: #ffffff;
  word-break: break-all;
}

.all-fields {
  margin-top: 14px;
}

.all-fields summary,
.raw-box summary {
  cursor: pointer;
  color: #bdefff;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.raw-box pre {
  white-space: pre-wrap;
  word-break: break-word;
  color: #c9d6e5;
  max-height: 360px;
  overflow: auto;
}

.notice {
  color: #aab7c8;
  font-size: 13px;
}

@media (max-width: 980px) {
  .summary-grid {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  .detail-main,
  .field-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 26px;
  }
}

/* ============================================================
   H5_9C_P1_STYLE_PATCH
   P1最终口径字段显示增强
   ============================================================ */

.table-wrap table {
  min-width: 1680px;
}

.p1-status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 800;
  margin-bottom: 4px;
}

.p1-status.ok {
  color: #b9ffbd;
  background: rgba(42, 255, 42, 0.12);
}

.p1-status.wait {
  color: #bdefff;
  background: rgba(95, 212, 255, 0.12);
}

.p1-status.danger {
  color: #ffd4d4;
  background: rgba(255, 110, 110, 0.14);
}

.detail-item:nth-child(11),
.detail-item:nth-child(12),
.detail-item:nth-child(18),
.detail-item:nth-child(19),
.detail-item:nth-child(20) {
  border-color: rgba(42, 255, 42, 0.18);
}


/* ============================================================
   H5_PARAM12_FRONTEND_V1
   PARAM_12_6 管线结果展示区
   ============================================================ */

.param12-panel {
  margin-bottom: 16px;
}

.param12-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.param12-badge {
  display: inline-block;
  padding: 5px 10px;
  margin-bottom: 8px;
  border-radius: 999px;
  color: #b9ffbd;
  background: rgba(42, 255, 42, 0.11);
  border: 1px solid rgba(42, 255, 42, 0.22);
  font-size: 12px;
}

.param12-head h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.param12-head p {
  margin: 0;
  color: #aab7c8;
  line-height: 1.6;
}

.param12-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(92px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.param12-card {
  padding: 14px 12px;
  border-radius: 14px;
  background: rgba(42, 255, 42, 0.07);
  border: 1px solid rgba(42, 255, 42, 0.16);
}

.param12-card span {
  display: block;
  color: #aab7c8;
  font-size: 12px;
  margin-bottom: 7px;
}

.param12-card b {
  display: block;
  color: #2aff2a;
  font-size: 20px;
  line-height: 1.15;
}

.param12-card.danger {
  background: rgba(255, 110, 110, 0.08);
  border-color: rgba(255, 110, 110, 0.28);
}

.param12-card.danger b {
  color: #ffd4d4;
}

.param12-statement {
  padding: 13px 14px;
  border-radius: 14px;
  color: #d6e2f2;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.085);
  line-height: 1.75;
}

.param12-statement div + div {
  margin-top: 8px;
}

@media (max-width: 980px) {
  .param12-grid {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }

  .param12-head {
    display: block;
  }

  .param12-card b {
    font-size: 18px;
  }
}

@media (max-width: 520px) {
  .param12-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .param12-card {
    padding: 12px 10px;
  }

  .param12-statement {
    font-size: 13px;
  }
}



/* ============================================================
   H5_HIDE_SEARCH_AND_FIX_LAYOUT
   隐藏顶部当前池内搜索框；保留 searchInput 元素，避免 JS 初始化报错。
   顶部工具栏改为：结构筛选｜刷新结果｜检查系统。
   不影响单标的诊断区表单。
   ============================================================ */

.hidden-search-field {
  display: none;
}

.monitor-toolbar {
  grid-template-columns: 1fr 160px 160px;
}

@media (max-width: 980px) {
  .monitor-toolbar {
    grid-template-columns: 1fr;
  }
}


/* ===== H5 HOME AREA4 UI POLISH FINAL START ===== */

body {
  -webkit-font-smoothing: antialiased;
}

.panel,
.result-card,
.status-card,
.detail-card {
  border-radius: 18px;
}

.panel h2,
.result-card h2,
.detail-card h2 {
  letter-spacing: 0.01em;
}

input,
select,
button,
.primary-btn,
.secondary-btn,
.outline-btn,
.back-btn,
.area4-secondary-action {
  min-height: 52px;
  border-radius: 12px;
  box-sizing: border-box;
}

input,
select {
  font-size: 16px;
  padding: 0 16px;
}

button,
.primary-btn,
.secondary-btn,
.outline-btn,
.back-btn,
.area4-secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  text-decoration: none !important;
  cursor: pointer;
}

#area4RunBtn,
.primary-btn {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

#area4RunBtn:hover,
.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.36);
}

.outline-btn,
.secondary-btn,
.area4-secondary-action,
.back-btn {
  background: rgba(37, 99, 235, 0.10);
  border: 1px solid rgba(96, 165, 250, 0.55);
  color: #bfdbfe !important;
  padding: 0 18px;
}

.outline-btn:hover,
.secondary-btn:hover,
.area4-secondary-action:hover,
.back-btn:hover {
  background: rgba(37, 99, 235, 0.18);
  border-color: rgba(147, 197, 253, 0.8);
}

#area4Code,
#area4Capital,
#area4DeployRatio,
#area4TemplateId {
  width: 100%;
}

#area4RunBtn + a[href="/combo-compare"],
a[href="/combo-compare"].outline-btn {
  min-width: 220px;
}

.result-grid,
.metric-grid {
  gap: 14px;
}

.result-card .summary-card,
.summary-card {
  min-height: 104px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.area4-timeline-card {
  margin-top: 18px;
}

.area4-timeline-card h2 {
  margin-bottom: 12px;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.metric-table {
  min-width: 980px;
}

.metric-table th {
  white-space: nowrap;
}

.metric-table td {
  vertical-align: top;
}

.tabs {
  gap: 10px;
}

.tab {
  min-height: 46px;
  border-radius: 999px;
  padding: 0 18px;
}

@media (max-width: 900px) {
  .page,
  main,
  .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .panel,
  .result-card,
  .detail-card,
  .status-card {
    border-radius: 16px;
    padding: 16px !important;
  }

  .input-row,
  .field-grid,
  .filters {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  input,
  select,
  button,
  .primary-btn,
  .secondary-btn,
  .outline-btn,
  .back-btn,
  .area4-secondary-action {
    width: 100% !important;
    min-height: 52px;
    font-size: 16px;
  }

  #area4RunBtn + a[href="/combo-compare"],
  a[href="/combo-compare"].outline-btn {
    width: 100% !important;
    min-width: 0;
  }

  .summary-grid,
  .result-grid,
  .metric-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .summary-card {
    min-height: 92px;
  }

  h1 {
    font-size: 28px !important;
    line-height: 1.25;
  }

  h2 {
    font-size: 22px !important;
    line-height: 1.3;
  }

  p,
  td,
  th,
  label {
    font-size: 14px;
  }

  .tabs {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .tab {
    width: 100%;
  }

  .table-scroll,
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table {
    min-width: 900px;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 24px !important;
  }

  h2 {
    font-size: 20px !important;
  }

  .panel,
  .result-card,
  .detail-card {
    padding: 14px !important;
  }

  input,
  select,
  button,
  .primary-btn,
  .secondary-btn,
  .outline-btn,
  .back-btn,
  .area4-secondary-action {
    min-height: 50px;
  }
}

/* ===== H5 HOME AREA4 UI POLISH FINAL END ===== */

/* ===== COMBO COMPARE ANY CODE FIX START ===== */
.mini-help {
  font-size: 12px;
  color: #667085;
  margin-left: 4px;
}

#stockInput,
#eventLimit {
  min-height: 52px;
  border-radius: 12px;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  #stockInput,
  #eventLimit,
  #loadBtn {
    width: 100% !important;
  }
}
/* ===== COMBO COMPARE ANY CODE FIX END ===== */

/* ===== COMBO COMPARE INPUT KEYPOINT FIX START ===== */
#stockInput,
#eventLimit {
  background: #ffffff !important;
  color: #111827 !important;
  opacity: 1 !important;
  caret-color: #2563eb;
  min-height: 52px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  box-sizing: border-box;
  font-size: 16px;
}

#stockInput::placeholder,
#eventLimit::placeholder {
  color: #94a3b8 !important;
  opacity: 1 !important;
}

#stockInput:focus,
#eventLimit:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.mini-help {
  font-size: 12px;
  color: #667085;
  margin-left: 4px;
}

@media (max-width: 900px) {
  #stockInput,
  #eventLimit,
  #loadBtn {
    width: 100% !important;
  }
}
/* ===== COMBO COMPARE INPUT KEYPOINT FIX END ===== */

/* ===== COMBO COMPARE FAILSAFE FIX START ===== */
#reportInfo {
  line-height: 1.7;
}

.table-wrap td {
  line-height: 1.7;
}
/* ===== COMBO COMPARE FAILSAFE FIX END ===== */

/* H5_15G4B_VERIFY_IFRAME_COMPACT_GRID_START */
body.verify-embed-mode {
  padding: 18px 28px !important;
}

body.verify-embed-mode .verify-top,
body.verify-embed-mode .page-header {
  display: none !important;
}

body.verify-embed-mode main,
body.verify-embed-mode .container {
  max-width: none !important;
  width: 100% !important;
}

body.verify-embed-mode input[type="number"]::-webkit-outer-spin-button,
body.verify-embed-mode input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

body.verify-embed-mode input[type="number"] {
  -moz-appearance: textfield;
}

body.verify-embed-mode .input-row {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(180px, 1fr)) !important;
  gap: 16px !important;
  align-items: end !important;
}

body.verify-embed-mode #verifyPageRunBtn,
body.verify-embed-mode .verify-inline-combo-btn {
  min-height: 54px !important;
  border-radius: 12px !important;
  font-weight: 900 !important;
  text-align: center !important;
  justify-content: center !important;
}

body.verify-embed-mode .verify-inline-combo-btn {
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
  margin-left: 12px !important;
  border: 1px solid rgba(80, 140, 255, .85) !important;
  background: rgba(28, 80, 180, .18) !important;
  color: #dcecff !important;
  padding: 0 24px !important;
}

.verify-compact-result {
  border: 1px solid rgba(80,140,255,.45);
  border-radius: 18px;
  background: rgba(7, 21, 42, .82);
  padding: 24px;
}

.verify-compact-result h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.verify-compact-conclusion {
  margin: 0 0 18px;
  color: #e5f0ff;
  font-size: 16px;
  line-height: 1.7;
}

.verify-compact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 14px;
}

.verify-compact-card {
  min-height: 92px;
  border: 1px solid rgba(120, 160, 220, .25);
  border-radius: 14px;
  background: rgba(255,255,255,.045);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.verify-compact-card span {
  color: #aab9cf;
  font-size: 14px;
  margin-bottom: 8px;
}

.verify-compact-card b {
  color: #f2f7ff;
  font-size: 21px;
  line-height: 1.35;
  word-break: break-word;
}

.verify-compact-risk {
  margin-top: 16px;
  border: 1px solid rgba(120,160,220,.22);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  padding: 16px 18px;
}

.verify-compact-risk strong {
  display: block;
  color: #f2f7ff;
  font-size: 20px;
  margin-bottom: 8px;
}

.verify-compact-risk p {
  margin: 0;
  color: #dce8f8;
  line-height: 1.7;
}

@media (max-width: 980px) {
  body.verify-embed-mode .input-row,
  .verify-compact-grid {
    grid-template-columns: 1fr !important;
  }
}
/* H5_15G4B_VERIFY_IFRAME_COMPACT_GRID_END */

