* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background-color: #fff;
  overflow-x: hidden;
}
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
}
.site-header {
  padding: 40px 0;
  border-bottom: 1px solid #e0e0e0;
  background-color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background-color: rgba(255,255,255,0.95);
}
.site-header .header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
@media (max-width: 768px) {
  .site-header .header-content {
    flex-direction: column;
    gap: 20px;
  }
}
.site-header .site-branding {
  text-align: left;
}
@media (max-width: 768px) {
  .site-header .site-branding {
    text-align: center;
  }
}
.site-header .site-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}
.site-header .site-title .site-title-link {
  color: #000;
  text-decoration: none;
  transition: opacity 0.3s ease;
}
.site-header .site-title .site-title-link:hover {
  opacity: 0.8;
}
.site-header .site-subtitle {
  font-size: 14px;
  color: #666;
  font-weight: 400;
}
.site-header .site-nav .nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}
@media (max-width: 768px) {
  .site-header .site-nav .nav-menu {
    gap: 20px;
  }
}
.site-header .site-nav .nav-link {
  color: #666;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}
.site-header .site-nav .nav-link:hover,
.site-header .site-nav .nav-link.active {
  color: #000;
}
.main-content {
  padding: 60px 0;
  min-height: calc(100vh - 200px);
}
.timeline-container {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}
.timeline-line {
  position: absolute;
  left: 50px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #e0e0e0 0%, #e0e0e0 100%);
}
@media (max-width: 768px) {
  .timeline-line {
    left: 20px;
  }
}
.timeline-item {
  position: relative;
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}
.timeline-item:nth-child(even) .timeline-content {
  margin-left: 120px;
}
@media (max-width: 768px) {
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 60px;
  }
}
.timeline-item:nth-child(odd) .timeline-content {
  margin-left: 120px;
}
@media (max-width: 768px) {
  .timeline-item:nth-child(odd) .timeline-content {
    margin-left: 60px;
  }
}
.timeline-marker {
  position: absolute;
  left: 40px;
  top: 30px;
  z-index: 2;
}
@media (max-width: 768px) {
  .timeline-marker {
    left: 10px;
  }
}
.timeline-marker .timeline-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #000;
  border: 4px solid #fff;
  box-shadow: 0 0 0 2px #e0e0e0;
  transition: all 0.3s ease;
}
.timeline-marker .timeline-dot:hover {
  transform: scale(1.2);
  box-shadow: 0 0 0 2px #000;
}
.timeline-content {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}
.timeline-content:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.timeline-card {
  padding: 30px;
}
.timeline-header {
  margin-bottom: 20px;
}
.timeline-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.timeline-date .date-day {
  font-weight: 700;
  font-size: 14px;
  color: #000;
}
.timeline-date .date-month,
.timeline-date .date-year {
  font-weight: 500;
}
.timeline-title {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0;
}
.timeline-title .timeline-title-link {
  color: #000;
  text-decoration: none;
  transition: opacity 0.3s ease;
}
.timeline-title .timeline-title-link:hover {
  opacity: 0.8;
}
.timeline-excerpt {
  color: #666;
  line-height: 1.7;
  margin-bottom: 24px;
  font-size: 15px;
}
.timeline-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
@media (max-width: 480px) {
  .timeline-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #000;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
}
.read-more:hover {
  gap: 12px;
}
.read-more:hover .read-more-icon {
  transform: translateX(4px);
}
.read-more .read-more-icon {
  transition: transform 0.3s ease;
}
.timeline-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.timeline-tags .tag {
  font-size: 12px;
  color: #666;
  background-color: #f5f5f5;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 500;
}
.post-article {
  max-width: 700px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  overflow: hidden;
  border: 1px solid #f0f0f0;
}
.post-header {
  padding: 40px 40px 30px 40px;
  border-bottom: 1px solid #f0f0f0;
}
@media (max-width: 768px) {
  .post-header {
    padding: 30px 20px 20px 20px;
  }
}
.post-meta {
  margin-bottom: 16px;
}
.post-date {
  font-size: 14px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}
