html, body {
  height: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background: #0f172a;
  color: #e2e8f0;
  font-family: 'Inter', 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-container {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  height: 100vh;
}

.site-sidebar {
  width: 260px;
  background: linear-gradient(135deg, #1a233a 0%, #0f172a 100%);
  box-shadow: 2px 0 16px #1dd1a122;
  padding: 2.5rem 1.2rem 2.5rem 1.2rem;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 100vh;
  z-index: 100;
  overflow-y: auto;
  max-height: 100vh;
  flex-shrink: 0;
}

.site-main {
  flex: 1 1 0;
  padding: 2.5rem 2.5rem 2.5rem 2rem;
  background: none;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.nav-bar {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  letter-spacing: 0.04em;
}

.nav-logo a {
  color: #1dd1a1;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-articles {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  max-height: 320px;
  overflow-y: auto;
}

.nav-articles li a {
  color: #1dd1a1;
  text-decoration: none;
  display: block;
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  font-size: 1.05rem;
  transition: background 0.2s, color 0.2s;
}

.nav-articles li a:hover, .nav-articles li a.active {
  background: linear-gradient(90deg, #1dd1a1 0%, #3498db 100%);
  color: #fff;
}

.nav-archives {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 200px;
  overflow-y: auto;
}

.nav-archives li a {
  color: #e2e8f0;
  text-decoration: none;
  display: block;
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  font-size: 1.02rem;
  transition: background 0.2s, color 0.2s;
}

.nav-archives li a:hover, .nav-archives li a.active {
  background: linear-gradient(90deg, #3498db 0%, #1dd1a1 100%);
  color: #fff;
}

.nav-section-title {
  color: #b0eaff;
  font-size: 1.08rem;
  margin-bottom: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-bar hr {
  border: none;
  border-top: 1px solid #2d3748;
  margin: 2rem 0 1.2rem 0;
}

.home-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.home-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(90deg, #1dd1a1 20%, #3498db 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-hero p {
  color: #b0eaff;
  font-size: 1.2rem;
}

.archive-article-content {
  background: #1e293b;
  border-radius: 16px;
  box-shadow: 0 4px 24px #1dd1a122;
  padding: 2.5rem 2rem;
  margin-bottom: 3.5rem;
  color: #e2e8f0;
  font-size: 1.15rem;
  line-height: 1.85;
}

.archive-article-content h2, .archive-article-content h3 {
  color: #1dd1a1;
  margin-top: 2.5rem;
  margin-bottom: 1.2rem;
  font-size: 1.5rem;
  line-height: 1.3;
}

.archive-article-content p {
  margin: 1.1em 0;
}

.archive-article-content ul, .archive-article-content ol {
  margin: 1.1em 0 1.1em 2em;
}

.archive-article-content details {
  margin: 1.2rem 0 2rem 0;
  background: #0f172a;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  color: #b0eaff;
  box-shadow: 0 2px 8px #1dd1a122;
}

.archive-article-content summary {
  cursor: pointer;
  font-weight: 600;
  color: #1dd1a1;
}

.archives-list-page h1 {
  color: #1dd1a1;
  margin-bottom: 2rem;
}

.archives-list {
  list-style: none;
  padding: 0;
}

.archives-list li {
  margin-bottom: 1.1rem;
  font-size: 1.08rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.archives-list a {
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.archives-list a:hover {
  color: #1dd1a1;
}

.archive-date {
  color: #b0eaff;
  font-size: 0.98em;
}

.archives-btn {
  background: linear-gradient(90deg, #1dd1a1 0%, #3498db 100%);
  color: #fff;
  padding: 0.6em 1.3em;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.08rem;
  box-shadow: 0 2px 8px #1dd1a122;
  transition: background 0.2s, color 0.2s;
  margin-left: 1.5rem;
}

.archives-btn:hover {
  background: linear-gradient(90deg, #3498db 0%, #1dd1a1 100%);
  color: #fff;
}

.home-header-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 2.5rem;
}

@media (max-width: 900px) {
  html, body {
    height: auto;
    min-height: unset;
  }
  body {
    display: block;
    height: auto;
    min-height: unset;
  }
  .site-container {
    flex-direction: column;
    min-height: unset;
    height: auto;
    display: block;
  }
  .site-sidebar {
    width: 100%;
    min-height: unset;
    position: static;
    padding: 1.2rem 0.5rem;
    height: auto;
    z-index: auto;
    overflow-y: visible;
    max-height: none;
    display: block;
  }
  .site-main {
    padding: 1.2rem 0.5rem;
    min-height: unset;
    overflow-y: visible;
    display: block;
  }
  .archive-article-content {
    padding: 1.2rem 0.5rem;
    font-size: 1.05rem;
  }
  .archive-article-content h2, .archive-article-content h3 {
    font-size: 1.15rem;
  }
  .home-header-bar {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 1.2rem;
  }
  .archives-btn {
    width: 100%;
    margin: 0.5rem 0 0 0;
    text-align: center;
  }
} 