/* REITs 公共数据页：发行进度 / 公告追踪 / 分红解禁 */

.page.data-page {
  max-width: 1220px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.data-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.data-stamp {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stat-chip {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 13px;
}

.stat-chip i {
  color: var(--muted);
  font-style: normal;
}

.stat-chip b {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.pipeline-insights {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  gap: 16px;
  align-items: stretch;
}

.pipeline-insights .panel + .panel {
  margin-top: 0;
}

.chart-panel {
  min-height: 326px;
}

.chart-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  min-height: 58px;
}

.chart-panel-head h2 {
  margin: 0 0 4px;
  font-size: 17px;
}

.chart-panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.chart-head-tools {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.chart-year-filter {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.chart-year-filter select {
  height: 34px;
  padding: 5px 28px 5px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 12.5px;
}

.chart-badge {
  flex: 0 0 auto;
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.chart-legend-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 11.5px;
  white-space: nowrap;
}

.chart-legend-inline span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.chart-legend-inline i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
}

.legend-sse {
  background: var(--brand);
}

.legend-szse {
  background: var(--amber);
}

.funnel-chart {
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-height: 214px;
  justify-content: flex-start;
}

.funnel-row {
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.funnel-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.35;
}

.funnel-meta b {
  color: var(--ink);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.funnel-track {
  height: 46px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  overflow: hidden;
}

.funnel-stage {
  height: 100%;
  min-width: 58px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 12px;
  font-weight: 750;
  transition: width 260ms ease;
}

.funnel-stage-0 {
  background: var(--brand);
}

.funnel-stage-1 {
  background: var(--blue);
}

.funnel-stage-2 {
  background: var(--amber);
}

.funnel-stage-3 {
  background: var(--green);
}

.funnel-stage-4 {
  background: #0e7490;
}

/* 发改委已推荐、证监会待申报：灰色柱，点击进项目清单页 */
.funnel-stage-ndrc {
  background: #6b7280;
  text-decoration: none;
}

.funnel-row-ndrc .funnel-meta b {
  color: #6b7280;
}

.funnel-stage-ndrc:hover,
.funnel-stage-ndrc:focus-visible {
  background: #4b5563;
  text-decoration: none;
}

.ndrc-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-soft);
  color: var(--muted);
  font-size: 12px;
}

.ndrc-summary a {
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px dotted var(--line-soft);
}

.ndrc-summary a:hover {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.ndrc-summary b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* 发改委公示清单页：人工匹配标记与行内编辑面板 */
.ndrc-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid #6b7280;
  color: #6b7280;
  font-size: 11px;
  vertical-align: middle;
}

.ndrc-actions {
  white-space: nowrap;
}

.ndrc-editor-row > td {
  background: var(--surface-2);
}

.ndrc-editor {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 4px;
}

.ndrc-editor-title {
  font-size: 12.5px;
  color: var(--ink-2);
}

.ndrc-editor-row-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ndrc-editor-input {
  font: inherit;
  font-size: 13px;
  padding: 7px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  outline: none;
}

.ndrc-editor-input:focus {
  border-color: var(--brand);
}

.ndrc-candidate-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 260px;
  overflow-y: auto;
}

.ndrc-candidate {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  text-align: left;
  font: inherit;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
}

.ndrc-candidate:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.ndrc-candidate-name {
  font-size: 13.5px;
  font-weight: 650;
}

.ndrc-candidate-meta {
  font-size: 12px;
  color: var(--muted);
}

.exchange-summary {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line-soft);
}

.exchange-summary-head,
.exchange-summary-labels {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.exchange-summary-head b,
.exchange-summary-labels b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.exchange-split {
  display: flex;
  height: 12px;
  margin: 7px 0 6px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface-2);
}

.exchange-split i {
  display: block;
  height: 100%;
}

.exchange-sse {
  background: var(--brand);
}

.exchange-szse {
  background: var(--amber);
}

.asset-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 214px;
  justify-content: flex-start;
  padding-top: 6px;
}

.asset-bar-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.asset-bar-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-2);
  font-size: 12.5px;
}

.asset-bar-top b {
  color: var(--ink);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.asset-bar-track {
  height: 17px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  overflow: hidden;
}

.asset-bar-total {
  display: flex;
  height: 100%;
  min-width: 3px;
  border-radius: inherit;
  overflow: hidden;
  transition: width 260ms ease;
}

.asset-segment {
  display: block;
  height: 100%;
}

.asset-sse {
  background: var(--brand);
}

.asset-szse {
  background: var(--amber);
}

.cycle-chart {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 214px;
  padding-top: 6px;
}

.cycle-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cycle-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-2);
  font-size: 12.5px;
}