.post-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  color: #000;
  margin-bottom: 16px;
}
@media (max-width: 768px) {
  .post-title {
    font-size: 24px;
  }
}
.post-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.post-tags .post-tag {
  font-size: 12px;
  color: #666;
  background-color: #f5f5f5;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}
.post-tags .post-tag:hover {
  background-color: #e8e8e8;
}
.post-content {
  padding: 40px;
}
@media (max-width: 768px) {
  .post-content {
    padding: 30px 20px;
  }
}
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  color: #000;
  font-weight: 600;
  line-height: 1.3;
  margin: 32px 0 16px 0;
}
.post-content h1:first-child,
.post-content h2:first-child,
.post-content h3:first-child,
.post-content h4:first-child,
.post-content h5:first-child,
.post-content h6:first-child {
  margin-top: 0;
}
.post-content h1 {
  font-size: 28px;
}
.post-content h2 {
  font-size: 24px;
}
.post-content h3 {
  font-size: 20px;
}
.post-content h4 {
  font-size: 18px;
}
.post-content h5 {
  font-size: 16px;
}
.post-content h6 {
  font-size: 14px;
}
.post-content p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: #333;
}
.post-content p:last-child {
  margin-bottom: 0;
}
.post-content a {
  color: #000;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: opacity 0.3s ease;
}
.post-content a:hover {
  opacity: 0.8;
}
.post-content ul,
.post-content ol {
  margin: 20px 0;
  padding-left: 24px;
}
.post-content ul li,
.post-content ol li {
  margin-bottom: 8px;
  line-height: 1.7;
}
.post-content blockquote {
  border-left: 4px solid #e0e0e0;
  margin: 32px 0;
  padding: 16px 24px;
  background-color: #fafafa;
  border-radius: 0 8px 8px 0;
  font-style: italic;
}
.post-content blockquote p {
  margin-bottom: 0;
}
.post-content code {
  background-color: #f5f5f5;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 14px;
}
.post-content pre {
  background-color: #f8f8f8;
  border-radius: 8px;
  padding: 20px;
  margin: 24px 0;
  overflow-x: auto;
  border: 1px solid #e8e8e8;
}
.post-content pre code {
  background: none;
  padding: 0;
}
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 24px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.post-footer {
  padding: 30px 40px 40px 40px;
  border-top: 1px solid #f0f0f0;
}
@media (max-width: 768px) {
  .post-footer {
    padding: 20px;
  }
}
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}
@media (max-width: 768px) {
  .post-nav {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
.post-nav-item.post-nav-prev {
  text-align: left;
}
.post-nav-item.post-nav-next {
  text-align: right;
}
@media (max-width: 768px) {
  .post-nav-item.post-nav-next {
    text-align: left;
  }
}
.post-nav-link {
  display: block;
  padding: 16px;
  background-color: #fafafa;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}
.post-nav-link:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}
.post-nav-link .post-nav-label {
  display: block;
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  font-weight: 500;
}
.post-nav-link .post-nav-title {
  display: block;
  font-weight: 600;
  color: #000;
  line-height: 1.3;
}
.back-to-timeline {
  text-align: center;
}
.back-to-timeline .back-link {
  color: #666;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
}
.back-to-timeline .back-link:hover {
  color: #000;
}
.archive-container {
  max-width: 700px;
  margin: 0 auto;
}
.archive-header {
  text-align: center;
  margin-bottom: 60px;
}
.archive-header .archive-title {
  font-size: 36px;
  font-weight: 700;
  color: #000;
  margin-bottom: 8px;
}
.archive-header .archive-subtitle {
  color: #666;
  font-size: 16px;
}
.archive-year {
  margin-bottom: 50px;
}
.archive-year .year-title {
  font-size: 24px;
  font-weight: 700;
  color: #000;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
}
.archive-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid #f5f5f5;
  transition: all 0.3s ease;
}
.archive-item:last-child {
  border-bottom: none;
}
.archive-item:hover {
  background-color: #fafafa;
  margin: 0 -20px;
  padding: 16px 20px;
  border-radius: 8px;
}
.archive-item .archive-date {
  font-size: 14px;
  color: #666;
  font-weight: 500;
  min-width: 60px;
  text-align: center;
  background-color: #f5f5f5;
  padding: 8px 12px;
  border-radius: 6px;
}
.archive-item .archive-post-title {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  flex: 1;
}
.archive-item .archive-post-title .archive-post-link {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}
.archive-item .archive-post-title .archive-post-link:hover {
  color: #000;
}
.site-footer {
  padding: 40px 0;
  border-top: 1px solid #e0e0e0;
  background-color: #fafafa;
}
.site-footer .footer-content {
  text-align: center;
}
.site-footer .footer-text {
  font-size: 14px;
  color: #666;
}
.site-footer .footer-text a {
  color: #000;
  text-decoration: none;
}
.site-footer .footer-text a:hover {
  text-decoration: underline;
}
.pagination-nav {
  margin-top: 60px;
  text-align: center;
}
.pagination-nav .page-number,
.pagination-nav .extend {
  display: inline-block;
  padding: 8px 16px;
  margin: 0 4px;
  color: #666;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-weight: 500;
}
.pagination-nav .page-number:hover,
.pagination-nav .extend:hover {
  background-color: #f0f0f0;
  color: #000;
}
.pagination-nav .page-number.current,
.pagination-nav .extend.current {
  background-color: #000;
  color: #fff;
}
.empty-timeline,
.empty-archive {
  text-align: center;
  padding: 80px 20px;
  color: #666;
  font-size: 16px;
}
@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
  .site-header {
    padding: 20px 0;
  }
  .site-title {
    font-size: 24px;
  }
  .main-content {
    padding: 40px 0;
  }
  .timeline-card {
    padding: 20px;
  }
  .timeline-title {
    font-size: 18px;
  }
  .post-header {
    padding: 20px;
  }
  .post-title {
    font-size: 20px;
  }
  .post-content {
    padding: 20px;
  }
  .post-footer {
    padding: 20px;
  }
}
.timeline-item {
  will-change: transform, opacity;
}
.timeline-content {
  will-change: transform;
}
@media print {
  .site-header,
  .site-footer,
  .post-nav,
  .back-to-timeline {
    display: none;
  }
  .timeline-line,
  .timeline-marker {
    display: none;
  }
  .timeline-content {
    box-shadow: none;
    border: 1px solid #ccc;
    margin-bottom: 20px;
  }
  body {
    color: #000;
    background: #fff;
  }
}
@-moz-keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@-webkit-keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@-o-keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
