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

body {
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: #333;
  line-height: 1.8;
  background: #fafafa;
}

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

a { color: #1a6fb5; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
  background: #fff;
  border-bottom: 2px solid #ff6600;
  padding: 1rem 0;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
}

.site-header nav a {
  margin-left: 1.5rem;
  color: #666;
  font-size: 0.9rem;
}

/* Main */
main { padding: 2rem 0; }

h1 { font-size: 1.6rem; margin-bottom: 0.5rem; line-height: 1.4; }
h2 { font-size: 1.2rem; margin: 1.5rem 0 0.8rem; color: #555; border-bottom: 1px solid #eee; padding-bottom: 0.3rem; }
h3 { font-size: 1.05rem; margin: 1.2rem 0 0.5rem; }

p { margin-bottom: 1rem; }

blockquote {
  border-left: 3px solid #ff6600;
  padding: 0.5rem 1rem;
  margin: 1rem 0;
  color: #666;
  background: #fff;
}

code {
  background: #f0f0f0;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-size: 0.85em;
}

pre {
  background: #f5f5f5;
  padding: 1rem;
  overflow-x: auto;
  border-radius: 4px;
  margin-bottom: 1rem;
}

pre code { background: none; padding: 0; }

ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.3rem; }

/* Issue list (homepage) */
.issue-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 1.2rem;
  margin-bottom: 1rem;
}

.issue-card h3 { margin: 0 0 0.3rem; }
.issue-card time { color: #999; font-size: 0.85rem; }
.issue-card .preview { color: #666; font-size: 0.9rem; margin-top: 0.5rem; }

/* Issue page */
.issue-header { margin-bottom: 2rem; }
.issue-quote { margin-top: 1rem; font-style: italic; }

.article-list { list-style: none; padding: 0; }
.article-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.article-list li:last-child { border-bottom: none; }

/* Article page */
.article-meta { margin-bottom: 0.5rem; }
.article-meta a { color: #999; font-size: 0.85rem; }

.article-links {
  margin: 0.5rem 0 1.5rem;
  font-size: 0.85rem;
}
.article-links a {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: #f0f0f0;
  border-radius: 3px;
  margin-right: 0.5rem;
  color: #555;
}

.article-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  font-size: 0.85rem;
}
.nav-prev, .nav-next { max-width: 45%; }

/* Archive */
.archive-list { list-style: none; padding: 0; }
.archive-list li { padding: 0.5rem 0; border-bottom: 1px solid #f0f0f0; }
.archive-list time { color: #999; font-size: 0.85rem; margin-left: 0.5rem; }

/* Footer */
.site-footer {
  border-top: 1px solid #e8e8e8;
  padding: 1.5rem 0;
  text-align: center;
  color: #999;
  font-size: 0.8rem;
}
.site-footer a { color: #999; }

/* Responsive */
@media (max-width: 600px) {
  h1 { font-size: 1.3rem; }
  .site-header .container { flex-direction: column; gap: 0.5rem; }
  .site-header nav a { margin-left: 1rem; }
}
