/* ===== 基础重置 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* 主色调 - 金融信息站：深蓝+金色强调 */
  --primary: #0a2540;
  --primary-light: #1a3a5c;
  --primary-dark: #061729;
  --accent-gold: #c9a96e;
  --accent-gold-light: #e0c99c;
  --accent-red: #e03c3c;
  --accent-green: #22c55e;
  --accent-blue: #3b82f6;
  
  /* 中性色 */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  
  /* 字体 */
  --font-sans: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --font-mono: "SF Mono", "JetBrains Mono", "Consolas", monospace;
  
  /* 尺寸 */
  --header-height: 64px;
  --sidebar-width: 260px;
  --content-max-width: 1280px;
  
  /* 阴影 */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== 顶部导航 ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary);
  color: #fff;
  height: var(--header-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-inner {
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 800;
  font-size: 16px;
}

.logo-text {
  font-size: 18px;
  font-weight: 600;
}

.logo-tag {
  font-size: 11px;
  color: var(--accent-gold-light);
  font-weight: 400;
  letter-spacing: 1px;
  margin-left: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  padding: 8px 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.nav-item.active {
  color: #fff;
  background: rgba(255,255,255,0.12);
  font-weight: 500;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box input {
  width: 220px;
  height: 36px;
  padding: 0 12px 0 36px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: all 0.2s;
}

.search-box input::placeholder {
  color: rgba(255,255,255,0.4);
}

.search-box input:focus {
  border-color: var(--accent-gold);
  background: rgba(255,255,255,0.1);
  width: 280px;
}

.search-icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: rgba(255,255,255,0.4);
  pointer-events: none;
}

/* ===== 主内容区 ===== */
.main {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 24px;
}

/* ===== Hero 统计概览 ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-secondary);
  border-radius: 10px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all 0.2s;
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  white-space: nowrap;
}

.stat-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
  line-height: 1.2;
}

.stat-value.gold {
  color: var(--accent-gold);
}

.stat-value.red {
  color: var(--accent-red);
}

.stat-value.green {
  color: var(--accent-green);
}

.stat-sub {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* ===== 页面标题区 ===== */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-title-badge {
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  background: rgba(201, 169, 110, 0.15);
  color: var(--accent-gold);
  border-radius: 20px;
}

/* ===== 筛选工具栏 ===== */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 6px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.filter-chip:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.filter-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.filter-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-select {
  padding: 6px 12px;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  outline: none;
}

/* ===== IPO 列表表格 ===== */
.ipo-table-wrap {
  background: var(--bg-secondary);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.ipo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.ipo-table thead {
  background: var(--bg-tertiary);
}

.ipo-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 12px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  border-bottom: 1px solid var(--border-color);
}

.ipo-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.ipo-table tbody tr {
  cursor: pointer;
  transition: background 0.15s;
}

.ipo-table tbody tr:hover {
  background: var(--bg-tertiary);
}

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

/* 公司信息单元格 */
.company-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.company-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.company-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

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

.company-code {
  font-size: 12px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

/* A1递标标签 */
.a1-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: rgba(201, 169, 110, 0.12);
  color: var(--accent-gold);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.a1-badge.high {
  background: rgba(224, 60, 60, 0.1);
  color: var(--accent-red);
}

.a1-badge.medium {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}

/* 状态标签 */
.status-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.status-tag.listing {
  background: rgba(34, 197, 94, 0.1);
  color: var(--accent-green);
}

.status-tag.pending {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-blue);
}

.status-tag.delisted {
  background: var(--bg-tertiary);
  color: var(--text-tertiary);
}

/* 涨跌幅 */
.change-up {
  color: var(--accent-red);
  font-weight: 600;
  font-family: var(--font-mono);
}

.change-down {
  color: var(--accent-green);
  font-weight: 600;
  font-family: var(--font-mono);
}

.change-flat {
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

.mono {
  font-family: var(--font-mono);
}

/* ===== 双栏布局 ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
}

.main-col {
  min-width: 0;
}

.side-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ===== 侧边卡片 ===== */
.side-card {
  background: var(--bg-secondary);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.side-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.side-card-more {
  font-size: 12px;
  color: var(--accent-gold);
  cursor: pointer;
}

.side-card-body {
  padding: 8px 0;
}

/* A1次数排行 */
.a1-rank-item {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  gap: 12px;
  cursor: pointer;
  transition: background 0.15s;
}

.a1-rank-item:hover {
  background: var(--bg-tertiary);
}

.rank-num {
  width: 20px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

.rank-num.top3 {
  color: var(--accent-gold);
}

.rank-company {
  flex: 1;
  min-width: 0;
}

.rank-company-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-company-date {
  font-size: 11px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  margin-top: 2px;
}

.rank-times {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-gold);
  font-family: var(--font-mono);
}

.rank-times-unit {
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 400;
}

.rank-status-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 500;
}

/* ===== A1递表时间线 ===== */
.timeline-section {
  margin-top: 24px;
  background: var(--bg-secondary);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  padding: 24px;
}

.timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.timeline-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.timeline-title-icon {
  width: 28px;
  height: 28px;
  background: rgba(201, 169, 110, 0.15);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-size: 14px;
  font-weight: 700;
}

.timeline-chart {
  width: 100%;
  height: 220px;
}

/* ===== 月度统计柱形图容器 ===== */
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 180px;
  padding: 0 4px;
}

.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  justify-content: flex-end;
}

.bar-stack {
  width: 100%;
  max-width: 28px;
  display: flex;
  flex-direction: column-reverse;
  border-radius: 3px 3px 0 0;
  overflow: hidden;
  transition: all 0.2s;
}

.bar-stack:hover {
  opacity: 0.85;
}

.bar-fill {
  width: 100%;
  background: var(--accent-gold);
  transition: height 0.6s ease;
}

.bar-fill.listed {
  background: var(--accent-green);
}

.bar-label {
  font-size: 10px;
  color: var(--text-tertiary);
  white-space: nowrap;
}

/* ===== 详情弹窗 ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 37, 64, 0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--bg-secondary);
  border-radius: 12px;
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  transition: transform 0.25s;
}

.modal-overlay.show .modal {
  transform: translateY(0);
}

.modal-header {
  position: sticky;
  top: 0;
  background: var(--bg-secondary);
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s;
  font-size: 18px;
}

.modal-close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
}

/* A1 递表时间线详情 */
.detail-section {
  margin-bottom: 24px;
}

.detail-section:last-child {
  margin-bottom: 0;
}

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

.detail-section-title::before {
  content: '';
  width: 3px;
  height: 14px;
  background: var(--accent-gold);
  border-radius: 2px;
}

.a1-timeline {
  position: relative;
  padding-left: 28px;
}

.a1-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border-color);
}

