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

html, body {
  height: 100%;
  width: 100%;
  background-color: #faf9f8;
  font-family: system-ui, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

.site-header {
  padding: 1rem 2rem;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #1e3c72, #2b4c7c);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  text-decoration: none;
  transition: opacity 0.2s;
  display: inline-flex;
  flex-direction: column;
  gap: 0.125rem;
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #1e3c72, #2b4c7c);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  text-decoration: none;
  transition: opacity 0.2s;
  line-height: 1;
}

.site-title:hover {
  opacity: 0.8;
}

.site-name {
  font-size: 1.5rem;
}

.site-subtitle {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: #2c3e50;
  background: none;
  -webkit-background-clip: initial;
  margin-top: 2px;
}


/* Nav */
.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: #2c3e50;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  color: #1e3c72;
  border-bottom: 2px solid #1e3c72;
}

@media (max-width: 480px) {
  .site-header {
    padding: 0.8rem 1rem;
  }
  .site-title {
      font-size: 1.2rem;
  }

  .nav-links {
      gap: 1rem;
  }
  .nav-links a {
      font-size: 0.9rem;
  }
}
.site-footer {
  padding: 1.2rem 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: #2c3e50;
  width: 100%;
  font-weight: 450;
  backdrop-filter: blur(2px);
  transition: background 0.2s;
}

.footer-stats {
  font-size: 0.85rem;
  color: #5a6e7c;
  text-align: center;
}

.site-footer a {
    color: #1f6392;
    text-decoration: none;
    border-bottom: 1px dotted #90b4d0;
    transition: color 0.2s, border-color 0.2s;
}

.site-footer a:hover {
    color: #0c4a6e;
    border-bottom-color: #0c4a6e;
}

@media (max-width: 480px) {
  .site-footer {
      padding: 0.9rem 1rem;
      font-size: 0.8rem;
  }
}
nav[aria-label="path"] {
  margin: 0 auto;
  margin-top: 2rem;
  max-width: 1200px;
}

.post-nav__list {
  list-style: none;
  margin: 0 auto 0;
  padding: 1.25rem 0 0;
  width: 100%;
  max-width: 800px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}

.post-nav__item {
  min-width: 0;
  display: block;
}

.post-nav__item a {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  color: #1e3c72;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s, transform 0.08s;
  font-weight: 600;
  width: 100%;
  box-sizing: border-box;
}

.post-nav__index a {
  color: #2c3e50;
  font-weight: 700;
}

.post-nav__item a:hover,
.post-nav__item a:focus {
  color: #0c4a6e;
}

.post-nav__item.empty {
  visibility: hidden;
  pointer-events: none;
  display: none;
}

.breadcrumbs {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0;
  margin: 0 0 1rem 0;
  font-size: 0.95rem;
  color: #5a6e7c;
  flex-wrap: wrap;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
}

.breadcrumbs li + li::before {
  content: "›";
  margin: 0 0.5rem;
  margin-left: 0;
  color: #c5d2df;
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: #1e3c72;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s, opacity 0.15s;
}

.breadcrumbs a:hover {
  color: #0c4a6e;
  opacity: 0.85;
}

.breadcrumbs [aria-current="page"] {
  color: #2c3e50;
  font-weight: 700;
  cursor: default;
}

@media (max-width: 600px) {
  .post-nav__list {
    padding-left: 1rem;
    padding-right: 1rem;
    gap: 0.4rem;
    max-width: 100%;
  }

  .post-nav__item a {
    padding: 0.5rem 0.6rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .breadcrumbs {
    font-size: 0.9rem;
    gap: 0.4rem;
  }

  .breadcrumbs li + li::before {
    margin: 0 0.4rem;
  }

  .breadcrumbs a {
    font-weight: 600;
  }
}
.dictionary-list {
  max-width: 800px;
  margin: 0 auto;
}

.dictionary-container {
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
}

.dict-section {
  margin-bottom: 2rem;
}

.section-letter {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1e3c72;
  border-bottom: 2px solid #1e3c72;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.dictionary-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.dictionary-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e0e7ed;
  gap: 2rem;
}

.dict-section:last-child .dictionary-list li:last-child {
  border-bottom: none;
}

.dictionary-list .word {
  font-weight: 700;
  color: #1e3c72;
  font-size: 1.1rem;
  min-width: 120px;
  flex-shrink: 0;
}

.dictionary-list .description {
  color: #2c3e50;
  font-size: 1rem;
  text-align: right;
  flex: 1;
  word-break: break-word;
}

@media (min-width: 601px) and (max-width: 768px) {
  .dictionary-container {
      max-width: 500px;
  }
}

@media (max-width: 600px) {
  .dictionary-container {
    max-width: 500px;
  }

  .dictionary-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .dictionary-list .description {
    text-align: left;
    padding-left: 1rem;
  }

  .dictionary-list .word {
    min-width: auto;
  }

  .section-letter {
    font-size: 1.5rem;
  }
}
.article {
  max-width: 800px;
  margin: 0 auto;
  background: transparent;
}

.article h1 {
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: 2rem;
  color: #1e3c72;
}

.article .meta {
  color: #6b7280;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.article figure {
  margin: 1rem 0;
}

.article figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(16,24,40,0.06);
}