.cycle-head b {
  color: var(--ink);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.cycle-track {
  height: 15px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.cycle-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  transition: width 260ms ease;
}

.cycle-row:nth-child(2) .cycle-track i {
  background: var(--blue);
}

.cycle-row:nth-child(3) .cycle-track i {
  background: var(--amber);
}

.cycle-row:nth-child(4) .cycle-track i {
  background: var(--green);
}

.cycle-count {
  color: var(--muted);
  font-size: 11.5px;
  text-align: right;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

.filter-bar label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.filter-bar input,
.filter-bar select {
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.list-meta {
  color: var(--muted);
  font-size: 12.5px;
}

.data-table {
  min-width: 980px;
  font-size: 13px;
}

.pricing-table {
  /* 10 列全部塞进面板宽度：固定表格布局 + 上面 colgroup 给的百分比列宽，
     长文本（项目简称、询价结果）在单元格内换行，不再横向溢出把末列切掉。 */
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  font-size: 12.5px;
}

.pricing-table.data-table th,
.pricing-table.data-table td {
  padding: 7px 8px;
  vertical-align: top;
}

.pricing-table td {
  overflow-wrap: anywhere;
}

/* 发行定价位置气泡图 */
.bubble-chart {
  position: relative;
  min-height: 340px;
}

.bubble-chart svg {
  width: 100%;
  height: auto;
  display: block;
}

.bubble-grid {
  stroke: var(--line-soft);
  stroke-width: 1;
}

.bubble-axis {
  stroke: var(--ink-2);
  stroke-width: 1.4;
  stroke-dasharray: 4 4;
}

.bubble-tick {
  fill: var(--muted);
  font-size: 11px;
}

.bubble-axis-label {
  fill: var(--ink-2);
  font-size: 11px;
  font-weight: 700;
}

.bubble-dot {
  cursor: pointer;
  transition: fill-opacity 120ms ease;
}

.bubble-dot:hover {
  fill-opacity: 1;
  stroke: var(--ink);
  stroke-width: 2;
}

.bubble-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.bubble-legend-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bubble-legend em {
  font-style: normal;
}

.bubble-gradient {
  width: 120px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, hsl(140 72% 42%), hsl(70 72% 42%), hsl(0 72% 42%));
}

.bubble-size {
  display: inline-block;
  border-radius: 50%;
  background: var(--ink-2);
  opacity: 0.7;
}

.bubble-size-sm {
  width: 8px;
  height: 8px;
}

.bubble-size-lg {
  width: 18px;
  height: 18px;
}

.bubble-tip {
  position: fixed;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 190px;
  max-width: calc(100vw - 24px);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink-2);
  font-size: 12px;
  pointer-events: none;
  transform: translate(-50%, -100%);
}

.bubble-tip[hidden] {
  display: none;
}

.bubble-tip b {
  color: var(--ink);
  font-size: 13px;
}

/* 数值列表头（带 .num）默认 nowrap，会把末列顶出表格；表头允许换行。 */
.pricing-table.data-table th {
  white-space: normal;
  overflow-wrap: anywhere;
}

/* 窄屏放不下 10 列时，恢复自适应列宽并允许横向滚动，避免把文字压成竖排。 */
@media (max-width: 900px) {
  .pricing-table {
    table-layout: auto;
    min-width: 900px;
  }
}

.pricing-table .up {
  color: var(--red);
  font-weight: 700;
}

.pricing-table .down {
  color: var(--green);
  font-weight: 700;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12.5px;
}

.data-table th,
.data-table td {
  padding: 9px 12px;
}

.data-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.data-table .name {
  font-weight: 650;
}

.data-table .date {
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.status-tag {
  display: inline-block;
  padding: 1px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.status-tag.applied { border-color: var(--blue); color: var(--blue); }
.status-tag.inquiry { border-color: var(--amber); color: var(--amber); }
.status-tag.sealed { border-color: var(--brand); color: var(--brand); }

/* 公告列表 */
.ann-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.ann-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--line-soft);
}

.ann-item:last-child {
  border-bottom: 0;
}

.ann-item:hover {
  background: var(--surface-2);
}

.ann-date {
  flex: 0 0 88px;
  color: var(--muted);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.ann-body {
  flex: 1;
  min-width: 0;
}

.ann-body a {
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.6;
}

.ann-body a:hover {
  color: var(--brand);
}

.ann-tags {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 11.5px;
}

.ann-tags span {
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
}

/* 权益日历 */
.month-group {
  margin-bottom: 18px;
}

.month-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 10px;
  padding-left: 12px;
  border-left: 4px solid var(--brand);
}

.month-head b {
  font-size: 15px;
}

.month-head span {
  color: var(--muted);
  font-size: 12.5px;
}

.event-item {
  display: grid;
  grid-template-columns: 92px 66px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 9px 15px;
  border-bottom: 1px solid var(--line-soft);
}

.event-item:last-child {
  border-bottom: 0;
}

.event-date {
  color: var(--ink-2);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.event-type {
  font-size: 11.5px;
  font-weight: 800;
  text-align: center;
  border-radius: 999px;
  padding: 1px 0;
}

.event-type.dividend {
  color: var(--red);
  border: 1px solid var(--red);
}

.event-type.unlock {
  color: var(--blue);
  border: 1px solid var(--blue);
}

.event-body {
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.6;
}

.event-body b {
  color: var(--ink);
}

.data-note {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}

.data-note a {
  color: var(--brand);
}

@media (max-width: 720px) {
  .page.data-page {
    padding: 18px 14px 26px;
  }

  .pipeline-insights {
    grid-template-columns: minmax(0, 1fr);
  }

  .chart-panel {
    min-height: 0;
  }

  .funnel-row {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .chart-panel-head {
    flex-direction: column;
    min-height: 0;
  }

  .chart-head-tools {
    width: 100%;
    justify-content: space-between;
  }

  .bubble-chart {
    overflow-x: auto;
    overflow-y: hidden;
  }

  .bubble-chart svg {
    width: 760px;
    min-width: 760px;
  }

  .event-item {
    grid-template-columns: 82px 58px minmax(0, 1fr);
    gap: 8px;
  }

  .ann-item {
    flex-direction: column;
    gap: 4px;
  }

  .filter-bar label {
    flex: 1 1 130px;
    min-width: 0;
  }
}
