:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --panel: #ffffff;
  --ink: #161923;
  --muted: #647084;
  --line: #dde4ef;
  --blue: #1769e0;
  --teal: #0e9f9b;
  --coral: #e8664f;
  --yellow: #f4bf2a;
  --shadow: 0 14px 34px rgba(30, 42, 64, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.6;
}

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

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 5vw;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
}

.project-header h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 46px);
  line-height: 1.12;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-weight: 700;
}

.project-main {
  padding: 36px 5vw 54px;
}

.project-intro {
  max-width: 840px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 17px;
}

.chart-panel {
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.chart {
  width: 100%;
  height: 620px;
  border: 1px solid #e7edf5;
  border-radius: 6px;
  background: #fbfcff;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.dashboard-grid .chart {
  height: 420px;
}

.panel-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 860px) {
  .project-header {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .chart,
  .dashboard-grid .chart {
    height: 470px;
  }
}
