/* --- 全局样式 --- */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3 {
  color: #1a1a1a;
  line-height: 1.2;
}

a {
  color: #007bff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* --- 布局容器 --- */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

main.container {
  padding-top: 2rem;
  padding-bottom: 2rem;
  flex: 1; /* 让主内容区域填充剩余空间 */
}

/* --- 页头 --- */
.site-header {
  background-color: #fff;
  border-bottom: 1px solid #e9ecef;
  padding: 1rem 0;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
}

/* --- 页脚 --- */
.site-footer {
  background-color: #343a40;
  color: #f8f9fa;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
}

/* --- 索引页列表样式 --- */
ul {
  list-style-type: none;
  padding-left: 0;
}

ul li {
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  margin-bottom: 0.5rem;
  transition: transform 0.2s ease-in-out;
}

ul li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

ul li a {
  display: block;
  padding: 1rem;
  font-size: 1.1rem;
}
