/* 飞的AI分享日记 - 样式 */
:root {
  --paper: #f7f3eb;
  --ink: #2c2c2c;
  --ink-light: #5a5a5a;
  --accent: #c45c3e;
  --accent-soft: #e8a88a;
  --border: #ddd5c5;
  --shadow: rgba(44, 44, 44, 0.08);
  --font-serif: 'Noto Serif SC', serif;
  --font-display: 'ZCOOL KuaiLe', cursive;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
}

.site-header {
  background: linear-gradient(180deg, #fff 0%, var(--paper) 100%);
  border-bottom: 2px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.logo:hover {
  color: var(--ink);
}

.nav a {
  margin-left: 1.5rem;
  color: var(--ink-light);
  text-decoration: none;
}

.nav a:hover {
  color: var(--accent);
}

.main-content {
  flex: 1;
  padding: 2rem 0 4rem;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* 首页 */
.page-home .hero {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--ink-light);
  margin: 0;
}

.posts-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.post-card {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}

.post-card:hover {
  box-shadow: 0 8px 30px var(--shadow);
  transform: translateY(-2px);
}

.post-card .post-date {
  display: block;
  font-size: 0.9rem;
  color: var(--ink-light);
  margin-bottom: 0.5rem;
}

.post-card .post-title {
  font-size: 1.4rem;
  margin: 0 0 0.75rem;
  line-height: 1.4;
}

.post-card .post-title a {
  color: var(--ink);
  text-decoration: none;
}

.post-card .post-title a:hover {
  color: var(--accent);
}

.post-excerpt {
  color: var(--ink-light);
  margin: 0 0 1rem;
  font-size: 1rem;
}

.post-meta {
  font-size: 0.85rem;
  color: var(--ink-light);
  margin-bottom: 1rem;
}

.post-meta .author {
  margin-right: 1rem;
}

.read-more {
  font-size: 0.95rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.read-more:hover {
  text-decoration: underline;
}

/* 文章详情页 */
.page-post .post-full {
  background: #fff;
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px var(--shadow);
}

.post-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.post-full .post-date {
  display: block;
  font-size: 0.9rem;
  color: var(--ink-light);
  margin-bottom: 0.5rem;
}

.post-full .post-title {
  font-size: 1.8rem;
  margin: 0 0 0.75rem;
  line-height: 1.35;
}

.post-body {
  font-size: 1.05rem;
}

.post-body h2 {
  font-size: 1.3rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--ink);
}

.post-body p {
  margin: 0 0 1rem;
}

.post-body ul {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.post-body li {
  margin-bottom: 0.25rem;
}

.post-body strong {
  color: var(--ink);
}

.post-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.back-link {
  color: var(--accent);
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

/* 关于页 */
.page-about .about-content {
  background: #fff;
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px var(--shadow);
}

.page-about h1 {
  margin: 0 0 1rem;
  font-size: 1.6rem;
  color: var(--accent);
}

.page-about p {
  margin: 0 0 1rem;
}

.page-about a {
  color: var(--accent);
  text-decoration: none;
}

.page-about a:hover {
  text-decoration: underline;
}

/* 404 */
.page-404 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
}

.error-box {
  text-align: center;
  padding: 2rem;
}

.error-box h1 {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.error-box p {
  color: var(--ink-light);
  margin: 0 0 1.5rem;
}

/* 页脚 */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  text-align: center;
  color: var(--ink-light);
  font-size: 0.9rem;
}

.site-footer .container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-footer p {
  margin: 0;
}
