/* IPO 情报 · 列表卡片（青蓝科技风） */
:root {
  --ipo-accent: #22d3ee;
  --ipo-accent-soft: rgba(34, 211, 238, 0.12);
  --ipo-accent-border: rgba(34, 211, 238, 0.32);
}

.ipo-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ipo-card {
  position: relative;
  border-radius: 14px;
  padding: 16px 18px 14px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(17, 24, 39, 0.88));
  border: 1px solid rgba(34, 211, 238, 0.18);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.ipo-card:hover {
  border-color: rgba(34, 211, 238, 0.42);
  transform: translateY(-1px);
}

.ipo-card__scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(34, 211, 238, 0.05) 48%, transparent 100%);
  transform: translateY(-120%);
  animation: ipo-scan 6s linear infinite;
  pointer-events: none;
}

@keyframes ipo-scan {
  0% { transform: translateY(-120%); }
  100% { transform: translateY(120%); }
}

.ipo-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.ipo-card__board {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  color: #e0f2fe;
  background: var(--ipo-accent-soft);
  border: 1px solid var(--ipo-accent-border);
}

.ipo-card__level {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
}

.ipo-card__stars { display: inline-flex; gap: 2px; }
.ipo-card__star { color: rgba(255, 255, 255, 0.15); font-size: 12px; }
.ipo-card__star.is-on { color: var(--ipo-accent); }

.ipo-card__company {
  font-size: 12px;
  font-weight: 700;
  color: var(--ipo-accent);
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.ipo-card__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  color: #f8fafc;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.ipo-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.ipo-card__tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
}

.ipo-card__tag--l1 {
  color: #67e8f9;
  background: var(--ipo-accent-soft);
  border: 1px solid var(--ipo-accent-border);
}

.ipo-card__tag--l2 {
  color: #c4b5fd;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.ipo-card__metric {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
  position: relative;
  z-index: 1;
}

