:root {
  color-scheme: light;
  --font-sans: "IBM Plex Sans", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", serif;
  --ink-900: #111827;
  --ink-700: #2c3440;
  --ink-500: #667085;
  --ink-300: #cdd4de;
  --bg-100: #f4f1ec;
  --bg-200: #f9f6f1;
  --surface: #ffffff;
  --accent: #1f7a70;
  --accent-strong: #14625a;
  --accent-soft: rgba(31, 122, 112, 0.15);
  --sunset: #f4a261;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
  --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: radial-gradient(circle at top, #fdf9f3 0%, #f6f2eb 40%, #ede7de 100%);
}

.app-shell {
  position: relative;
  overflow: hidden;
}

.hero {
  position: relative;
  padding: 48px 0 40px;
  background: linear-gradient(130deg, #2f857b 0%, #1f7a70 45%, #204b4f 100%);
  color: #f8fafc;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(0);
  opacity: 0.3;
  pointer-events: none;
}

.hero::before {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #f4a261 0%, transparent 70%);
  top: -120px;
  right: -120px;
}

.hero::after {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, #70c2b0 0%, transparent 70%);
  bottom: -100px;
  left: -60px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: rgba(248, 250, 252, 0.7);
  margin-bottom: 12px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw, 2.75rem);
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}

.hero .lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(248, 250, 252, 0.85);
  max-width: 36rem;
}

.meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: rgba(248, 250, 252, 0.75);
}

.meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.7);
}

.filter-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  padding: 18px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}

.filter-card .form-label {
  color: rgba(248, 250, 252, 0.8);
  font-weight: 500;
  font-size: 0.85rem;
}

.filter-card .form-control,
.filter-card .input-group-text {
  border-radius: 12px;
  border: none;
}

.filter-card .form-control {
  background: rgba(255, 255, 255, 0.9);
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-actions .btn {
  border-radius: 999px;
}

.filter-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.status {
  font-size: 0.85rem;
  color: rgba(248, 250, 252, 0.75);
}

main.container {
  position: relative;
  padding: 32px 12px 60px;
}

.section-gap {
  margin-top: 28px;
}

.kpi-card,
.chart-card,
.table-card,
.insight-card,
.report-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(204, 212, 222, 0.6);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.kpi-card {
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.kpi-label {
  font-size: 0.85rem;
  color: var(--ink-500);
  font-weight: 600;
}

.kpi-value {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--ink-900);
}

.kpi-small {
  font-size: 1.05rem;
}

.kpi-foot {
  font-size: 0.8rem;
  color: var(--ink-500);
}

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

.card-head h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin: 0;
  color: var(--ink-700);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 600;
}

.chart-foot {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--ink-500);
}

.quality-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: center;
}

.quality-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.quality-list li {
  font-size: 0.88rem;
  color: var(--ink-700);
  display: flex;
  justify-content: space-between;
}

.table-card .table {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.table-card thead th {
  font-weight: 600;
  color: var(--ink-500);
}

.table-card tbody tr {
  transition: background 0.2s ease;
}

.table-card tbody tr:hover {
  background: #f8fafc;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.table-hint {
  font-size: 0.85rem;
  color: var(--ink-500);
}

.table-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 10px;
  font-size: 0.85rem;
  color: var(--ink-500);
}

.table-pagination .page-info {
  min-width: 140px;
  text-align: center;
}

.insight-card {
  background: linear-gradient(135deg, rgba(31, 122, 112, 0.08), rgba(244, 162, 97, 0.08));
  border: 1px solid rgba(31, 122, 112, 0.2);
}

.insight-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: var(--ink-700);
}

.insight-list li {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(204, 212, 222, 0.5);
}

.report-form .form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-500);
}

.report-hint {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--ink-500);
}

.report-status {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--ink-700);
}

.report-mount {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 794px;
  pointer-events: none;
}

.report-root {
  width: 794px;
  padding: 32px 36px;
  background: #ffffff;
  color: #111827;
  font-family: var(--font-sans);
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 12px;
  margin-bottom: 18px;
}

.report-title {
  font-family: var(--font-serif);
  font-size: 24px;
  margin: 0;
}

.report-subtitle {
  margin-top: 6px;
  font-size: 12px;
  color: #6b7280;
}

.report-user {
  text-align: right;
  font-size: 12px;
  color: #374151;
}

.report-section {
  margin-top: 16px;
}

.report-section h4 {
  font-size: 15px;
  margin: 0 0 8px;
  color: #1f2937;
}

.report-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.report-kpi {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 10px 12px;
  background: #f9fafb;
}

.report-kpi span {
  display: block;
  font-size: 11px;
  color: #6b7280;
}

.report-kpi strong {
  font-size: 16px;
  color: #111827;
}

.report-chart-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}

.report-chart {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px;
}

.report-chart-title {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 6px;
}

.report-chart-stack {
  display: grid;
  gap: 12px;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.report-table th,
.report-table td {
  border-bottom: 1px solid #e5e7eb;
  padding: 6px 8px;
}

.report-table th {
  text-align: left;
  color: #6b7280;
}

.report-note {
  margin-top: 12px;
  font-size: 11px;
  color: #6b7280;
  line-height: 1.6;
}

.report-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: #374151;
}

[data-animate] {
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.6s ease forwards;
}

[data-animate]:nth-child(2) {
  animation-delay: 0.05s;
}

[data-animate]:nth-child(3) {
  animation-delay: 0.1s;
}

[data-animate]:nth-child(4) {
  animation-delay: 0.15s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991px) {
  .hero {
    padding-bottom: 32px;
  }

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

@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
