/* 友安律所 - 胡玥凡个人博客 */
/* 简洁、安静、阅读优先 */

:root {
  --bg: #fafaf9;
  --text: #1c1917;
  --muted: #78716c;
  --border: #e7e5e4;
  --accent: #292524;
  --accent-light: #57534e;
  --serif: "Noto Serif SC", "Source Han Serif CN", "STSong", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", "Fira Code", monospace;
  --max-w: 680px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-light); }

/* 导航 */
nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.nav-links { display: flex; gap: 24px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }

/* 主容器 */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* 头部 */
header {
  padding: 80px 0 60px;
}

header h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.3;
  margin-bottom: 12px;
}

header .subtitle {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

header .subtitle span {
  display: inline-block;
  margin-right: 16px;
}

/* 文章列表 */
.article-list { list-style: none; padding-bottom: 60px; }

.article-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.article-item:first-child { border-top: 1px solid var(--border); }

.article-item .date {
  font-size: 13px;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}

.article-item h2 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
}

.article-item h2 a:hover { color: var(--accent-light); }

.article-item .excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* 文章详情页 */
article {
  padding: 48px 0 80px;
}

article .article-header {
  margin-bottom: 40px;
}

article .article-header .date {
  font-size: 13px;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: -0.3px;
  margin-bottom: 12px;
}

article .article-header h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.3;
}

article .content {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.9;
  color: #292524;
}

article .content p {
  margin-bottom: 1.6em;
}

article .content h2 {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 600;
  margin: 2em 0 0.8em;
  letter-spacing: -0.3px;
}

article .content h3 {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  margin: 1.8em 0 0.6em;
}

article .content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin: 1.5em 0;
  color: var(--muted);
  font-style: italic;
}

article .content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5em 0;
}

/* 关于页面 */
.about-page {
  padding: 48px 0 80px;
}

.about-page h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
}

.about-page .content {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.9;
}

.about-page .content p {
  margin-bottom: 1.4em;
}

/* 页脚 */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

/* 响应式 */
@media (max-width: 600px) {
  body { font-size: 14px; }
  header { padding: 48px 0 36px; }
  header h1 { font-size: 26px; }
  article .article-header h1 { font-size: 24px; }
  article .content { font-size: 16px; }
  .article-item h2 { font-size: 18px; }
  nav { flex-direction: column; gap: 12px; align-items: flex-start; }
  footer { flex-direction: column; gap: 8px; text-align: center; }
}
