:root {
  /* Google Material Design 3 蓝白主题 */
  --g-blue: #1a73e8;
  --g-blue-hover: #1557b0;
  --g-blue-soft: #e8f0fe;
  --g-blue-tint: #f8faff;
  --g-green: #1e8e3e;
  --g-green-soft: #e6f4ea;
  --g-red: #d93025;
  --g-red-soft: #fce8e6;
  --g-yellow: #b06000;
  --g-yellow-soft: #fef7e0;

  --text-primary: #202124;
  --text-secondary: #5f6368;
  --text-muted: #70757a;
  --border-light: #e8eaed;
  --border-medium: #dadce0;
  --surface-page: #ffffff;
  --surface-subtle: #f8f9fa;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --shadow-search: 0 1px 6px rgba(32, 33, 36, 0.12);
  --shadow-search-hover: 0 2px 10px rgba(32, 33, 36, 0.16);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Google Sans", "Roboto", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  background-color: var(--surface-page);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ==================== 顶部极简 Google 导航栏 ==================== */
.top-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: block;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.25);
  transition: transform 0.2s ease;
}

.brand-wrap:hover .brand-logo-img {
  transform: translateY(-1px) scale(1.03);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.top-nav::-webkit-scrollbar {
  display: none;
}

.top-nav-item {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  padding: 19px 2px;
  position: relative;
  cursor: pointer;
  font-weight: 500;
  transition: color 0.15s;
}

.top-nav-item:hover {
  color: var(--text-primary);
}

.top-nav-item.active {
  color: var(--g-blue);
  font-weight: 600;
}

.top-nav-item.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--g-blue);
  border-radius: 3px 3px 0 0;
}

.badge-new {
  display: inline-block;
  font-size: 10px;
  background: var(--g-blue-soft);
  color: var(--g-blue);
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 4px;
  vertical-align: 1px;
  font-weight: 600;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.source-pill {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.source-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--g-green);
}

.source-dot.demo {
  background: #f9ab00;
}

/* ==================== 主体容器与二级 Tab ==================== */
.main-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 24px 60px;
}

.page-title-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.page-title {
  font-size: 26px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.page-title-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  background: var(--g-blue-soft);
  border: 1px solid #c6dafc;
  color: var(--g-blue);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.2px;
  box-shadow: 0 1px 2px rgba(26, 115, 232, 0.08);
}

.data-hint {
  font-size: 12.5px;
  color: var(--text-muted);
}

.sub-tabs-shell {
  background: linear-gradient(180deg, #f3f6fc 0%, #eef3fb 100%);
  border: 1px solid #e1e8f5;
  border-radius: 14px;
  padding: 5px;
  margin-bottom: 24px;
  box-shadow: inset 0 1px 2px rgba(26, 115, 232, 0.04);
}

.sub-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.sub-tabs::-webkit-scrollbar {
  display: none;
}

.sub-tab {
  padding: 8px 15px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
}

.sub-tab svg {
  opacity: 0.72;
  transition: transform 0.2s, opacity 0.2s;
}

.sub-tab:hover {
  color: var(--g-blue);
  background: rgba(255, 255, 255, 0.65);
}

.sub-tab:hover svg {
  opacity: 1;
}

.sub-tab.active {
  color: var(--g-blue);
  font-weight: 600;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.14), 0 1px 2px rgba(15, 23, 42, 0.05);
}

.sub-tab.active svg {
  opacity: 1;
  color: var(--g-blue);
}

.mobile-filter-toggle {
  display: none;
}

/* ==================== 全景图 ==================== */
.market-filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.market-label {
  font-size: 13px;
  color: var(--text-muted);
}

.segmented-group {
  display: inline-flex;
  background: #f1f3f4;
  padding: 3px;
  border-radius: var(--radius-pill);
  gap: 2px;
}

.seg-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

.seg-btn:hover {
  color: var(--text-primary);
}

