/* ===========================================================
   Aurora · 极简留白主题
   奶油底色 / 微软雅黑字体 / 柔和圆角 / 克制留白
   =========================================================== */
:root {
  --primary: #4F46E5;
  --bg: #F7F5F1;
  --surface: #FFFFFF;
  --text: #17171C;
  --muted: #71717E;
  --border: rgba(23, 23, 28, 0.09);
  --radius: 18px;
  --maxw: 1120px;
  --font-yahei: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB",
                "Noto Sans SC", "Source Han Sans SC", "WenQuanYi Micro Hei",
                "Helvetica Neue", Arial, sans-serif;
  --font-title: var(--font-yahei);
  --font-body: var(--font-yahei);
  --shadow: 0 1px 2px rgba(23,23,28,.04), 0 8px 24px rgba(23,23,28,.05);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--font-body);
  background: var(--bg); color: var(--text); line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
/* 字体已统一为微软雅黑：后台的字体选项不再改变字体族，避免被覆盖 */
body.theme-font-serif,
body.theme-font-rounded,
body.theme-font-sans { --font-body: var(--font-yahei); --font-title: var(--font-yahei); }
a { color: var(--primary); text-decoration: none; transition: color .15s, opacity .15s; }
a:hover { opacity: .8; }
img { max-width: 100%; border-radius: 10px; }

/* 顶栏 */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header .inner {
  max-width: var(--maxw); margin: 0 auto; padding: 26px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.site-header .site-name {
  font-family: var(--font-title); font-size: 27px; font-weight: 600;
  letter-spacing: -.4px; color: var(--text);
}
.site-header .site-name .dot { color: var(--primary); }
.site-header .site-sub { font-size: 12.5px; color: var(--muted); letter-spacing: .6px; margin-top: 2px; }
.site-nav a { margin-left: 22px; font-size: 14px; color: var(--muted); }
.site-nav a:hover { color: var(--primary); opacity: 1; }

/* 布局 */
.container {
  max-width: var(--maxw); margin: 40px auto 64px; padding: 0 24px;
  display: grid; grid-template-columns: minmax(0,1fr) 288px; gap: 40px; align-items: start;
}
body.layout-sidebar-left .container { grid-template-columns: 288px minmax(0,1fr); }
body.layout-sidebar-left .content-area { order: 2; }
body.layout-sidebar-left .sidebar { order: 1; }
body.layout-sidebar-none .container { grid-template-columns: minmax(0,1fr); max-width: 820px; }
body.layout-sidebar-none .sidebar { display: none; }
.content-area { min-width: 0; }
.page-title {
  font-family: var(--font-title); font-size: 26px; font-weight: 600;
  margin-bottom: 26px; letter-spacing: -.3px;
}

/* 文章卡片 */
.post-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 32px; margin-bottom: 20px; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(23,23,28,.05), 0 18px 40px rgba(23,23,28,.08); }
.post-card h2 { font-family: var(--font-title); font-size: 21px; font-weight: 600; margin-bottom: 8px; line-height: 1.5; }
.post-card h2 a { color: var(--text); }
.post-card h2 a:hover { color: var(--primary); opacity: 1; }
.post-card .meta { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; letter-spacing: .3px; }
.post-card .excerpt { font-size: 14.5px; color: var(--muted); }
.badge-sticky {
  display: inline-block; background: var(--primary-soft); color: var(--primary);
  font-size: 11px; border-radius: 6px; padding: 2px 8px; margin-right: 8px; vertical-align: 3px;
  font-family: var(--font-body); letter-spacing: .3px;
}

/* 列表样式 */
.post-row {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 20px 12px; display: flex; justify-content: space-between; gap: 20px;
}
.post-row:first-child { border-radius: var(--radius) var(--radius) 0 0; border-top: 1px solid var(--border); }
.post-row:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.post-row .t { font-family: var(--font-title); font-size: 16.5px; font-weight: 600; }
.post-row .t a { color: var(--text); }
.post-row .t a:hover { color: var(--primary); opacity: 1; }
.post-row .d { font-size: 12.5px; color: var(--muted); white-space: nowrap; }

