/* Main color overrides */
:root {
  --global-bg: #f0f2f5;
  --font-color: #333333;
  --second-font-color: #666666;
  --third-font-color: #999999;
  --card-bg: #ffffff;
  --theme-color: #6366f1;
}

/* Banner area (homepage header) */
#page-header {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4338ca 100%) !important;
}

/* Card rounded corners and shadow */
.article-sort-item,
.recent-post-item,
.card-widget {
  border-radius: 10px !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
}

/* System font stack */
body {
  font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

code, pre {
  font-family: 'SF Mono', 'Fira Code', monospace;
}

/* Link color */
a, .article-title a:hover {
  color: #6366f1 !important;
}

/* LOGC brand cards on homepage */
#logc-brand {
  max-width: 1200px;
  margin: 0 auto 32px;
  padding: 0 16px;
}
.logc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.logc-card {
  display: block;
  background: #fff;
  border-radius: 12px;
  padding: 24px 18px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none !important;
  color: inherit !important;
}
.logc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(99,102,241,0.12);
}
.logc-letter {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.logc-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: #1e1b4b;
  margin-bottom: 8px;
}
.logc-card p {
  font-size: 13px;
  color: #666;
  line-height: 1.7;
  margin: 0;
}
@media (max-width: 900px) {
  .logc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .logc-grid {
    grid-template-columns: 1fr;
  }
}

/* Tag and category button styles */
.tag-cloud-list a,
.category-list a {
  background: #eef2ff !important;
  color: #6366f1 !important;
  border-radius: 10px !important;
  padding: 3px 12px !important;
}