.a1-timeline-item {
  position: relative;
  padding-bottom: 20px;
}

.a1-timeline-item:last-child {
  padding-bottom: 0;
}

.a1-timeline-dot {
  position: absolute;
  left: -24px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 3px solid var(--accent-gold);
}

.a1-timeline-item:last-child .a1-timeline-dot {
  background: var(--accent-gold);
  box-shadow: 0 0 0 4px rgba(201, 169, 110, 0.2);
}

.a1-timeline-date {
  font-size: 12px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  margin-bottom: 4px;
}

.a1-timeline-version {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.a1-timeline-note {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* 公司详情网格 */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}

.detail-grid-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-grid-label {
  font-size: 12px;
  color: var(--text-tertiary);
}

.detail-grid-value {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}

/* ===== 页脚 ===== */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.5);
  padding: 40px 24px 24px;
  margin-top: 60px;
}

.footer-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.8;
  margin-top: 12px;
}

.footer-col h4 {
  font-size: 14px;
  color: #fff;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.disclaimer {
  background: rgba(201, 169, 110, 0.1);
  border-left: 3px solid var(--accent-gold);
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  border-radius: 0 6px 6px 0;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .stats-row {
    grid-template-columns: repeat(3, 1fr);
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
  }
  .nav {
    display: none;
  }
  .search-box input {
    width: 140px;
  }
  .search-box input:focus {
    width: 180px;
  }
  .main {
    padding: 16px;
  }
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .stat-card {
    padding: 16px;
  }
  .stat-value {
    font-size: 22px;
  }
  .ipo-table-wrap {
    overflow-x: auto;
  }
  .ipo-table {
    min-width: 800px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

/* 工具类 */
.flex { display: flex; }
.items-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* ===== Tooltip 公司简介悬浮提示 ===== */
.tooltip-trigger {
  position: relative;
  cursor: help;
  border-bottom: 1px dashed var(--text-tertiary);
}

.tooltip-bubble {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.2s;
  z-index: 50;
  text-align: left;
}

.tooltip-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--bg-secondary);
}

.tooltip-bubble::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: var(--border-color);
  margin-top: -1px;
}

.tooltip-trigger:hover .tooltip-bubble {
  opacity: 1;
  visibility: visible;
}

.tooltip-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tooltip-code {
  font-size: 12px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-weight: 400;
}

.tooltip-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 10px;
}

.tooltip-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tooltip-highlights li {
  font-size: 11px;
  color: var(--text-secondary);
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}

.tooltip-highlights li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-green);
  font-weight: 700;
  font-size: 10px;
}

/* 表格行上的tooltip改为行级悬浮定位 */
.ipo-table tr {
  position: relative;
}

.row-tooltip {
  position: absolute;
  left: 50%;
  top: calc(100% + 6px);
  transform: translateX(-50%);
  width: 380px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.2s;
  z-index: 60;
}

