/* 陶瓷雕塑 - 归档风格样式 */
:root {
  --accent-color: #78909c;
  --primary-color: #5d4037;
  --secondary-color: #8d6e63;
  --bg-color: #faf8f5;
  --card-bg: #ffffff;
  --text-primary: #3e2723;
  --text-secondary: #6d4c41;
  --border-color: #d7ccc8;
  --shadow: 0 2px 8px rgba(93, 64, 55, 0.08);
  --shadow-hover: 0 4px 16px rgba(93, 64, 55, 0.12);
  --radius: 8px;
  --max-width: 1200px;
  --gap: 24px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-color);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header */
.header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gap);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.logo span {
  color: var(--accent-color);
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav a:hover,
.nav a.active {
  color: var(--primary-color);
}

/* Main Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--gap);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 64px var(--gap);
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg-color) 100%);
  border-radius: var(--radius);
  margin-bottom: 48px;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Section Title */
.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent-color);
  display: inline-block;
}

/* Year Group */
.year-group {
  margin-bottom: 32px;
}

.year-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.year-header:hover {
  box-shadow: var(--shadow-hover);
}

.year-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.year-count {
  font-size: 0.875rem;
  color: var(--text-secondary);
  background: var(--bg-color);
  padding: 4px 12px;
  border-radius: 20px;
}

/* Article List */
.article-list {
  display: grid;
  gap: 16px;
}

.article-item {
  background: var(--card-bg);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.article-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.article-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.article-meta {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.article-meta span {
  margin-right: 16px;
}

/* Statistics */
.stats {
  background: var(--card-bg);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  margin: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--gap);
}

.stat-item {
  padding: 16px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Grid Layout */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin: 48px 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  margin: 32px 0;
}

.grid-section {
  background: var(--card-bg);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.grid-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.grid-section ul {
  list-style: none;
}

.grid-section li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.grid-section li:last-child {
  border-bottom: none;
}

.grid-section a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  display: block;
}

.grid-section a:hover {
  color: var(--primary-color);
}

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb a:hover {
  color: var(--primary-color);
}

.breadcrumb span {
  margin: 0 8px;
  color: var(--border-color);
}

/* Category Header */
.category-header {
  text-align: center;
  padding: 48px var(--gap);
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}

.category-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.category-header p {
  color: var(--text-secondary);
}

/* Month List */
.month-list {
  display: grid;
  gap: 12px;
}

.month-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.month-item:hover {
  transform: translateX(4px);
}

.month-name {
  font-weight: 500;
  color: var(--text-primary);
}

.month-count {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Article Page */
.article-container {
  max-width: 800px;
  margin: 0 auto;
}

.article-header {
  text-align: center;
  margin-bottom: 32px;
}

.article-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 16px;
  line-height: 1.4;
}

.article-info {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.article-info span {
  margin: 0 8px;
}

.featured-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 32px;
}

.article-content {
  background: var(--card-bg);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 1.0625rem;
  line-height: 1.9;
}

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

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 2em 0 1em;
}

.article-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 1.5em 0 0.75em;
}

/* Related Posts */
.related-posts {
  margin-top: 48px;
}

.related-posts h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.related-item {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s;
}

.related-item:hover {
  transform: translateY(-4px);
}

.related-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.related-item h4 {
  padding: 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* 404 Page */
.error-page {
  text-align: center;
  padding: 120px var(--gap);
}

.error-code {
  font-size: 8rem;
  font-weight: 700;
  color: var(--accent-color);
  line-height: 1;
  margin-bottom: 24px;
}

.error-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 16px;
}

.error-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--primary-color);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 500;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--secondary-color);
  color: #fff;
}

/* Footer */
.footer {
  background: var(--card-bg);
  border-top: 1px solid var(--border-color);
  padding: 48px 0;
  margin-top: 64px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gap);
  text-align: center;
}

.footer p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.footer-links {
  margin-top: 16px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 0 12px;
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 12px var(--gap);
  }

  .nav {
    width: 100%;
    justify-content: center;
    margin-top: 12px;
    gap: 20px;
  }

  .hero {
    padding: 40px var(--gap);
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .grid-3,
  .grid-2,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .article-content {
    padding: 24px;
  }

  .featured-image {
    height: 240px;
  }

  .error-code {
    font-size: 5rem;
  }
}

@media (max-width: 480px) {
  :root {
    --gap: 16px;
  }

  .year-header {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .month-item {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
}
