:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #5c6672;
  --line: #d9dee6;
  --panel: #ffffff;
  --bg: #f5f7fa;
  --accent: #b3261e;
  --accent-2: #0f766e;
  --accent-soft: #fff1ef;
  --shadow: 0 14px 34px rgba(23, 32, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

.site-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 32px clamp(20px, 5vw, 64px) 22px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.subtitle {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.top-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
  font-size: 14px;
}

.top-nav a:hover,
.module-card:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 24px auto 48px;
}

.overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.metric-panel,
.module-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.metric-panel {
  padding: 16px;
}

.label,
.module-kicker,
.module-path {
  color: var(--muted);
  font-size: 13px;
}

.metric-panel strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
  line-height: 1.2;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.module-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  padding: 18px;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.module-card.primary {
  border-color: #e7b5af;
  background: var(--accent-soft);
}

.module-title {
  margin-top: 16px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.module-copy {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.module-path {
  margin-top: auto;
  padding-top: 18px;
  font-family: Consolas, "Courier New", monospace;
}

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

  .top-nav {
    justify-content: flex-start;
  }

  .overview,
  .module-grid {
    grid-template-columns: 1fr;
  }

  .module-card {
    min-height: 172px;
  }
}
