:root {
  --bg: #f5f2ec;
  --surface: #fffdf8;
  --surface-2: #eef5f1;
  --ink: #20242a;
  --muted: #66717b;
  --line: #ddd6ca;
  --green: #207963;
  --rust: #b85c38;
  --blue: #416d93;
  --plum: #7a5a7f;
  --shadow: 0 18px 40px rgba(39, 43, 48, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Noto Sans SC", system-ui, sans-serif;
  background:
    linear-gradient(120deg, rgba(238, 245, 241, 0.9), rgba(245, 242, 236, 0.2) 42%),
    linear-gradient(180deg, var(--bg), #faf8f4);
}

a {
  color: inherit;
}

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

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  min-height: 48px;
}

.brand,
.nav,
.quick-card {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-size: 12px;
  letter-spacing: 0.08em;
}

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

.nav a {
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.nav a:hover {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 253, 248, 0.72);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: end;
  padding: 72px 0 36px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font: 700 13px/1 "Outfit", system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font: 700 clamp(44px, 8vw, 88px)/0.96 "Outfit", system-ui, sans-serif;
}

.hero p {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.signal-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.signal-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.signal-row:last-child {
  border-bottom: 0;
}

.signal-label {
  color: var(--muted);
}

.signal-value {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 700;
}

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

.quick-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(39, 43, 48, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

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

.quick-card strong {
  font: 700 26px/1.1 "Outfit", "Noto Sans SC", sans-serif;
}

.quick-card span:last-child {
  color: var(--muted);
  line-height: 1.65;
}

.card-kicker {
  font: 700 12px/1 "Outfit", system-ui, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dashboard {
  border-top: 5px solid var(--green);
}

.ao3 {
  border-top: 5px solid var(--rust);
}

.links {
  border-top: 5px solid var(--blue);
}

.weibo {
  border-top: 5px solid var(--plum);
}

@media (max-width: 860px) {
  .topbar,
  .hero {
    align-items: flex-start;
  }

  .topbar {
    flex-direction: column;
  }

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

  .hero {
    grid-template-columns: 1fr;
    padding-top: 48px;
  }

  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100vw - 24px, 1120px);
    padding-top: 16px;
  }

  .hero {
    padding-top: 36px;
  }

  .hero p {
    font-size: 16px;
  }

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

  .quick-card {
    min-height: 170px;
  }
}
