/* 独立下方整页区域：与上方罗盘视口分离 */
.summary-pane {
  flex: 0 0 auto;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.75rem 0.85rem 1.6rem;
  border-top: 0;
  background:
    radial-gradient(60rem 22rem at 85% -5%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(50rem 20rem at -10% 30%, rgba(255, 255, 255, 0.55), transparent 55%),
    linear-gradient(165deg, #d9e8fb 0%, #edf5fd 45%, #d7e7fb 100%);
  position: relative;
}

.summary-tip {
  margin: 0 0 0.55rem;
  padding: 0 0.1rem;
  text-align: center;
  font-size: 0.68rem;
  line-height: 1.35;
  color: #7d92b8;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.summary-pane > .summary-tip,
.summary-pane > .summary-card,
.summary-pane > .summary-results {
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.summary-card {
  padding: 0 0.95rem 1.05rem;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(47, 111, 237, 0.12);
  overflow: hidden;
}

.summary-head {
  margin: 0 -0.95rem 0.95rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(120deg, #a9cdff 0%, #5b93f7 48%, #2f6fed 100%);
}

.summary-sit {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 1rem;
  color: #12325e;
  font-weight: 700;
  line-height: 1.35;
}

.summary-sit-dot {
  flex: 0 0 auto;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #12325e;
}

.summary-form {
  margin-top: 0;
}

.summary-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 0.7rem;
}

.summary-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.summary-field-label {
  font-size: 0.78rem;
  color: #202124;
  font-weight: 700;
  line-height: 1.3;
}

.summary-field-hint {
  margin-left: 0.15rem;
  color: #9aa3af;
  font-weight: 400;
}

.summary-field-feng {
  grid-column: 1 / -1;
}

.summary-field select {
  width: 100%;
  min-height: 48px;
  border: 1.5px solid #cddcf5;
  border-radius: 12px;
  background-color: #f4f8ff;
  background-image:
    linear-gradient(45deg, transparent 50%, #5b7bb2 50%),
    linear-gradient(135deg, #5b7bb2 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% + 2px),
    calc(100% - 12px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  color: #202124;
  font: inherit;
  font-size: 0.98rem;
  padding: 0 2rem 0 0.8rem;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.summary-field select:focus {
  outline: none;
  border-color: #2f6fed;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.16);
}

.summary-field select:invalid,
.summary-field select option[value=""] {
  color: #9aa3af;
}

.sum-feng-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  min-height: 0;
  margin-top: 0.1rem;
}

.sum-feng-tags:not(:empty) {
  margin-top: 0.45rem;
}

.sum-feng-tag {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  border: 0;
  border-radius: 10px;
  background: #dfeafe;
  color: #2b6ae3;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem 0.3rem 0.68rem;
  cursor: pointer;
  line-height: 1.2;
}

.sum-feng-tag:hover {
  background: #cfe2fd;
}

.sum-feng-tag-x {
  color: #5b8def;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
}

#btnLiqiSummary {
  margin-top: 0.95rem;
  width: 100%;
  max-width: none;
  min-height: 48px;
  border-radius: 12px;
  border: 0;
  background: linear-gradient(135deg, #7db4ff, #3d7ef2 55%, #2f6fed);
  box-shadow: 0 8px 20px rgba(47, 111, 237, 0.32);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-indent: 0.25em;
}

.summary-results {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.summary-results.hidden { display: none; }

.summary-block h3 {
  font-size: 1rem;
  color: var(--title);
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

.summary-block-body {
  border: 1px solid #e2ebf8;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(47, 111, 237, 0.08);
  padding: 0.8rem;
  overflow: auto;
}

.summary-meta {
  font-size: 1rem;
  color: #1a2b4a;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.summary-fact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}
.summary-fact-chip {
  font-size: 0.75rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid #c6dbf8;
  background: #f6faff;
  color: #2f6fed;
  font-weight: 600;
}

.liqi-mini-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #cfe0f8;
  border-radius: 10px;
  background: #fff;
}
.liqi-mini-hint {
  margin: 0;
  padding: 0.3rem 0.45rem;
  font-size: 0.7rem;
  color: #8fa3c4;
  border-bottom: 1px solid #dfe9f8;
  background: #eef5fe;
  white-space: nowrap;
}
.liqi-mini-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.78rem;
}
.liqi-mini-table th,
.liqi-mini-table td {
  border: 1px solid #e4edf9;
  padding: 0.4rem 0.5rem;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
  line-height: 1.35;
}
.liqi-mini-table th {
  color: #1a2b4a;
  font-weight: 700;
  background: #f8fbff;
}
.liqi-mini-table .col-idx {
  width: 2.6rem;
  text-align: center;
}
.liqi-mini-table .col-name {
  min-width: 7.5rem;
}
.liqi-mini-table .col-status {
  width: 3.6rem;
  text-align: center;
}
.liqi-mini-table .col-detail {
  min-width: 22rem;
}
.liqi-mini-table .st-ok { color: #2e7d32; font-weight: 700; }
.liqi-mini-table .st-bad { color: #c62828; font-weight: 700; }
.liqi-mini-table .st-mid { color: #2f6fed; font-weight: 700; }
.liqi-mini-table .st-muted { color: var(--muted); }

.summary-error {
  color: #c62828;
  font-size: 0.85rem;
  padding: 0.4rem 0;
}
.summary-loading {
  color: var(--muted);
  font-size: 0.85rem;
  padding: 0.5rem 0;
}

.summary-loading-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 7.5rem;
  padding: 1.1rem 0.75rem;
  text-align: center;
}
.summary-loading-ring {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  border: 2.5px solid rgba(47, 111, 237, 0.2);
  border-top-color: #2f6fed;
  border-right-color: #5b8def;
  animation: summary-spin 0.85s linear infinite;
}
.summary-loading-text {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted, #6b778c);
  letter-spacing: 0.04em;
}
.summary-loading-bar {
  width: min(12rem, 70%);
  height: 3px;
  border-radius: 999px;
  background: rgba(47, 111, 237, 0.12);
  overflow: hidden;
}
.summary-loading-bar > i {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7aa4f5, #2f6fed, #5b8def);
  animation: summary-bar 1.5s ease-in-out forwards;
}
@keyframes summary-spin {
  to { transform: rotate(360deg); }
}
@keyframes summary-bar {
  from { transform: translateX(-120%); }
  to { transform: translateX(280%); }
}

#btnLiqiSummary.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

.summary-yanhai-host {
  padding: 0;
  min-height: 0;
  overflow: visible;
}

.yanhai-frame {
  display: block;
  width: 100%;
  min-height: 200px;
  height: 240px;
  border: 0;
  background: #fff;
  overflow: hidden;
}

@media (max-width: 520px) {
  .summary-pane {
    padding: 0.65rem 0.65rem 1.35rem;
  }
  .summary-card {
    padding: 0 0.85rem 1rem;
  }
  .summary-head {
    margin: 0 -0.85rem 0.9rem;
  }
  .summary-tip {
    font-size: 0.64rem;
  }
}

@media (min-width: 720px) {
  .summary-pane > .summary-tip,
  .summary-pane > .summary-card,
  .summary-pane > .summary-results {
    max-width: 32rem;
  }
  .summary-tip {
    font-size: 0.72rem;
  }
}