.article figure figcaption {
  margin-top: 0.5rem;
  color: #6b7280;
  font-size: 0.9rem;
}

.article .post-content {
  color: #2c3e50;
  line-height: 1.75;
  font-size: 1rem;
}

.article .post-content h2,
.article .post-content h3 {
  color: #1e2a3e;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: #1e3c72;
}

.article .post-content p {
  margin-bottom: 1rem;
}

.article .post-content ul,
.article .post-content ol {
  margin: 0.75rem 0 1rem 1.25rem;
}

.article .post-content pre {
  background: #0f1724;
  color: #e6eef8;
  padding: 0.75rem;
  border-radius: 8px;
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", monospace;
  font-size: 0.95rem;
}

.article footer {
  margin-top: 1.5rem;
  color: #6b7280;
  font-size: 0.95rem;
}

.article footer a {
  color: #2563eb;
  text-decoration: none;
  border-bottom: 1px dotted rgba(37,99,235,0.25);
}

.article footer a:hover {
  color: #1e3c72;
  border-bottom-color: rgba(30,60,114,0.4);
}

.article blockquote {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-left: 4px solid rgba(30,60,114,0.12);
  background: linear-gradient(90deg, rgba(37,99,235,0.03), transparent);
  color: #374151;
  font-style: italic;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(16,24,40,0.03);
}

.article blockquote p {
  margin: 0;
  line-height: 1.6;
}

.article blockquote::before {
  content: "“";
  font-size: 2rem;
  color: rgba(30,60,114,0.15);
  margin-right: 0.25rem;
  vertical-align: top;
  line-height: 0;
}

.article code {
  background: rgba(15,23,36,0.04);
  color: #09203f;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", monospace;
  font-size: 0.92rem;
  line-height: 1;
  white-space: nowrap;
  overflow: auto;
}

.article pre {
  background: #0f1724;
  color: #e6eef8;
  padding: 0.75rem;
  border-radius: 8px;
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", monospace;
  font-size: 0.95rem;
  line-height: 1.5;
  box-shadow: 0 6px 18px rgba(16,24,40,0.06);
}

.article pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
  white-space: pre;
}

.article .code-header {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #9aa6b2;
  margin-bottom: 0.5rem;
}

.centered-heading {
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.02em;
  color: #1e2a3e;
  background: linear-gradient(135deg, #1e3c72, #2b4c7c);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 2px 5px rgba(0,0,0,0.05);
  margin: 0;
  line-height: 1.2;
  transition: transform 0.2s ease;
  padding-bottom: 2rem;
}

.content-area {
  flex: 1 0 auto;
  padding: 0 2rem;
}

.article-date {
  font-size: 0.8rem;
  color: #2c3e50;
}

@media (max-width: 600px) {
  .content-area {
    padding: 0 1rem;
  }

  .article {
    padding: 0.75rem;
  }

  .article header h1 {
    font-size: 1.5rem;
  }

  .article code {
    font-size: 0.85rem;
  }

  .article pre {
    font-size: 0.87rem;
    padding: 0.6rem;
  }

  .article blockquote {
    padding: 0.6rem 0.9rem;
    border-left-width: 3px;
  }

  .centered-heading {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
}
.middle-area {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.main-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 400px;
  /* grid-template-columns: 50%; */
  justify-content: center;
  gap: 2rem;
  padding-top: 2rem;
  box-sizing: border-box;
}

.news-section {
  background: transparent;
  border-radius: 12px;
}

.news-section h2 {
  font-size: 1.5rem !important;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-card {
  border-bottom: 1px solid #e6edf2;
  padding-bottom: 1rem;
}

.news-card h3 {
  font-size: 1.1rem;
  color: #1e3c72;
  margin-bottom: 0.4rem;
}

.news-card .meta {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 0.6rem;
}

.news-card p {
  color: #2c3e50;
  line-height: 1.5;
  font-size: 0.97rem;
}

.sections-card {
  margin-top: 2rem;
}

.sections-card h4 {
  font-size: 1.25rem;
  color: #1e3c72;
  margin-bottom: 0.5rem;
}

.sections-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-left: 0;
  margin: 0;
}

.sections-list a {
  text-decoration: none;
  color: #2c3e50;
  padding: 0.4rem 0rem;
  display: block;
  font-weight: 600;
}

.sections-list a:hover {
}

.news-card a {
  text-decoration: none;
}

@media (max-width: 900px) {
  .main-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .middle-area {
    padding: 1rem;
  }
}
.sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.latest-card {
}

.latest-card h4 {
  font-size: 1.25rem;
  color: #1e3c72;
  margin-bottom: 0.5rem;
}

.latest-card .post-title {
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.latest-card .post-excerpt {
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.4;
}

.latest-card .meta {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0.6rem 0;
}

.latest-card a {
  text-decoration: none;
}
