/*
Theme Name: SEO 双栏自适应主题
Version: 1.0
Description: 双栏、SEO、响应式、暗黑模式
Author: 自定义
*/
:root {
  --body: #fff;
  --text: #222;
  --card: #f8f9fa;
  --border: #eee;
  --link: #007bff;
  --sidebar: #fafbfc;
}
[data-theme="dark"] {
  --body: #121212;
  --text: #e0e0e0;
  --card: #1e1e1e;
  --border: #333;
  --link: #4da9ff;
  --sidebar: #1a1a1a;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: all 0.3s;
}
body {
  background: var(--body);
  color: var(--text);
  font-family: "Microsoft YaHei", sans-serif;
  line-height: 1.7;
}
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}
#dark-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 18px;
  cursor: pointer;
  z-index: 999;
}
.header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 30px;
}
.site-title a {
  font-size: 26px;
  font-weight: bold;
  color: var(--text);
  text-decoration: none;
}
.nav {
  margin-top: 15px;
}
.nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  flex-wrap: wrap;
}
.nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}
.row {
  display: flex;
  gap: 30px;
}
.content {
  width: 72%;
}
.sidebar {
  width: 28%;
}
.post {
  background: var(--card);
  padding: 25px;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.post h2 a {
  color: var(--text);
  text-decoration: none;
}
.meta {
  font-size: 13px;
  opacity: 0.7;
  margin: 10px 0;
}
.single-title {
  font-size: 28px;
  margin-bottom: 15px;
}
.entry-content {
  font-size: 16px;
  line-height: 1.8;
}
.entry-content p {
  margin-bottom: 1em;
}
.widget {
  background: var(--sidebar);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.widget h3 {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.footer {
  border-top: 1px solid var(--border);
  padding: 25px 0;
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
  opacity: 0.8;
}
@media (max-width:768px) {
  .row {
    flex-direction: column;
  }
  .content, .sidebar {
    width: 100%;
  }
}

/* 翻页样式 */
.pagination {
  margin: 20px 0;
  text-align: center;
}
.pagination .page-numbers {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 4px;
  border-radius: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
}
.pagination .current {
  background: var(--main);
  color: #fff !important;
  border-color: var(--main);
}
.pagination a:hover {
  background: var(--main);
  color: #fff !important;
}