.ipo-card__metric-k { color: rgba(255, 255, 255, 0.38); }
.ipo-card__metric-v { color: #e2e8f0; font-weight: 600; }

.ipo-card__summary {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(226, 232, 240, 0.78);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.ipo-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.ipo-card__time {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.ipo-card__cta {
  font-size: 12px;
  font-weight: 700;
  color: var(--ipo-accent);
}

.section-title-icon--ipo { color: var(--ipo-accent); }

.sidebar-nav-item.is-active--ipo {
  background: var(--ipo-accent-soft);
  border-color: var(--ipo-accent-border);
}
.sidebar-nav-item.is-active--ipo::before { background: var(--ipo-accent); }
.sidebar-nav-item.is-active--ipo .sidebar-nav-item__name { color: #67e8f9; }

/* IPO 情报 · Hub 内阅读页（结构对齐融资情报，配色青蓝） */
.ipo-reader__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.ipo-reader__back {
  appearance: none;
  border: none;
  background: none;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 600;
  color: rgba(34, 211, 238, 0.92);
  cursor: pointer;
  transition: color 0.2s ease;
}

.ipo-reader__back:hover {
  color: #a5f3fc;
}

.ipo-reader {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 4px 56px;
}

.ipo-reader__title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  line-height: 1.38;
  color: #f8fafc;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.ipo-reader__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ipo-reader__level {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ipo-reader__level-k {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.9);
}

.ipo-reader__board {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #67e8f9;
  border: 1px solid var(--ipo-accent-border);
  background: var(--ipo-accent-soft);
}

.ipo-reader__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ipo-reader__tag {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.ipo-reader__tag--l1 {
  color: #67e8f9;
  background: var(--ipo-accent-soft);
  border: 1px solid var(--ipo-accent-border);
}

.ipo-reader__tag--l2 {
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.ipo-reader__time {
  font-size: 13px;
  color: rgba(148, 163, 184, 0.85);
  margin-left: auto;
}

.ipo-reader__body {
  color: rgba(226, 232, 240, 0.92);
}

.ipo-reader__deputy,
.ipo-detail__deputy {
  margin: 0 0 26px;
}

.ipo-reader__deputy-panel,
.ipo-detail__deputy-panel {
  margin: 0;
  padding: 16px 18px 18px;
  border-radius: 14px;
  border: 1px solid rgba(245, 158, 11, 0.16);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(245, 158, 11, 0.09) 0%, transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.012) 100%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.ipo-reader__deputy-panel:not([open]),
.ipo-detail__deputy-panel:not([open]) {
  padding-bottom: 16px;
}

.ipo-reader__deputy-head,
.ipo-detail__deputy-head {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.ipo-reader__deputy-head::-webkit-details-marker,
.ipo-detail__deputy-head::-webkit-details-marker {
  display: none;
}

.ipo-reader__deputy-head::marker,
.ipo-detail__deputy-head::marker {
  content: '';
}

.ipo-reader__deputy-panel[open] .ipo-reader__deputy-head,
.ipo-detail__deputy-panel[open] .ipo-detail__deputy-head {
  margin-bottom: 14px;
}

.ipo-reader__deputy-head-main,
.ipo-detail__deputy-head-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.ipo-reader__deputy-badge,
.ipo-detail__deputy-badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #78350f;
  background: linear-gradient(135deg, #fde68a 0%, #fbbf24 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset;
}

.ipo-reader__deputy-k,
.ipo-detail__deputy-k {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ipo-reader__deputy-meta,
.ipo-detail__deputy-meta {
  flex: 0 0 auto;
  font-size: 12px;
  color: rgba(148, 163, 184, 0.82);
}

.ipo-reader__deputy-toggle,
.ipo-detail__deputy-toggle {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  position: relative;
  opacity: 0.7;
}

.ipo-reader__deputy-toggle::before,
.ipo-detail__deputy-toggle::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid rgba(251, 191, 36, 0.85);
  border-bottom: 1.5px solid rgba(251, 191, 36, 0.85);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.ipo-reader__deputy-panel[open] .ipo-reader__deputy-toggle::before,
.ipo-detail__deputy-panel[open] .ipo-detail__deputy-toggle::before {
  top: 6px;
  transform: rotate(-135deg);
}

.ipo-reader__deputy-body,
.ipo-detail__deputy-body {
  min-width: 0;
}

.ipo-reader__deputy-t,
.ipo-detail__deputy-t {
  margin: 0;
  font-size: 12px;
  line-height: 1.72;
  color: rgba(203, 213, 225, 0.88);
  font-weight: 400;
}

.ipo-reader__deputy-changes,
.ipo-detail__deputy-changes {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.ipo-reader__deputy-changes-k,
.ipo-detail__deputy-changes-k {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(100, 116, 139, 0.72);
  margin-bottom: 10px;
}

.ipo-reader__deputy-log,
.ipo-detail__deputy-log {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ipo-reader__deputy-change,
.ipo-detail__deputy-change {
  display: grid;
  grid-template-columns: minmax(72px, 140px) minmax(0, 1fr);
  align-items: flex-start;
  gap: 10px;
  padding: 9px 11px;
  margin: 0 0 8px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.ipo-reader__deputy-change:last-child,
.ipo-detail__deputy-change:last-child {
  margin-bottom: 0;
}

.ipo-reader__deputy-change-k,
.ipo-detail__deputy-change-k {
  flex: 0 0 auto;
  max-width: 100%;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(100, 116, 139, 0.78);
}

.ipo-reader__deputy-change-v,
.ipo-detail__deputy-change-v {
  flex: 1 1 180px;
  min-width: 0;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(100, 116, 139, 0.78);
}

.ipo-reader__deputy-change--plain,
.ipo-detail__deputy-change--plain {
  display: block;
  padding-left: 12px;
}

.ipo-reader__deputy-change--plain .ipo-reader__deputy-change-v,
.ipo-detail__deputy-change--plain .ipo-detail__deputy-change-v {
  flex: 1 1 100%;
}

.ipo-reader .ipo-detail__section {
  margin-bottom: 28px;
}

.ipo-reader .ipo-detail__section-title {
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 10px;
  padding-left: 12px;
  border-left: 3px solid #22d3ee;
}

.ipo-reader .ipo-detail__section-body .ipo-detail__section-text {
  display: block;
  margin: 0 0 1em;
}

.ipo-reader .ipo-detail__section-body .ipo-detail__section-text:last-child {
  margin-bottom: 0;
}

.ipo-reader .ipo-detail__section-text {
  font-size: 16px;
  line-height: 1.82;
  color: rgba(226, 232, 240, 0.88);
  white-space: pre-wrap;
}

.ipo-reader .ipo-detail__sources {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ipo-reader .ipo-detail__paywall {
  margin-top: 24px;
}

.ipo-detail__stars {
  display: inline-flex;
  gap: 2px;
}

.ipo-detail__star {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.16);
}

.ipo-detail__star.is-on {
  color: #22d3ee;
  text-shadow: 0 0 8px rgba(34, 211, 238, 0.45);
}

.ipo-detail__sources-k {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(148, 163, 184, 0.9);
}

.ipo-detail__source-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ipo-detail__source-list a {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: #67e8f9;
  word-break: break-all;
  text-decoration: none;
}

.ipo-detail__source-list a:hover {
  color: #a5f3fc;
  text-decoration: underline;
}

.ipo-detail__paywall {
  margin: 4px 0 8px;
  padding: 18px 16px;
  border-radius: 12px;
  border: 1px dashed var(--ipo-accent-border);
  background: var(--ipo-accent-soft);
  text-align: center;
}

.ipo-detail__paywall p {
  margin: 0 0 12px;
  font-size: 14px;
  color: rgba(103, 232, 249, 0.92);
}

.ipo-detail__paywall-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--ipo-accent-border);
  background: rgba(34, 211, 238, 0.14);
  color: #a5f3fc;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.ipo-detail__paywall-btn:hover {
  background: rgba(34, 211, 238, 0.22);
}

.ipo-detail__loading,
.ipo-detail__error {
  padding: 48px 24px;
  text-align: center;
  color: rgba(148, 163, 184, 0.95);
  font-size: 14px;
}

.ipo-detail__error {
  color: #fca5a5;
}

@media (max-width: 720px) {
  .ipo-reader {
    padding-bottom: 40px;
  }

  .ipo-reader__time {
    margin-left: 0;
    width: 100%;
  }

  .ipo-reader .ipo-detail__section-text {
    font-size: 15px;
    line-height: 1.78;
  }
}
