/* ============================================================
   我的个人博客 · 简约风
   ============================================================ */

:root {
  --accent: #4f7cff;
  --accent-soft: #eef3ff;
  --text: #33353f;
  --text-2: #8a8d99;
  --bg: #fafafc;
  --card: #ffffff;
  --line: #ececf1;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(30, 30, 60, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 15px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

/* ---------- 头部 ---------- */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.brand .avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f7cff, #7aa5ff);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
}
.nav { display: flex; gap: 4px; }
.nav a {
  padding: 6px 15px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-2);
  transition: 0.15s;
}
.nav a:hover { color: var(--accent); background: var(--accent-soft); }
.nav a.active { color: var(--accent); font-weight: 600; background: var(--accent-soft); }

/* ---------- 个人名片 ---------- */
.profile {
  background: linear-gradient(135deg, #4f7cff 0%, #6f9bff 60%, #8ab4ff 100%);
  color: #fff;
  border-radius: 18px;
  margin: 26px 0;
  padding: 40px 44px;
  display: flex;
  align-items: center;
  gap: 30px;
}
.profile .avatar-lg {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: 3px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 800;
  flex: none;
}
.profile h1 { font-size: 26px; margin-bottom: 6px; }
.profile .tagline { font-size: 15px; opacity: 0.92; margin-bottom: 14px; }
.profile .tags { display: flex; gap: 8px; flex-wrap: wrap; }
.profile .tags span {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 12px;
  padding: 3px 12px;
  border-radius: 20px;
}

/* ---------- 主体布局 ---------- */
.layout { display: grid; grid-template-columns: 1fr 270px; gap: 26px; padding-bottom: 50px; }

/* ---------- 文章列表 ---------- */
.post {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 30px;
  margin-bottom: 18px;
  transition: 0.2s;
  border: 1px solid transparent;
}
.post:hover { transform: translateY(-3px); border-color: #d8e4ff; box-shadow: 0 8px 22px rgba(79, 124, 255, 0.12); }
.post .meta { font-size: 13px; color: var(--text-2); margin-bottom: 8px; display: flex; gap: 14px; }
.post .meta .cat { color: var(--accent); font-weight: 600; }
.post h2 { font-size: 20px; line-height: 1.45; margin-bottom: 8px; }
.post h2 a:hover { color: var(--accent); }
.post .summary { color: #5a5d6b; font-size: 14px; margin-bottom: 12px; }
.post .foot { display: flex; align-items: center; justify-content: space-between; }
.post .tags { display: flex; gap: 6px; }
.post .tags span {
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 6px;
}
.post .read { font-size: 13px; color: var(--accent); font-weight: 600; }
.post .read:hover { text-decoration: underline; }

/* ---------- 侧边栏 ---------- */
.side-box {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  margin-bottom: 18px;
}
.side-box h3 {
  font-size: 15px;
  margin-bottom: 14px;
  padding-left: 10px;
  border-left: 4px solid var(--accent);
  line-height: 1.2;
}
.side-box .about-line { font-size: 13px; color: var(--text-2); margin-bottom: 14px; }
.side-box .contact li { font-size: 13px; margin-bottom: 9px; display: flex; gap: 9px; align-items: center; color: #5a5d6b; }
.side-box .contact li svg { flex: none; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-2);
  padding: 3px 11px;
  border-radius: 20px;
  transition: 0.15s;
}
.tag-cloud a:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

/* ---------- 关于页 / 文章页 ---------- */
.page-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 42px;
  margin-bottom: 22px;
}
.page-card h1 { font-size: 24px; margin-bottom: 18px; }
.page-card h2 { font-size: 18px; margin: 24px 0 10px; }
.page-card p { margin-bottom: 12px; color: #4a4d5a; }
.page-card ul.dash li { padding-left: 20px; position: relative; margin-bottom: 8px; color: #4a4d5a; }
.page-card ul.dash li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }

.timeline { margin-top: 8px; }
.timeline li {
  display: flex;
  gap: 16px;
  padding: 10px 0 10px 4px;
  border-left: 2px solid var(--line);
  padding-left: 20px;
  position: relative;
  font-size: 14px;
  color: #4a4d5a;
}
.timeline li::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  left: -6px;
  top: 18px;
}
.timeline li b { flex: none; width: 74px; color: var(--accent); }

.article-head { border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 20px; }
.article-head h1 { font-size: 26px; margin-bottom: 10px; }
.article-head .meta { font-size: 13px; color: var(--text-2); display: flex; gap: 14px; }
.article-body p { margin-bottom: 14px; }
.article-body blockquote {
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  padding: 12px 18px;
  border-radius: 0 8px 8px 0;
  color: #4a4d5a;
  font-size: 14px;
  margin: 16px 0;
}
.article-body pre {
  background: #2b2e3b;
  color: #e6e8f0;
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 13px;
  overflow-x: auto;
  margin: 16px 0;
  font-family: Consolas, "Courier New", monospace;
}
.article-nav { display: flex; justify-content: space-between; margin-top: 26px; font-size: 14px; }
.article-nav a { color: var(--accent); font-weight: 600; }
.article-nav a:hover { text-decoration: underline; }

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--card);
  text-align: center;
  padding: 26px 20px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 2;
}

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .profile { flex-direction: column; text-align: center; padding: 32px 24px; }
  .profile .tags { justify-content: center; }
  .page-card { padding: 26px 22px; }
}

.beian-row{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px}
.beian-icon{width:20px;height:22px;vertical-align:middle;margin-right:4px}
.beian-icp{margin-left:14px}
.beian-row a{color:inherit;text-decoration:none}
.beian-row a:hover{text-decoration:underline}
