/* ===== 二零六技术 · 全站样式 ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #1c2128;
  --text-2: #59636e;
  --border: #e3e6ea;
  --accent: #3b5bdb;
  --cs: #512bd4;      /* C# / .NET 紫 */
  --vibe: #d6336c;    /* Vibe Coding 玫红 */
  --code-bg: #10162a;
  --code-text: #dbe2f4;
}

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container { max-width: 780px; margin: 0 auto; padding: 0 20px; width: 100%; }

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

/* ---- 顶部导航 ---- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.site-title { font-weight: 700; font-size: 18px; color: var(--text); letter-spacing: .5px; }
.site-title:hover { text-decoration: none; color: var(--accent); }
.site-title .mark { color: var(--cs); }
.main-nav a { margin-left: 22px; color: var(--text-2); font-size: 15px; }
.main-nav a:hover { color: var(--accent); text-decoration: none; }

main { flex: 1; }

/* ---- 首页 hero ---- */
.hero { padding: 52px 0 8px; }
.hero h1 { font-size: 30px; line-height: 1.3; }
.hero .slogan { color: var(--text-2); margin-top: 10px; font-size: 16px; }
.hero .intro { margin-top: 14px; color: var(--text-2); font-size: 15px; }

.section-title {
  margin: 38px 0 18px; font-size: 20px;
  display: flex; align-items: center; gap: 12px;
}
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ---- 文章卡片 ---- */
.post-list { list-style: none; }
.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 26px;
  margin-bottom: 16px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.post-card:hover { box-shadow: 0 6px 24px rgba(28, 33, 40, .08); transform: translateY(-2px); }
.post-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-2); margin-bottom: 8px;
}
.post-meta time { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.tag {
  display: inline-block; padding: 1px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 1.7;
}
.tag-cs { color: var(--cs); background: #efeafd; }
.tag-vibe { color: var(--vibe); background: #fdeaf1; }
.post-card h2 { font-size: 19px; line-height: 1.5; }
.post-card h2 a { color: var(--text); }
.post-card h2 a:hover { color: var(--accent); text-decoration: none; }
.excerpt { margin-top: 8px; color: var(--text-2); font-size: 14.5px; }

/* ---- 独立页 ---- */
.page { padding: 44px 0 56px; }
.page h1 { font-size: 26px; margin-bottom: 6px; }
.page-sub { color: var(--text-2); font-size: 14px; }
.page-body { margin-top: 24px; }
.page-body h2 { font-size: 19px; margin: 28px 0 10px; }
.page-body p { margin: 10px 0; }
.page-body ul { padding-left: 22px; margin: 10px 0; }
.page-body li { margin: 6px 0; }

/* ---- 文章正文 ---- */
.post { padding: 44px 0 56px; }
.post-header { margin-bottom: 28px; }
.post-header h1 { font-size: 28px; line-height: 1.45; margin-top: 10px; }

.post-content { font-size: 16px; }
.post-content h2 {
  font-size: 20px; margin: 34px 0 14px; padding-left: 12px;
  border-left: 4px solid var(--cs); line-height: 1.5;
}
.post-content h3 { font-size: 17px; margin: 24px 0 10px; }
.post-content p { margin: 14px 0; }
.post-content ul, .post-content ol { padding-left: 24px; margin: 12px 0; }
.post-content li { margin: 6px 0; }
.post-content blockquote {
  margin: 18px 0; padding: 10px 18px;
  border-left: 4px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  border-radius: 0 8px 8px 0;
}
.post-content code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Courier New", monospace;
  font-size: .875em;
  background: #eceef1;
  padding: 2px 6px;
  border-radius: 5px;
}
.post-content pre {
  background: var(--code-bg);
  color: var(--code-text);
  padding: 18px 22px;
  border-radius: 10px;
  overflow-x: auto;
  margin: 18px 0;
  line-height: 1.65;
  font-size: 14px;
}
.post-content pre code { background: none; padding: 0; font-size: 1em; }
.post-footer { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 14px; }

/* ---- 页脚 ---- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer-inner { padding: 22px 20px; text-align: center; color: var(--text-2); font-size: 13px; }
.footer-inner p { margin: 2px 0; }
.footer-inner a { color: var(--text-2); }
.footer-inner a:hover { color: var(--accent); }
.footer-inner .sep { margin: 0 8px; opacity: .6; }
.footer-inner .beian img {
  height: 16px; width: auto;
  vertical-align: -4px;
  margin-right: 4px;
}

@media (max-width: 560px) {
  .hero h1 { font-size: 24px; }
  .post-header h1 { font-size: 23px; }
  .post-card { padding: 18px; }
}
