/* 拾光 · 图片分享 —— 站点样式
   纯静态、零外部依赖（不引 CDN、不用框架）。 */

:root {
  --bg: #fbfaf8;
  --fg: #1d1d1f;
  --muted: #6b6b70;
  --line: #e6e3de;
  --accent: #3f6f5f;
  --card: #ffffff;
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14151a;
    --fg: #e9e8e6;
    --muted: #9a9aa2;
    --line: #2a2c34;
    --accent: #8fc0aa;
    --card: #1c1e24;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans CJK SC",
        "PingFang SC", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
}

a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* 顶栏 */
.site-head {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
}
.brand .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
}
.site-head nav { display: flex; gap: 22px; }
.site-head nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
}
.site-head nav a:hover { color: var(--fg); }

/* 主体 */
main { padding: 48px 0 72px; }

.hero { margin-bottom: 34px; }
.hero h1 {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -.01em;
}
.hero p { margin: 0; color: var(--muted); }

/* 图片网格 */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.card {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  aspect-ratio: 4 / 3;
}
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}
.card:hover img { transform: scale(1.03); }

.more { margin-top: 26px; }
.more a { color: var(--accent); text-decoration: none; font-size: 15px; }
.more a:hover { text-decoration: underline; }

.prose { max-width: 620px; color: var(--muted); }
.prose p { margin: 0 0 16px; }
.prose a { color: var(--accent); }

/* 页脚 */
.site-foot {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.site-foot .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--fg); }

@media (max-width: 560px) {
  main { padding: 32px 0 56px; }
  .hero h1 { font-size: 24px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
}
