/* home 占位页样式。配色沿用 book 站的暖白纸感，夜间跟随系统。全部系统字体，不加载外部资源。 */

:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --text: #26221d;
  --muted: #857e74;
  --border: #e4e0d8;
  --accent: #8a5a2b;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong",
                SimSun, Georgia, "Times New Roman", serif;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
               -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171b;
    --surface: #1c1f25;
    --text: #cfcabf;
    --muted: #7d8189;
    --border: #2d323a;
    --accent: #c99a63;
  }
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  padding: 4rem 1.25rem 2rem;
}

.name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 7vw, 3rem);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.tagline { margin: 0.5rem 0 0; color: var(--muted); }

.links { margin-top: 2.5rem; }

.link-card {
  display: grid;
  gap: 0.15rem;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
.link-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.link-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.link-title { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; }
.link-desc { color: var(--muted); font-size: 0.92rem; }
.link-url { margin-top: 0.35rem; color: var(--accent); font-size: 0.85rem; }

/* 备案号：底部居中 */
.site-footer {
  padding: 1.5rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .link-card { transition: none; }
  .link-card:hover { transform: none; }
}
