/* ===== Statistics Cards ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: #fff;
  border-radius: 16px;
  padding: 18px 20px;
  border: 1px solid #eef2f8;
  display: flex;
  align-items: center;
  gap: 14px;
}
.stat-card .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem; /* 图标大小保持不变 */
  flex-shrink: 0;
}
.stat-icon.green {
  background: #e0f0e6;
  color: #2a9d8f;
}
.stat-icon.blue {
  background: #e6f0fa;
  color: #2d7fb9;
}
.stat-icon.orange {
  background: #fef0e0;
  color: #d48c2c;
}
.stat-icon.purple {
  background: #ede6f5;
  color: #7b4fa0;
}
.stat-card .stat-info {
  flex: 1;
}
.stat-card .stat-number {
  font-size: 1.7rem; /* 原1.5 +0.2 */
  font-weight: 700;
  color: #1e466e;
  line-height: 1.2;
}
.stat-card .stat-label {
  font-size: 0.95rem; /* 原0.75 +0.2 */
  color: #1f1f1f;
}

/* ===== Report Cards ===== */
.report-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.report-card {
  background: #fff;
  border-radius: 18px;
  padding: 24px 20px;
  border: 1px solid #edf2f7;
  cursor: pointer;
  transition: 0.25s;
}
.report-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}
.report-card .icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem; /* 图标大小保持不变 */
  margin-bottom: 16px;
}
.icon-wrap.green {
  background: #e0f0e6;
  color: #2a9d8f;
}
.icon-wrap.blue {
  background: #e6f0fa;
  color: #2d7fb9;
}
.icon-wrap.orange {
  background: #fef0e0;
  color: #d48c2c;
}
.icon-wrap.purple {
  background: #ede6f5;
  color: #7b4fa0;
}
.icon-wrap.red {
  background: #fde8e8;
  color: #b33c3c;
}
.report-card h4 {
  font-size: 1.25rem; /* 原1.05 +0.2 */
  margin: 0 0 4px;
}
.report-card p {
  font-size: 1.05rem; /* 原0.85 +0.2 */
  color: #151515;
  margin: 0;
}
.report-card .meta {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f0f4f8;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.report-card .meta i {
  color: #b0c8dd;
}
.report-card .badge {
  background: #eef3fc;
  color: #2c2c2c;
  font-size: 0.9rem; /* 原0.7 +0.2 */
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 30px;
}
.badge.green {
  background: #e0f0e6;
  color: #1f7a5a;
}
.badge.orange {
  background: #fef0e0;
  color: #b87a1f;
}
.badge.red {
  background: #fde8e8;
  color: #b33c3c;
}

/* ===== Page Header ===== */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.page-header h1 {
  font-size: 1.7rem; /* 原1.5 +0.2 */
  font-weight: 700;
  color: #9a0808;
  margin: 0;
}
.date-range {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem; /* 原0.85 +0.2 */
  flex-wrap: wrap;
}
.date-range select {
  padding: 6px 14px;
  border-radius: 30px;
  border: 1px solid #e0eaf2;
  background: #fff;
  font-size: 1.05rem; /* 原0.85 +0.2 */
  outline: none;
  cursor: pointer;
}
.btn-outline {
  background: transparent;
  color: #870000;
  border: 1px solid #730000;
  padding: 6px 20px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1.05rem; /* 新增显式，与date-range对齐 */
}
.btn-outline:hover {
  background: #e6f0fa;
}
.btn-primary {
  background: #2d7fb9;
  color: #fff;
  border: none;
  padding: 6px 20px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1.05rem; /* 新增显式，与date-range对齐 */
}
.btn-primary:hover {
  background: #1a5f8a;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .report-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .page-header h1 {
    font-size: 1.45rem; /* 原1.3 +0.15 */
  }
  .date-range {
    width: 100%;
    justify-content: flex-start;
  }
  .date-range select {
    flex: 1;
    min-width: 120px;
  }
  .stats-grid {
    gap: 12px;
  }
  .stat-card {
    padding: 14px 16px;
    gap: 10px;
  }
  .stat-card .stat-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
  .stat-card .stat-number {
    font-size: 1.35rem; /* 原1.2 +0.15 */
  }
  .stat-card .stat-label {
    font-size: 0.85rem; /* 原0.7 +0.15 */
  }
  .report-grid {
    gap: 16px;
  }
  .report-card {
    padding: 20px 16px;
  }
  .report-card .icon-wrap {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }
  .report-card h4 {
    font-size: 1.15rem; /* 原1.0 +0.15 */
  }
  .report-card p {
    font-size: 0.95rem; /* 原0.8 +0.15 */
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .stat-card {
    padding: 12px 14px;
  }
  .stat-card .stat-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  .stat-card .stat-number {
    font-size: 1.15rem; /* 原1.0 +0.15 */
  }

  .report-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .report-card {
    padding: 16px 14px;
  }
  .report-card .icon-wrap {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  .report-card h4 {
    font-size: 1.1rem; /* 原0.95 +0.15 */
  }
  .report-card p {
    font-size: 0.9rem; /* 原0.75 +0.15 */
  }

  /* On mobile devices: The title and date area are arranged vertically, 
  with the date area having equal width horizontally. */
  .page-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .page-header h1 {
    font-size: 1.35rem; /* 原1.2 +0.15 */
  }

  .date-range {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    justify-content: space-between;
  }

  .date-range select,
  .date-range .btn-outline {
    flex: 1;
    min-width: 0;
    text-align: center;
    padding: 8px 6px;
    font-size: 0.95rem; /* 原0.8 +0.15 */
    border-radius: 30px;
    box-sizing: border-box;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .date-range select {
    appearance: auto;
    background: #fff;
    border: 1px solid #e0eaf2;
    cursor: pointer;
  }

  .date-range .btn-outline {
    border: 1px solid #730000;
    background: transparent;
    color: #870000;
    white-space: nowrap;
  }

  .date-range .btn-outline:hover {
    background: #e6f0fa;
  }

  .btn-outline,
  .btn-primary {
    padding: 6px 12px;
    font-size: 0.95rem; /* 原0.8 +0.15 */
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 400px) {
  .content {
    padding: 8px 6px 0;
  }
}