/* 文章正文 */
.post-full {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 44px 52px; box-shadow: var(--shadow);
}
.post-full h1 { font-family: var(--font-title); font-size: 32px; font-weight: 600; line-height: 1.4; letter-spacing: -.5px; }
.post-full .meta {
  font-size: 13px; color: var(--muted); padding: 14px 0 22px;
  border-bottom: 1px solid var(--border); margin-bottom: 30px;
}
.post-content { font-size: 16px; }
.post-content h2, .post-content h3 { font-family: var(--font-title); margin: 30px 0 12px; letter-spacing: -.2px; }
.post-content h2 { font-size: 22px; }
.post-content h3 { font-size: 18.5px; }
.post-content p { margin: 15px 0; }
.post-content a { text-decoration: underline; text-underline-offset: 3px; }
.post-content pre {
  background: #16161C; color: #E6E6EC; padding: 18px 20px; border-radius: 14px;
  overflow: auto; font-size: 13.5px; line-height: 1.7; margin: 20px 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.post-content code { background: var(--primary-soft); color: var(--primary); padding: 2px 7px; border-radius: 6px; font-size: 13.5px; }
.post-content pre code { background: none; color: inherit; padding: 0; }
.post-content blockquote {
  border-left: 2px solid var(--primary); padding: 6px 0 6px 20px;
  color: var(--muted); margin: 20px 0; font-family: var(--font-title); font-size: 16px;
}
.post-content ul, .post-content ol { padding-left: 26px; margin: 14px 0; }
.post-content table { border-collapse: collapse; margin: 18px 0; width: 100%; }
.post-content th, .post-content td { border: 1px solid var(--border); padding: 9px 14px; font-size: 14.5px; }
.post-content th { background: var(--bg); }
.post-content img { margin: 10px 0; }
.post-tags { margin-top: 30px; display: flex; gap: 9px; flex-wrap: wrap; }
.post-tags a {
  background: var(--bg); border: 1px solid var(--border); border-radius: 20px;
  padding: 4px 14px; font-size: 12.5px; color: var(--muted);
}
.post-tags a:hover { border-color: var(--primary); color: var(--primary); opacity: 1; }

/* 侧栏 */
.sidebar .widget {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 24px; margin-bottom: 18px;
}
.sidebar .widget h3 {
  font-size: 12px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.sidebar .widget ul { list-style: none; }
.sidebar .widget li {
  padding: 7px 0; font-size: 14px; display: flex; justify-content: space-between; gap: 10px;
  border-bottom: 1px dashed var(--border);
}
.sidebar .widget li:last-child { border-bottom: none; }
.sidebar .widget li a { color: var(--text); }
.sidebar .widget li a:hover { color: var(--primary); opacity: 1; }
.sidebar .widget li span { color: var(--muted); font-size: 12px; }
.tagcloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tagcloud a {
  background: var(--bg); border: 1px solid var(--border); border-radius: 18px;
  padding: 3px 13px; font-size: 12.5px; color: var(--muted);
}
.tagcloud a:hover { border-color: var(--primary); color: var(--primary); opacity: 1; }

/* 评论 */
.comments-area {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 36px; margin-top: 24px; box-shadow: var(--shadow);
}
.comments-area h3 { font-family: var(--font-title); font-size: 19px; margin-bottom: 20px; }
.comment-item { padding: 16px 0; border-bottom: 1px solid var(--border); }
.comment-item .who { font-size: 13.5px; font-weight: 600; }
.comment-item .when { font-size: 11.5px; color: var(--muted); margin-left: 10px; font-weight: 400; }
.comment-item .body { font-size: 14.5px; margin-top: 5px; color: var(--text); }
.comment-item .reply-btn { font-size: 12.5px; color: var(--muted); }
.comment-item .reply-btn:hover { color: var(--primary); }
.comment-children { margin-left: 30px; border-left: 1px solid var(--border); padding-left: 18px; }
.comment-form textarea {
  width: 100%; min-height: 100px; padding: 14px 16px; border: 1px solid var(--border);
  border-radius: 14px; font-family: inherit; font-size: 14.5px; margin: 12px 0; background: var(--bg);
}
.comment-form textarea:focus { outline: 2px solid var(--primary-glow); border-color: var(--primary); }
.comment-form input {
  padding: 9px 14px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 13.5px; margin-right: 10px; background: var(--bg);
}
.comment-form button {
  background: var(--primary); color: #fff; border: none; border-radius: 10px;
  padding: 11px 28px; font-size: 14px; cursor: pointer; letter-spacing: .5px;
  transition: filter .15s;
}
.comment-form button:hover { filter: brightness(1.08); }

/* 分页 / 页脚 */
.pagination { display: flex; gap: 9px; margin: 28px 0; }
.pagination a, .pagination span {
  padding: 8px 16px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; font-size: 13.5px; color: var(--text);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); opacity: 1; }
.pagination .cur { background: var(--primary); color: #fff; border-color: var(--primary); }
.site-footer {
  border-top: 1px solid var(--border); padding: 30px 24px 40px; text-align: center;
  font-size: 12.5px; color: var(--muted); background: var(--surface);
}

@media (max-width: 900px) {
  .container { grid-template-columns: minmax(0,1fr) !important; gap: 0; }
  .sidebar { display: none; }
  .post-full { padding: 28px 24px; }
  .post-card { padding: 24px 22px; }
  .post-full h1 { font-size: 26px; }
  .site-header .inner { padding: 20px; }
  .site-nav a { margin-left: 14px; font-size: 13.5px; }
}

/* ---- 卡片信息层级 ---- */
.post-card .card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.post-card .cat { font-size: 12px; font-weight: 700; color: var(--primary); letter-spacing: .8px; text-transform: uppercase; }
.post-card .cat .pin { background: var(--primary-soft); font-style: normal; padding: 3px 9px; border-radius: 6px; margin-right: 8px; letter-spacing: .5px; }
.post-card .card-top time { font-size: 12.5px; color: var(--muted); }
.post-card .card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 13.5px; }
.post-card .card-foot .by { color: var(--muted); font-size: 12.5px; }
.post-list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 20px; }
.post-list .d-meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.empty { padding: 34px; text-align: center; color: var(--muted); }
.search-input { flex: 1; padding: 8px 11px; border: 1px solid var(--border); border-radius: 9px; font-size: 13px; background: var(--bg); color: var(--text); }
.search-input:focus { outline: none; border-color: var(--primary); }
.sidebar .widget form button { padding: 8px 15px; background: var(--primary); color: #fff; border: none; border-radius: 9px; cursor: pointer; font-size: 13px; }

/* ---- 首页 Hero ---- */
.hero { background: var(--surface); border-bottom: 1px solid var(--border); padding: 54px 24px 46px; text-align: center; }
.hero-inner { max-width: 760px; margin: 0 auto; }
.hero-kicker { font-size: 11.5px; letter-spacing: 3.6px; text-transform: uppercase; color: var(--primary); font-weight: 700; margin-bottom: 16px; }
.hero-title { font-family: var(--font-title); font-size: 46px; font-weight: 600; letter-spacing: -1.2px; line-height: 1.15; color: var(--text); }
.hero-desc { font-size: 15.5px; color: var(--muted); margin-top: 14px; }
.hero-stats { display: flex; justify-content: center; gap: 40px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.hero-stats span { font-size: 13px; color: var(--muted); letter-spacing: .4px; }
.hero-stats strong { font-family: var(--font-title); font-size: 22px; color: var(--primary); margin-right: 6px; font-weight: 600; }
@media (max-width: 900px) { .hero-title { font-size: 32px; } .hero { padding: 36px 20px 32px; } .hero-stats { gap: 22px; } }

/* ===========================================================
   字体统一：微软雅黑
   仅替换字体族，颜色 / 布局 / 间距 / 字号 / 字重一律不动
   =========================================================== */
html,
body,
button,
input,
select,
textarea,
optgroup,
h1, h2, h3, h4, h5, h6,
p, a, span, strong, b, em, i, small, sub, sup,
ul, ol, li, dl, dt, dd,
table, caption, thead, tbody, th, td,
form, fieldset, legend, label,
blockquote, cite, q, figure, figcaption,
time, address, abbr,
code, pre, kbd, samp, var {
  font-family: var(--font-yahei);
}
/* 代码块与行内代码原本使用等宽字体，此处同样统一为微软雅黑 */
.post-content pre,
.post-content code,
.post-content pre code,
.post-content kbd,
.post-content samp {
  font-family: var(--font-yahei);
}