.ipo-table tbody tr:hover .row-tooltip {
  opacity: 1;
  visibility: visible;
}

/* ===== 股价迷你图 ===== */
.price-spark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
}

.price-spark.up { color: var(--accent-red); }
.price-spark.down { color: var(--accent-green); }

.spark-line {
  width: 40px;
  height: 16px;
}

/* ===== IPO 日历样式 ===== */
.calendar-page {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
}

.calendar-sidebar {
  background: var(--bg-secondary);
  border-radius: 10px;
  padding: 20px 16px;
  border: 1px solid var(--border-light);
  height: fit-content;
  position: sticky;
  top: 80px;
}

.calendar-month-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.calendar-month-item {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s;
}

.calendar-month-item:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.calendar-month-item.active {
  background: var(--primary);
  color: #fff;
  font-weight: 500;
}

.calendar-month-count {
  font-size: 11px;
  padding: 2px 8px;
  background: var(--bg-tertiary);
  border-radius: 10px;
  font-weight: 500;
}

.calendar-month-item.active .calendar-month-count {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.calendar-grid-wrap {
  background: var(--bg-secondary);
  border-radius: 10px;
  padding: 24px;
  border: 1px solid var(--border-light);
}

.calendar-grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.calendar-grid-title {
  font-size: 18px;
  font-weight: 700;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-weekday {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
  padding: 8px 0;
}

.calendar-day {
  aspect-ratio: 1 / 1;
  background: var(--bg-tertiary);
  border-radius: 6px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.15s;
  min-height: 64px;
}

.calendar-day:hover {
  background: #e2e8f0;
}

.calendar-day.empty {
  background: transparent;
  cursor: default;
}

.calendar-day.today {
  border: 2px solid var(--accent-gold);
}

.calendar-day-number {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.calendar-day-events {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.calendar-event-dot {
  height: 4px;
  border-radius: 2px;
  font-size: 0;
}

.calendar-event-dot.filing { background: var(--accent-blue); }
.calendar-event-dot.listing { background: var(--accent-green); }
.calendar-event-dot.subscription { background: var(--accent-gold); }
.calendar-event-dot.result { background: var(--accent-red); }

/* 日历下方事件列表 */
.calendar-event-list {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.calendar-event-list h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.calendar-event-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 4px;
  cursor: pointer;
  transition: background 0.15s;
}

.calendar-event-item:hover {
  background: var(--bg-tertiary);
}

.calendar-event-dot-lg {
  width: 6px;
  height: 24px;
  border-radius: 3px;
  flex-shrink: 0;
}

.calendar-event-info {
  flex: 1;
  min-width: 0;
}

.calendar-event-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-event-meta {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.calendar-event-date {
  font-size: 12px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  white-space: nowrap;
}

/* ===== 行业统计样式 ===== */
.industry-overview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.industry-stat-card {
  background: var(--bg-secondary);
  border-radius: 10px;
  padding: 20px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.industry-stat-card h3 {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 8px;
}

.industry-stat-card .big-num {
  font-size: 28px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.industry-bars-card {
  background: var(--bg-secondary);
  border-radius: 10px;
  padding: 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.industry-bars-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.industry-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.industry-bar-label {
  width: 100px;
  font-size: 13px;
  color: var(--text-secondary);
  flex-shrink: 0;
  text-align: right;
}

.industry-bar-track {
  flex: 1;
  height: 28px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.industry-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light));
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  transition: width 0.6s ease;
}

.industry-bar-fill span {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  font-family: var(--font-mono);
}

.industry-bar-value {
  width: 80px;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-primary);
  flex-shrink: 0;
}

.industry-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.industry-ranking-card {
  background: var(--bg-secondary);
  border-radius: 10px;
  padding: 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.industry-ranking-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.industry-ranking-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.industry-ranking-item:last-child {
  border-bottom: none;
}

.rank-badge {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  flex-shrink: 0;
  font-family: var(--font-mono);
}

.rank-badge.top1 { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; }
.rank-badge.top2 { background: linear-gradient(135deg, #94a3b8, #64748b); color: #fff; }
.rank-badge.top3 { background: linear-gradient(135deg, #c28855, #a16207); color: #fff; }

.industry-ranking-name {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.industry-ranking-value {
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.industry-ranking-value.up { color: var(--accent-red); }
.industry-ranking-value.down { color: var(--accent-green); }

/* 饼图容器（纯CSS实现的圆环图） */
.donut-chart-wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 10px 0;
}

.donut-chart {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

.donut-chart-center {
  position: absolute;
  inset: 25%;
  background: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.donut-chart-center-value {
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.donut-chart-center-label {
  font-size: 11px;
  color: var(--text-tertiary);
}

.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.donut-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.donut-legend-color {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

.donut-legend-value {
  margin-left: auto;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