.seg-btn.active {
  background: #fff;
  color: var(--g-blue);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(32, 33, 36, 0.12);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-title-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: "";
  display: inline-block;
  width: 3.5px;
  height: 16px;
  background: var(--g-blue);
  border-radius: 2px;
}

.overview-top-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 28px;
}

.map-panel {
  position: relative;
  min-height: 410px;
  display: flex;
  flex-direction: column;
}

.chart-canvas-map {
  width: 100%;
  height: 410px;
}

.map-fallback-tip {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.92);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
}

/* 统计矩阵表格（Google 清爽卡片） */
.matrix-card {
  background: #fff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.06);
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 14px;
}

.matrix-table thead th {
  background: var(--surface-subtle);
  color: var(--text-secondary);
  font-weight: 600;
  padding: 14px 10px;
  border-bottom: 1px solid var(--border-light);
}

.matrix-table tbody td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
}

.matrix-table tbody tr:last-child td {
  border-bottom: none;
  background: var(--g-blue-tint);
  font-weight: 600;
}

.matrix-table tbody td:first-child {
  color: var(--text-secondary);
  font-weight: 500;
}

.matrix-num {
  color: var(--g-blue);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.matrix-num.clickable {
  cursor: pointer;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  transition: background 0.15s, color 0.15s;
}

.matrix-num.clickable:hover {
  background: var(--g-blue);
  color: #fff;
}

.matrix-num.zero {
  color: #bdc1c6;
  font-weight: 400;
}

.matrix-footnote {
  padding: 9px 14px;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--surface-subtle);
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
}

.overview-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.panel-card {
  background: #fff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.05);
}

.panel-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 10px;
}

.radio-group {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

.radio-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.radio-label input[type="radio"] {
  accent-color: var(--g-blue);
  cursor: pointer;
}

.chart-canvas-rank {
  width: 100%;
  height: 390px;
}

/* ==================== 审核动态：精简高效 Google 搜索筛选区 ==================== */
.filter-minimal {
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 搜索栏吸顶容器：滚动到顶部导航栏下方时固定吸附，表格内容从下方平滑滑过 */
.sticky-search-shell {
  position: sticky;
  top: 60px;
  z-index: 90;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  margin: 4px -24px 14px;
  padding: 12px 24px;
  border-bottom: 1px solid rgba(232, 234, 237, 0.85);
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 13.5px;
  color: var(--text-secondary);
  width: 60px;
  flex-shrink: 0;
  font-weight: 500;
  white-space: nowrap;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}

/* 无边框清爽文本选项（对标图二 + Google 胶囊选中态） */
.chip-btn {
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 13.5px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}

.chip-btn:hover {
  background: var(--surface-subtle);
  color: var(--g-blue);
}

.chip-btn.active {
  background: var(--g-blue);
  color: #fff;
  font-weight: 500;
}

.chip-count {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 3px;
}

.chip-btn.active .chip-count {
  color: rgba(255, 255, 255, 0.86);
}

/* 突出 Google 风格大号胶囊搜索栏 */
.search-hero-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 0;
  flex-wrap: wrap;
}

.google-search-wrap {
  flex: 1;
  min-width: 280px;
  height: 46px;
  background: #fff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 10px;
  box-shadow: var(--shadow-search);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.google-search-wrap:hover {
  box-shadow: var(--shadow-search-hover);
}

.google-search-wrap:focus-within {
  border-color: var(--g-blue);
  box-shadow: 0 1px 8px rgba(26, 115, 232, 0.22);
}

.search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.google-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14.5px;
  color: var(--text-primary);
  background: transparent;
  font-family: inherit;
}

.google-search-input::placeholder {
  color: #80868b;
}

.search-clear-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 50%;
}

.search-clear-btn:hover {
  background: #f1f3f4;
  color: var(--text-primary);
}

.action-btn {
  height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-medium);
  background: #fff;
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.action-btn:hover {
  background: var(--surface-subtle);
  border-color: #c4c7c5;
}

.action-btn.active-toggle {
  background: var(--g-blue-soft);
  border-color: var(--g-blue-soft);
  color: var(--g-blue);
}

