/*
Theme Name: Simple SEO Pro
Version: 3.0
Description: 双栏SEO主题 + 上一篇下一篇 + 相关文章8篇 + 暗黑模式
Author: Custom
*/
:root {
  --body: #ffffff;
  --text: #333333;
  --card: #f9f9f9;
  --border: #e0e0e0;
  --main: #007bff;
  --sidebar: #f5f7fa;
  --gray: #777;
}
[data-theme="dark"] {
  --body: #10141c;
  --text: #e0e0e0;
  --card: #1c2331;
  --border: #2d3748;
  --main: #4dabf7;
  --sidebar: #1c2331;
  --gray: #a0aec0;
}
* {
  margin:0; padding:0; box-sizing:border-box;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
body {
  background: var(--body);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.8;
}
a { color: var(--main); text-decoration: none; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 15px; }

/* 暗黑按钮 */
#dark {
  position: fixed; top:20px; right:20px;
  width:44px; height:44px; border-radius:50%;
  background: var(--card); border:1px solid var(--border);
  color: var(--text); font-size:17px; cursor:pointer; z-index:99;
}

/* 头部 */
.header {
  padding: 25px 0; border-bottom:1px solid var(--border);
  margin-bottom: 35px;
}
.logo { font-size: 26px; font-weight: bold; }
.logo a { color: var(--text); }
.nav { margin-top:12px; }
.nav ul {
  display: flex; gap:20px; list-style:none; flex-wrap:wrap;
}
.nav a { color: var(--text); font-weight:500; }

/* 双栏 */
.row { display: flex; gap:30px; margin-bottom:40px; }
.content { width: 70%; }
.sidebar { width: 30%; }

/* 文章卡片 */
.post {
  background: var(--card); padding:25px; border-radius:12px;
  border:1px solid var(--border); margin-bottom:20px;
}
.post h2 { font-size:22px; margin-bottom:10px; line-height:1.4; }
.post h2 a { color: var(--text); }
.meta { font-size:13px; color:var(--gray); margin-bottom:12px; }

/* 文章内页 */
.single-title { font-size:29px; margin-bottom:15px; line-height:1.4; }
.entry { font-size:16px; line-height:1.9; }
.entry p { margin-bottom:1.2em; }
.entry img { max-width:100%; height:auto; border-radius:8px; }

/* 上一篇 下一篇 */
.post-nav {
  display: flex; justify-content: space-between;
  margin: 30px 0; padding:20px; background:var(--card);
  border-radius:10px; border:1px solid var(--border);
}
.post-nav a { color:var(--text); }

/* 相关文章 8篇 */
.related { margin:40px 0; }
.related h3 { margin-bottom:15px; }
.related-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap:12px;
}
.related-item {
  background:var(--card); padding:12px; border-radius:8px;
  border:1px solid var(--border); text-align:center;
}
.related-item a {
  font-size:14px; color:var(--text); line-height:1.4;
}

/* 侧边栏 */
.widget {
  background:var(--sidebar); padding:20px; border-radius:10px;
  margin-bottom:20px; border:1px solid var(--border);
}
.widget h3 { font-size:16px; margin-bottom:15px; padding-bottom:8px; border-bottom:1px solid var(--border); }
.widget li { padding:6px 0; list-style:none; border-bottom:1px dashed var(--border); }

/* 底部 */
.footer {
  border-top:1px solid var(--border); padding:25px 0;
  text-align:center; font-size:14px; color:var(--gray);
}

/* 自适应 */
@media (max-width:768px) {
  .row { flex-direction:column; }
  .content,.sidebar { width:100%; }
  .related-grid { grid-template-columns: repeat(2,1fr); }
  .single-title { font-size:24px; }
}
/* 翻页样式 */
.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;
}