/* ========== 主题变量 ========== */
:root {
  --bg-body: #ffffff;
  --text-primary: #222;
  --text-secondary: #888;
  --link-color: #007bff;
  --link-hover: #0056b3;
  --border-color: #f0f0f0;
  --heading-color: #111;
}

body.dark-mode {
  /* 深色主题 */
  --bg-body: #121212;
  --text-primary: #e0e0e0;
  --text-secondary: #aaa;
  --link-color: #4da6ff;
  --link-hover: #80ccff;
  --border-color: #333;
  --heading-color: #fff;
}

/* ========== 原有样式（改用变量） ========== */

body {
  font-family: Arial, sans-serif;
  max-width: 800px;
  margin: 50px auto;
  padding: 0 20px;
  color: var(--text-primary);
  line-height: 1.7;
  background-color: var(--bg-body);
  transition: background-color 0.3s, color 0.3s; /* 平滑过渡 */
}

h1 {
  color: var(--heading-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

ul {
  list-style: none;
  padding: 0;
}

li {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
}

li:last-child {
  border-bottom: none;
}

a {
  color: var(--link-color);
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.date {
  color: var(--text-secondary);
  font-size: 0.92em;
  white-space: nowrap;
}

.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-body);
  color: var(--text-primary);
  font-size: 16px;
  cursor: pointer;
  z-index: 100;
}