.action-btn.primary {
  background: var(--g-blue);
  border-color: var(--g-blue);
  color: #fff;
}

.action-btn.primary:hover {
  background: var(--g-blue-hover);
  box-shadow: 0 1px 4px rgba(26, 115, 232, 0.35);
}

.action-btn.sm {
  height: 34px;
  padding: 0 14px;
  font-size: 13px;
}

.action-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* 可折叠的高级筛选抽屉 */
.advanced-drawer {
  margin-top: 4px;
  padding: 12px 16px;
  background: var(--surface-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.select-control {
  height: 36px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 0 30px 0 12px;
  font-size: 13px;
  color: var(--text-primary);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235f6368' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 12px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.select-control:hover {
  border-color: #93c5fd;
}

.select-control:focus {
  border-color: var(--g-blue);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12);
}

/* ==================== 数据表格 ==================== */
.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.table-wrap {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow-x: auto;
  background: #fff;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.03);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 980px;
}

.data-table thead th {
  background: linear-gradient(180deg, #f8faff 0%, #f1f5fd 100%);
  color: #475569;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.2px;
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.data-table tbody td {
  padding: 14px 12px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text-primary);
  vertical-align: middle;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr.clickable-row {
  cursor: pointer;
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

.data-table tbody tr.clickable-row:hover {
  background: linear-gradient(90deg, #f0f6ff 0%, #f8fbff 100%);
  box-shadow: inset 3px 0 0 var(--g-blue);
}

.row-index-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 7px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.data-table tbody tr:hover .row-index-badge {
  background: var(--g-blue-soft);
  color: var(--g-blue);
}

.company-link {
  color: #0f172a;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}

.company-industry {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 3px;
}

.data-table tbody tr:hover .company-link {
  color: var(--g-blue);
}

/* 5 大板块差异化高级配色 */
.board-tag {
  display: inline-block;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--g-blue-soft);
  color: var(--g-blue);
  font-weight: 600;
  white-space: nowrap;
}

.board-沪主板 { background: #e8f0fe; color: #1967d2; }
.board-深主板 { background: #e0f2fe; color: #0369a1; }
.board-科创板 { background: #eef2ff; color: #4f46e5; }
.board-创业板 { background: #ecfeff; color: #0e7490; }
.board-北证   { background: #fff7ed; color: #c2410c; }

/* 审核状态带圆点胶囊 */
.stage-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  white-space: nowrap;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.stage-受理 { background: #e8f0fe; color: #1967d2; }
.stage-问询 { background: #fef7e0; color: #b06000; }
.stage-上市委 { background: #f3e8fd; color: #7627bb; }
.stage-提交注册 { background: #e6f4ea; color: #137333; }
.stage-注册同意 { background: #e6f4ea; color: #137333; }
.stage-中止 { background: #f1f3f4; color: #5f6368; }
.stage-终止 { background: #fce8e6; color: #c5221f; }

.date-cell {
  white-space: nowrap;
  color: #334155;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}

.date-cell.muted {
  color: #64748b;
}

/* 底部分页栏（含每页条数切换） */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.page-size-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.page-size-select {
  height: 34px;
  min-width: 88px;
  border-radius: 8px;
  padding: 0 28px 0 12px;
  text-align: center;
  text-align-last: center;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  background-position: right 10px center;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.page-info {
  font-size: 13px;
  color: var(--text-muted);
  margin-right: 4px;
  font-variant-numeric: tabular-nums;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.page-num-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.page-num-btn:hover {
  background: var(--surface-subtle);
  color: var(--g-blue);
}

.page-num-btn.active {
  border-color: var(--g-blue);
  background: var(--g-blue-soft);
  color: var(--g-blue);
  font-weight: 600;
}

.page-ellipsis {
  min-width: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  user-select: none;
}

/* ==================== 项目详情页（Google 清爽风 · 与上方严格等宽对齐 + Banner 吸顶） ==================== */
.detail-view {
  background: var(--surface-subtle);
  margin: 16px 0 0;
  padding-bottom: 36px;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  min-height: calc(100vh - 220px);
}

.detail-banner {
  position: sticky;
  top: 60px;
  z-index: 90;
  background: linear-gradient(135deg, #f8faff 0%, #e8f0fe 100%);
  padding: 18px 24px;
  border-bottom: 1px solid #d2e3fc;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.06);
}

.detail-banner-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.detail-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.back-btn {
  border: 1px solid #c6dafc;
  background: #fff;
  color: var(--g-blue);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

.back-btn:hover {
  background: var(--g-blue);
  border-color: var(--g-blue);
  color: #fff;
}

.detail-company-name {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
}

.detail-badge {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--g-blue);
  border: 1px solid #d2e3fc;
  font-weight: 500;
}

.live-status-pill {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.timeline-strip {
  background: #fff;
  padding: 28px 24px 26px;
  border-bottom: 1px solid var(--border-light);
}

.timeline-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
}

.timeline-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  text-align: center;
}

.timeline-label {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.timeline-date {
  font-size: 12.5px;
  color: var(--text-muted);
  height: 20px;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}

/* 圆圈与连接线放入同一轨道容器，确保横线永远严格穿过圆心 */
.timeline-track {
  position: relative;
  width: 100%;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-step:not(:last-child) .timeline-track::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: calc(50% + 18px);
  right: calc(-50% + 18px);
  height: 3.5px;
  background: #e0e3e7;
  border-radius: 2px;
  z-index: 1;
}

.timeline-step.done:not(:last-child) .timeline-track::after {
  background: var(--g-green);
}

.timeline-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #dadce0;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  position: relative;
  z-index: 2;
}

.timeline-step.done .timeline-circle {
  background: var(--g-green);
  box-shadow: 0 0 0 4px rgba(30, 142, 62, 0.14);
}

.detail-body {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 24px 0;
}

.detail-tabs {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.detail-tab {
  border: none;
  background: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 2px 10px;
  cursor: pointer;
  position: relative;
}

.detail-tab.active {
  color: var(--g-blue);
  font-weight: 600;
}

.detail-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--g-blue);
  border-radius: 3px 3px 0 0;
}

.detail-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.05);
  margin-bottom: 18px;
}

.detail-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 40px;
}

.info-item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f3f4;
}

.info-label {
  width: 108px;
  flex-shrink: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.info-value {
  font-size: 13.5px;
  color: var(--text-primary);
  word-break: break-word;
  flex: 1;
}

.info-value.highlight {
  color: var(--g-blue);
  font-weight: 600;
}

.info-value a {
  color: var(--g-blue);
  text-decoration: none;
  font-weight: 500;
}

.info-value a:hover {
  text-decoration: underline;
}

.doc-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.doc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color 0.15s, background 0.15s;
}

.doc-row:hover {
  border-color: #c6dafc;
  background: var(--g-blue-tint);
}

.doc-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.doc-cat {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--g-blue-soft);
  color: var(--g-blue);
  font-weight: 500;
  white-space: nowrap;
}

.doc-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.doc-link:hover {
  color: var(--g-blue);
  text-decoration: underline;
}

.doc-date {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.detail-notice {
  background: var(--g-yellow-soft);
  border: 1px solid #fdd663;
  color: var(--g-yellow);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 12.5px;
  margin-bottom: 16px;
}

.placeholder-card {
  border: 1px dashed var(--border-medium);
  background: var(--surface-subtle);
  border-radius: var(--radius-md);
  padding: 48px 24px;
  text-align: center;
  max-width: 720px;
  margin: 24px auto;
}

.placeholder-card h3 {
  font-size: 18px;
  color: var(--g-blue);
  margin-bottom: 10px;
}

.placeholder-card p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 14px;
}

.placeholder-meta {
  display: inline-block;
  font-size: 12px;
  color: var(--text-muted);
  background: #fff;
  border: 1px solid var(--border-light);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.hidden {
  display: none !important;
}

/* ==================== 响应式适配 ==================== */
@media (max-width: 960px) {
  .overview-top-grid,
  .overview-bottom-grid {
    grid-template-columns: 1fr;
  }
  .top-nav {
    display: none;
  }
}

@media (max-width: 820px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .top-header-inner {
    padding: 0 12px;
    height: 54px;
    gap: 8px;
  }

  .brand-sub {
    display: none;
  }

  .brand-title {
    font-size: 15px;
  }

  .source-pill {
    font-size: 11px;
    padding: 3px 8px;
    white-space: nowrap;
  }

  .main-container {
    padding: 16px 12px 40px;
  }

  .page-title {
    font-size: 20px;
  }

  .page-title-pill {
    font-size: 12px;
    padding: 3px 10px;
  }

  .sub-tabs-shell {
    padding: 5px;
    margin-bottom: 12px;
  }

  .sub-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-bottom: 0;
    overflow-x: visible;
  }

  .sub-tab {
    justify-content: center;
    font-size: 12.5px;
    padding: 7px 4px;
    gap: 4px;
  }

  .sub-tab svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
  }

  .mobile-filter-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 8px;
    background: #f8faff;
    border: 1px solid #d2e3fc;
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    gap: 8px;
  }

  .mobile-filter-toggle-left {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    color: var(--g-blue);
    font-weight: 600;
  }

  .mobile-filter-summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    font-size: 12px;
    color: var(--text-secondary);
  }

  .mobile-filter-summary-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 170px;
  }

  .mobile-filter-arrow {
    color: var(--g-blue);
    font-weight: 600;
    flex-shrink: 0;
  }

  .filter-minimal {
    background: #fafcff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 10px;
  }

  .filter-minimal.mobile-collapsed {
    display: none;
  }

  .section-title {
    font-size: 14.5px;
  }

  .map-panel {
    min-height: 310px;
  }

  .chart-canvas-map {
    height: 310px;
  }

  .matrix-card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .matrix-table {
    font-size: 12px;
    min-width: 336px;
  }

  .matrix-table thead th,
  .matrix-table tbody td {
    padding: 10px 4px;
    white-space: nowrap;
  }

  .matrix-num.clickable {
    padding: 2px 5px;
  }

  .matrix-footnote {
    flex-direction: column;
    gap: 3px;
    padding: 8px 10px;
    font-size: 11px;
  }

  .panel-card {
    padding: 14px 12px;
  }

  .panel-card-header {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .radio-group {
    gap: 12px;
    font-size: 12.5px;
  }

  .chart-canvas-rank {
    height: 340px;
  }

  .filter-label {
    width: 100%;
    margin-bottom: -4px;
  }

  .sticky-search-shell {
    top: 54px;
    margin: 4px -12px 12px;
    padding: 10px 12px;
  }

  .google-search-wrap {
    min-width: 100%;
    height: 44px;
  }

  .search-hero-bar .action-btn {
    flex: 1;
    justify-content: center;
    height: 40px;
  }

  .detail-view {
    margin: 12px 0 0;
  }

  .detail-banner {
    top: 54px;
    padding: 14px 12px;
  }

  .detail-company-name {
    font-size: 17px;
  }

  .timeline-strip {
    padding: 18px 8px;
  }

  .timeline-label {
    font-size: 12px;
  }

  .timeline-date {
    font-size: 10px;
    height: 16px;
    margin-bottom: 8px;
  }

  .timeline-track {
    height: 22px;
  }

  .timeline-circle {
    width: 20px;
    height: 20px;
    font-size: 11px;
  }

  .timeline-step:not(:last-child) .timeline-track::after {
    left: calc(50% + 13px);
    right: calc(-50% + 13px);
    height: 3px;
  }

  .detail-body {
    padding: 14px 12px 0;
  }

  .detail-card {
    padding: 16px 14px;
  }

  .info-label {
    width: 88px;
    font-size: 12.5px;
  }

  .info-value {
    font-size: 13px;
  }

  .doc-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .doc-left {
    width: 100%;
  }

  .pagination-bar {
    justify-content: center;
    gap: 10px;
  }

  .pagination {
    justify-content: center;
    gap: 6px;
  }

  .page-num-btn {
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    font-size: 12px;
  }

  .page-ellipsis {
    min-width: 18px;
    font-size: 12px;
  }
}

/* ==================== 二期：上市委审议 & 发行动态 KPI 与语义标签 ==================== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.kpi-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
  position: relative;
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(26, 115, 232, 0.08);
}

.kpi-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3.5px;
  background: var(--g-blue);
}

.kpi-card.kpi-green::before { background: var(--g-green); }
.kpi-card.kpi-amber::before { background: #f59e0b; }
.kpi-card.kpi-red::before   { background: var(--g-red); }

.kpi-label {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 8px;
}

.kpi-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.kpi-card.kpi-blue .kpi-value  { color: var(--g-blue); }
.kpi-card.kpi-green .kpi-value { color: var(--g-green); }
.kpi-card.kpi-amber .kpi-value { color: #d97706; }
.kpi-card.kpi-red .kpi-value   { color: var(--g-red); }

.kpi-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* 审议结果 & 发行状态标签 */
.res-上会通过 { background: #e6f4ea; color: #137333; }
.res-暂缓表决 { background: #fef7e0; color: #b06000; }
.res-未通过   { background: #fce8e6; color: #c5221f; }
.res-取消审核 { background: #f1f3f4; color: #5f6368; }
.res-待上会   { background: #e8f0fe; color: #1967d2; }

.iss-待申购 { background: #e8f0fe; color: #1967d2; }
.iss-申购中 { background: #f3e8fd; color: #7627bb; }
.iss-待上市 { background: #fef7e0; color: #b06000; }
.iss-已上市 { background: #e6f4ea; color: #137333; }

.num-cell {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-weight: 500;
  color: #1e293b;
}

.chg-up {
  color: #d93025;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.chg-down {
  color: #1e8e3e;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.stock-code-pill {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--g-blue);
  background: var(--g-blue-soft);
  padding: 1px 6px;
  border-radius: 5px;
  margin-right: 6px;
}

.member-cell {
  font-size: 12.5px;
  color: #5f6368;
  max-width: 210px;
  line-height: 1.45;
}

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

@media (max-width: 640px) {
  .kpi-card {
    padding: 14px 14px;
  }
  .kpi-value {
    font-size: 21px;
  }
}

/* ==================== 二期第 2 周：总所归并开关 & 辅导备案 & 新三板挂牌 ==================== */
.header-controls-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hq-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface-subtle);
  border: 1px solid var(--border-light);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.hq-toggle:hover {
  border-color: #c6dafc;
  color: var(--g-blue);
  background: var(--g-blue-tint);
}

.hq-toggle input[type="checkbox"] {
  accent-color: var(--g-blue);
  cursor: pointer;
}

.tier-创新层 {
  background: #eef2ff;
  color: #4f46e5;
}

.tier-基础层 {
  background: #f1f5f9;
  color: #475569;
}

.board-沪深   { background: #e8f0fe; color: #1967d2; }
.tut-辅导备案 {
  background: #e8f0fe;
  color: #1967d2;
}

.tut-辅导中期,
.tut-辅导进展 {
  background: #fef7e0;
  color: #b06000;
}

.tut-辅导验收,
.tut-辅导工作完成 {
  background: #e6f4ea;
  color: #137333;
}

.tut-辅导终止,
.tut-撤回辅导备案,
.tut-终止 {
  background: #fce8e6;
  color: #c5221f;
}

.filter-vsep {
  display: inline-block;
  width: 1px;
  height: 18px;
  background: #cbd5e1;
  margin: 0 4px;
}

.tut-bureau-row {
  align-items: flex-start;
}

.tut-bureau-row .filter-label {
  padding-top: 6px;
}

.tut-bureau-wrap {
  flex: 1;
  min-width: 280px;
}

.tut-bureau-more {
  margin-top: 8px;
  padding: 10px 12px;
  background: #f8faff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.chip-expand-btn {
  border: none;
  background: transparent;
  color: var(--g-blue);
  font-size: 13px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.15s;
}

.chip-expand-btn:hover {
  background: var(--g-blue-tint);
}

.sortable-th {
  cursor: pointer;
  user-select: none;
  transition: color 0.15s, background 0.15s;
}

.sortable-th:hover {
  color: var(--g-blue);
}

.sortable-th.active {
  color: var(--g-blue);
}

.sort-arrows {
  font-size: 11px;
  margin-left: 3px;
  opacity: 0.7;
}

.sortable-th.active .sort-arrows {
  opacity: 1;
  font-weight: 700;
}

.tut-inline-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid #f59e0b;
  color: #b45309;
  background: #fff3e0;
  vertical-align: middle;
  box-shadow: 0 1px 2px rgba(245, 158, 11, 0.14);
}

.tut-inline-badge.accepted {
  border-color: #34a853;
  background: #e6f4ea;
  color: #137333;
  box-shadow: 0 1px 2px rgba(19, 115, 51, 0.12);
}

.detail-badge-stage {
  background: #fef7e0;
  border-color: #fde293;
  color: #b06000;
}

.detail-badge-stage.accepted {
  background: #e6f4ea;
  border-color: #a8dab5;
  color: #137333;
}

.detail-badge-stage.terminated {
  background: #fce8e6;
  border-color: #f6aea9;
  color: #c5221f;
}

/* 3 节点进度条：进行中段呈现前半绿、后半灰（复刻图 2） */
.tut-timeline-inner {
  max-width: 900px;
}

.timeline-step.partial:not(:last-child) .timeline-track::after {
  background: linear-gradient(90deg, var(--g-green) 40%, #e0e3e7 40%);
}

.timeline-step.terminated .timeline-circle {
  background: var(--g-red);
  box-shadow: 0 0 0 4px rgba(217, 48, 37, 0.14);
}

/* （二）信息披露 4 列分组表格（复刻图 3） */
.tut-disclosure-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.tut-disclosure-table thead th {
  background: #f1f5f9;
  color: #475569;
  font-weight: 600;
  font-size: 13px;
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  text-align: center;
}

.tut-disclosure-table thead th:nth-child(3) {
  text-align: left;
}

.tut-disclosure-table tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid #f1f3f4;
  color: var(--text-primary);
  vertical-align: middle;
}

.tut-disclosure-table tbody td.cat-cell {
  text-align: center;
  font-weight: 500;
  color: #334155;
  width: 160px;
  background: #fafcff;
  border-right: 1px solid #f1f3f4;
}

.tut-disclosure-table tbody td.idx-cell {
  text-align: center;
  color: var(--text-muted);
  width: 80px;
  font-variant-numeric: tabular-nums;
}

.tut-disclosure-table tbody td.dt-cell {
  text-align: center;
  color: var(--text-secondary);
  width: 140px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.tut-doc-link {
  color: #1a73e8;
  text-decoration: none;
  font-weight: 500;
  line-height: 1.5;
  transition: color 0.15s;
}

.tut-doc-link:hover {
  color: #174ea6;
  text-decoration: underline;
}

.tut-doc-empty {
  color: #cbd5e1;
  font-size: 12.5px;
}

.bureau-pill {
  display: inline-block;
  font-size: 12px;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: #f1f5f9;
  color: #334155;
  font-weight: 500;
  white-space: nowrap;
}

.pdf-title-link {
  color: #1e293b;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.45;
  transition: color 0.15s;
}

.pdf-title-link:hover {
  color: var(--g-blue);
  text-decoration: underline;
}

.pdf-pill {
  font-size: 10.5px;
  font-weight: 700;
  color: #d93025;
  background: #fce8e6;
  padding: 1px 5px;
  border-radius: 4px;
  flex-shrink: 0;
}
