/* ============ 早报网站样式 ============ */

:root {
  --bg: #f5f7fa;
  --card-bg: #ffffff;
  --text: #1a1a2e;
  --text-secondary: #555;
  --text-muted: #888;
  --border: #e8ecf1;
  --primary: #2563eb;
  --primary-light: #dbeafe;
  --hr-color: #3b82f6;
  --hr-bg: #f0f2f4;
  --bidding-color: #f59e0b;
  --bidding-bg: #f0f2f4;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 8px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============ 导航栏 ============ */
.top-nav {
  background: #E82121;
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}

.nav-logo img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.nav-subtitle {
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .nav-subtitle {
    display: none;
  }
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s;
}

.nav-links a:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* ============ 容器 ============ */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px 24px;
  flex: 1;
  width: 100%;
}

/* ============ 面包屑 ============ */
.breadcrumb {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb .sep {
  margin: 0 6px;
  color: var(--text-muted);
}

/* ============ 首页英雄区 ============ */
.hero {
  text-align: center;
  padding: 48px 0 32px;
}

.hero h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 32px;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 32px;
  text-align: center;
  min-width: 140px;
}

.stat-card:hover {
  box-shadow: var(--shadow);
}

.stat-num {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============ 快捷入口 ============ */
.quick-links {
  display: flex;
  gap: 20px;
  margin: 32px 0;
}

.quick-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s;
}

.quick-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.quick-icon {
  font-size: 36px;
  line-height: 1;
}

.quick-info h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.quick-info p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.quick-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

.hr-card:hover {
  border-color: var(--hr-color);
}

.bidding-card:hover {
  border-color: var(--bidding-color);
}

/* ============ 最近更新 ============ */
.recent-section {
  margin-top: 16px;
}

.recent-section h2 {
  font-size: 20px;
  margin-bottom: 16px;
}

.recent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.recent-card {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

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

.recent-date {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.recent-category {
  display: inline-block;
  font-size: 12px;
  margin-bottom: 6px;
}

.recent-items {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============ 标签 ============ */
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 20px;
}

.tag.hr {
  background: var(--hr-bg);
  color: var(--hr-color);
}

.tag.bidding {
  background: var(--bidding-bg);
  color: var(--bidding-color);
}

/* ============ 归档页 ============ */
.archive-header {
  margin-bottom: 32px;
}

.archive-header h1 {
  font-size: 28px;
  margin-bottom: 4px;
}

.archive-count {
  color: var(--text-muted);
  font-size: 14px;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.month-label {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.month-reports {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
}

.archive-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.archive-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.archive-date {
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

.archive-count-badge {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: auto;
}

.archive-arrow {
  color: var(--text-muted);
  font-size: 14px;
}

/* ============ 报告页 ============ */
.report-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.report-header h1 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
}

.report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.report-meta .date,
.report-meta .gen-time {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============ 报告小节 ============ */
.report-section {
  margin-bottom: 36px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 3px solid var(--primary);
}

.report-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 12px;
  transition: box-shadow 0.2s;
}

.report-item:hover {
  box-shadow: var(--shadow);
}

.item-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
  line-height: 1.5;
}

.item-body p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  line-height: 1.7;
  word-break: break-word;
}

.item-body strong {
  color: var(--text);
}

.item-source {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.item-url {
  margin-top: 6px;
}

.item-url a {
  font-size: 13px;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.item-url a:hover {
  text-decoration: underline;
}

/* ============ 滚动新闻条 ============ */
.ticker-section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 16px;
}

.ticker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bidding-bg);
}

.ticker-section:not(.hr-ticker) .ticker-header {
  background: var(--bidding-bg);
}

.hr-ticker .ticker-header {
  background: var(--hr-bg);
}

.ticker-header h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.ticker-more {
  font-size: 13px;
  color: var(--bidding-color);
  text-decoration: none;
  font-weight: 600;
}

.hr-ticker .ticker-more {
  color: var(--hr-color);
}

.ticker-more:hover {
  text-decoration: underline;
}

.ticker-wrap {
  height: 180px;
  overflow: hidden;
  position: relative;
}

.ticker-wrap::before,
.ticker-wrap::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 20px;
  z-index: 2;
  pointer-events: none;
}

.ticker-wrap::before {
  top: 0;
  background: linear-gradient(to bottom, var(--card-bg), transparent);
}

.ticker-wrap::after {
  bottom: 0;
  background: linear-gradient(to top, var(--card-bg), transparent);
}

.ticker-content {
  animation: ticker-scroll 30s linear infinite;
  padding: 8px 0;
}

.ticker-content:hover {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-33.333%);
  }
}

.ticker-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 20px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s;
  border-bottom: 1px solid #f0f0f0;
}

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

.ticker-item:hover {
  background: var(--bidding-bg);
}

.ticker-date {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
  font-family: monospace;
}

.ticker-text {
  font-size: 14px;
  flex: 1;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticker-source {
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============ 报告页脚 ============ */
.report-footer-note {
  margin-top: 40px;
  padding: 16px 20px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* ============ 网站页脚 ============ */
.site-footer {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
  margin-top: 48px;
}

.footer-small {
  font-size: 11px;
  margin-top: 4px;
}

/* ============ 空状态 ============ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state code {
  display: inline-block;
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 14px;
  margin-top: 8px;
}

/* ============ 响应式 ============ */
@media (max-width: 768px) {
  .nav-inner {
    padding: 0 16px;
  }

  .nav-links a:not(:first-child) {
    display: none;
  }

  .container {
    padding: 20px 16px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero {
    padding: 32px 0 24px;
  }

  .stats {
    gap: 12px;
  }

  .stat-card {
    padding: 16px 20px;
    min-width: 100px;
  }

  .stat-num {
    font-size: 26px;
  }

  .quick-links {
    flex-direction: column;
    gap: 12px;
  }

  .report-header h1 {
    font-size: 20px;
  }

  .recent-grid {
    grid-template-columns: 1fr;
  }

  .month-reports {
    grid-template-columns: 1fr;
  }
}
