/* ===== 古董珠宝 - 时间线归档风格 ===== */
/* 主色调: #8B4513 (古董金棕色) */
/* 强调色: #D4AF37 (金色) */

:root {
  --primary-color: #8B4513;
  --accent-color: #D4AF37;
  --text-color: #333;
  --text-light: #666;
  --bg-color: #FDF8F3;
  --bg-card: #fff;
  --border-color: #E8DDD4;
  --timeline-color: #C9B896;
  --shadow: 0 2px 8px rgba(139, 69, 19, 0.1);
  --radius: 8px;
}

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

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.8;
}

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

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

/* ===== Header ===== */
.header {
  background: linear-gradient(135deg, #2C1810 0%, #4A2C17 100%);
  padding: 1rem 0;
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--accent-color);
  letter-spacing: 2px;
}

.logo span {
  color: #fff;
  font-size: 0.9rem;
  display: block;
  letter-spacing: 1px;
  font-weight: normal;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: #fff;
  font-size: 0.95rem;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s;
}

.nav a:hover::after {
  width: 100%;
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(rgba(44, 24, 16, 0.7), rgba(44, 24, 16, 0.8)),
              url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="%23FDF8F3" width="100" height="100"/><path fill="%23E8DDD4" d="M0 50 Q25 30 50 50 T100 50 L100 100 L0 100 Z"/></svg>');
  background-size: cover;
  background-position: center;
  padding: 4rem 20px;
  text-align: center;
  color: #fff;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
}

/* ===== Timeline ===== */
.timeline-section {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 20px;
}

.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, var(--timeline-color), var(--accent-color));
  top: 0;
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: 50%;
  position: relative;
  margin-bottom: 3rem;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 50%;
}

.timeline-content {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 420px;
  margin-right: 2rem;
  border: 1px solid var(--border-color);
  position: relative;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-right: 0;
  margin-left: 2rem;
}

.timeline-content::before {
  content: '';
  position: absolute;
  right: -10px;
  top: 20px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 10px solid var(--bg-card);
}

.timeline-item:nth-child(even) .timeline-content::before {
  right: auto;
  left: -10px;
  border-left: none;
  border-right: 10px solid var(--bg-card);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--accent-color);
  border: 3px solid var(--bg-card);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--timeline-color);
  z-index: 1;
}

.timeline-year {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.timeline-desc {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== Cards Section ===== */
.cards-section {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  margin: 0.5rem auto 0;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.card h3 {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-color);
}

.card ul {
  list-style: none;
}

.card li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--border-color);
}

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

.card a {
  display: block;
  color: var(--text-color);
}

.card a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  max-width: 1200px;
  margin: 1rem auto;
  padding: 0 20px;
  color: var(--text-light);
  font-size: 0.9rem;
}

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

.breadcrumb span {
  margin: 0 0.5rem;
}

/* ===== Category Header ===== */
.category-header {
  text-align: center;
  padding: 3rem 20px;
  background: linear-gradient(135deg, var(--bg-color) 0%, #F5EDE4 100%);
  border-bottom: 1px solid var(--border-color);
}

.category-header h1 {
  color: var(--primary-color);
  font-size: 2rem;
}

.category-header p {
  color: var(--text-light);
  margin-top: 0.5rem;
}

/* ===== Article Page ===== */
.article-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 20px;
}

.article-header {
  text-align: center;
  margin-bottom: 2rem;
}

.article-header h1 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 1rem;
}

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

.article-content {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

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

.article-content h3 {
  color: var(--primary-color);
  margin: 1.5rem 0 0.8rem;
  font-size: 1.2rem;
}

.article-content p {
  margin-bottom: 1rem;
  text-align: justify;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  display: block;
}

.article-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.article-nav a {
  color: var(--primary-color);
  font-weight: bold;
}

/* ===== 404 Page ===== */
.error-page {
  text-align: center;
  padding: 5rem 20px;
}

.error-code {
  font-size: 8rem;
  color: var(--accent-color);
  font-weight: bold;
  line-height: 1;
  text-shadow: 3px 3px 0 var(--primary-color);
}

.error-title {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin: 1rem 0;
}

.error-desc {
  color: var(--text-light);
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--primary-color);
  color: #fff;
  border-radius: var(--radius);
  transition: all 0.3s;
}

.btn:hover {
  background: var(--accent-color);
  color: #2C1810;
}

/* ===== Footer ===== */
.footer {
  background: #2C1810;
  color: #fff;
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.footer p {
  opacity: 0.8;
  font-size: 0.9rem;
}

.footer-links {
  margin-top: 1rem;
}

.footer-links a {
  color: var(--accent-color);
  margin: 0 1rem;
  font-size: 0.9rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 1rem;
  }

  .nav {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

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

  .timeline::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    padding-left: 50px;
    padding-right: 0;
    justify-content: flex-start;
  }

  .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }

  .timeline-content::before,
  .timeline-item:nth-child(even) .timeline-content::before {
    left: -10px;
    right: auto;
    border-left: none;
    border-right: 10px solid var(--bg-card);
  }

  .timeline-dot {
    left: 20px;
    transform: none;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .article-content {
    padding: 1.5rem;
  }

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

@media (max-width: 480px) {
  .logo {
    font-size: 1.4rem;
  }

  .hero {
    padding: 2.5rem 15px;
  }

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

  .timeline-content {
    padding: 1rem;
  }

  .section-title {
    font-size: 1.4rem;
  }
}
