/* 基础布局 */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

#sky-canvas-wrapper {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

#sky-canvas {
  width: 100%;
  height: 100%;
  display: block;
}


/* 大屏时增加留白 */
@media (min-width: 960px) {
  #page-wrapper {
    padding: 48px 0 40px;
  }
}

:root {
  /* 你 footer 大概的高度，可以按实际微调 */
  --footer-height: 40px;
}

/* 整个页面的主容器：上 header，中内容，下 footer */
#page-wrapper {
  min-height: 100vh;
  padding: 40px 16px 32px;  /* 你原本的内边距可以保留 */
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.site-header {
  text-align: center;
}

.site-header .site-branding,
.site-header .site-title,
.site-header .site-description {
  margin-left: auto;
  margin-right: auto;
}

/* 中间内容区域：撑开剩余空间 */
.site-content,
.site-main,
.content-layout {
  flex: 1 0 auto;
}


/* 站点标题 */
.site-branding {
  margin-bottom: 24px;
}

.site-title {
  margin: 0;
  font-size: 26px;
  letter-spacing: 0.08em;
}

.site-title-link {
  color: var(--color-text-main);
  text-decoration: none;
}

.site-title-link:hover {
  color: var(--color-link-hover);
}

.site-description {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--color-text-muted);
}

/* 导航 */
.site-nav {
  margin-bottom: 24px;
}

.nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.nav-menu a {
  text-decoration: none;
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 25, 36, 0.8);
  color: var(--color-text-muted);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.nav-menu a:hover {
  background: rgba(17, 25, 38, 0.95);
  color: var(--color-link-hover);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.08);
}

/* 列表卡片 */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.post-card {
  margin: 0;
  background: none;
  box-shadow: none;
}

/* ✅ 唯一的卡片外观：只给 .post-card-inner */
.post-card-inner {
  display: block;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(10px);
  text-decoration: none;
  color: inherit;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.post-card-inner:hover {
  transform: translateY(-2px);
  background: rgba(17, 25, 38, 0.72);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.08);
}

/* ❌ 防止标题 / meta 自己长成“小卡片”，全部清空背景感 */
.post-card-title,
.post-card-meta,
.post-card-excerpt {
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding-left: 0;
  padding-right: 0;
}

/* 标题：只做文字样式 */
.post-card-title {
  margin: 0 0 6px;
  font-size: 18px;
}

/* 标题不要再有下划线之类，鼠标悬停整卡片已经有反馈了 */
.post-card-title a {
  color: inherit;
  text-decoration: none;
}

/* 如果你愿意，可以加一点点文字高亮，但很轻 */
.post-card-inner:hover .post-card-title {
  color: var(--color-link-hover);
  text-shadow: 0 0 6px rgba(221, 230, 248, 0.3);
}

/* meta 行：日期 + 分类在一行 */
.post-card-meta {
  font-size: 12px;
  color: var(--color-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

/* 摘要 */
.post-card-excerpt {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-main);
}
/* 单篇文章卡片 */
.single-post-card {
  max-width: 900px;
  margin: 0 auto 32px;
  padding: 20px 22px;
  border-radius: 12px;
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(12px);
}

.single-header {
  margin-bottom: 18px;
}

.single-title {
  margin: 0 0 8px;
  font-size: 24px;
}

.single-meta {
  font-size: 12px;
  color: var(--color-text-muted);
}

.single-content {
  font-size: 15px;
  line-height: 1.8;
}

.single-content p {
  margin: 0 0 1.1em;
}

/* 链接样式：轻微变亮，不闪烁 */
a {
  color: var(--color-link);
  text-decoration: none;
  transition: color 160ms ease, text-shadow 160ms ease;
}

.single-content a:hover,
.post-card-excerpt a:hover {
  color: var(--color-link-hover);
  text-shadow: 0 0 6px rgba(221, 230, 248, 0.55);
}


/* footer-inner 不再做宽度限制，使内容自然居中 */
.footer-inner {
  width: 100%;   /* 强制占满整行 */
  margin: 0 auto;
  text-align: center; /* 再保险一点，用双重居中 */
}


.footer-text {
  text-shadow: 0 0 4px rgba(200, 215, 245, 0.18);
}

/* 主内容 + 侧边栏布局 */
.content-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.content-main {
  flex: 1 1 auto;
}

.sidebar {
  flex: 0 0 260px;
}

@media (min-width: 960px) {
  .content-layout {
    flex-direction: row;
    align-items: flex-start;
  }

  .content-main {
    max-width: 640px;
  }
}

/* 侧边栏小卡片 */
.card-widget {
  padding: 14px 16px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(10px);
  font-size: 14px;
}

.widget-title {
  margin: 0 0 8px;
  font-size: 15px;
}

.search-form {
  display: flex;
  width: 100%;
  margin: 10px 0;
}

/* 左侧输入框：不单独发光，轻边框 + 淡雾蓝 */
/* 输入框：左侧正常圆角 */
.search-form .search-field {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid rgba(191, 210, 255, 0.25);
  border-right: none;
  border-radius: 8px 0 0 8px;        /* 不再是圆球，只是正常圆角 */
  background: rgba(8, 12, 20, 0.78);
  color: var(--color-text-main);
  font-size: 14px;
  line-height: 1.4;
  outline: none;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.search-form .search-field::placeholder {
  color: rgba(185, 198, 224, 0.7);
}

/* 焦点时：整体略亮即可，不要强对比 */
.search-form .search-field:focus {
  border-color: rgba(221, 230, 248, 0.85);
  background: rgba(10, 16, 26, 0.9);
  box-shadow: 0 0 6px rgba(191, 210, 255, 0.3);
}

/* 右侧按钮：正常矩形 + 右侧轻圆角 */
.search-form .search-submit {
  padding: 8px 18px !important;                /* 让文字自然横向排列 */
  border: 1px solid rgba(191, 210, 255, 0.25);
  border-left: none;
  border-radius: 0 8px 8px 0 !important;;        /* 正常圆角，不是椭圆！ */
  background: rgba(191, 210, 255, 0.88);
  color: #0A1018;
  font-size: 14px;
  line-height: 1.4;                  /* 防止上下挤压 */
  white-space: nowrap;               /* 禁止换行 */
  cursor: pointer;
  transition:
    background 160ms ease,
    box-shadow 160ms ease,
    transform 120ms ease;
}

.search-form .search-submit:hover {
  background: rgba(221, 230, 248, 0.97);
  box-shadow: 0 0 8px rgba(191, 210, 255, 0.4);
  transform: translateY(-1px);
}

/* 小屏幕时按钮稍微紧凑一点 */
@media (max-width: 480px) {
  .search-form .search-submit {
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* 让搜索输入框在侧边栏不用再单独写 */
.search-form .search-field {
  flex: 1;
}

/* 让搜索提交按钮复用上面按钮样式 */
.search-form .search-submit {
  white-space: nowrap;
}

/* 评论卡片 */
.card-comments {
  margin-top: 28px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(10px);
  font-size: 14px;
}

/* 页眉卡片 */
.card-header {
  max-width: 900px;
  margin: 0 auto 18px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(10px);
}

.archive-title {
  margin: 0 0 6px;
  font-size: 20px;
}

.archive-description {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* 分页按钮 */
.pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.pagination .page-numbers {
  min-width: 32px;
  text-align: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
  background: rgba(8, 12, 20, 0.7);
  color: var(--color-text-muted);
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: rgba(191, 210, 255, 0.9);
  color: #0B1118;
  box-shadow: 0 0 10px rgba(191, 210, 255, 0.4);
}

/* 让星空“无限延伸”的关键点：
   canvas fixed + body 背景颜色一致，
   内容滚动，只是前景在动，背景始终覆盖整屏。 */

/* 文本输入框、搜索框、邮箱等 */
/* =========================
   全站表单基础样式（扁平雾蓝）
   ========================= */

/* 基础输入框：文本 / 邮箱 / URL / 密码 / 数字 / 搜索 */
input[type="text"],
input[type="search"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="number"],
textarea,
select {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(191, 210, 255, 0.25);
  background: rgba(8, 12, 20, 0.78);          /* 深雾蓝、略透 */
  color: var(--color-text-main);
  font-size: 14px;
  line-height: 1.4;
  outline: none;
  appearance: none;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

textarea {
  min-height: 140px;
  border-radius: 12px;
  resize: vertical;
}

/* 焦点状态：更亮一点，但仍然克制 */
input[type="text"]:focus,
input[type="search"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  border-color: rgba(221, 230, 248, 0.85);
  background: rgba(10, 16, 26, 0.92);
  box-shadow: 0 0 8px rgba(191, 210, 255, 0.35);
}

/* 占位符柔和一点 */
input::placeholder,
textarea::placeholder {
  color: rgba(185, 198, 224, 0.7);
}

/* 禁用状态稍微淡一点 */
input[disabled],
textarea[disabled],
select[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}


/* 选择框（如果有） */
select {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(191, 210, 255, 0.28);
  background: rgba(8, 12, 20, 0.78);
  color: var(--color-text-main);
  font-size: 14px;
}

/* 按钮（提交 / 搜索 / 评论提交等）
input[type="submit"],
button,
.search-submit {
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  background: rgba(191, 210, 255, 0.9);       冷蓝亮一点 
  color: #0A1018;
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease,
    transform 120ms ease;
} */

/* =========================
   全局按钮基础样式（不包含 search-submit）
   ========================= */

button,
input[type="button"],
input[type="submit"] {
  border: 1px solid rgba(191, 210, 255, 0.28);
  border-radius: 6px;                          /* 正常小圆角 */
  padding: 6px 14px;
  font-size: 14px;
  background: rgba(191, 210, 255, 0.9);        /* 冷蓝 */
  color: #0A1018;
  cursor: pointer;
  transition:
    background 160ms ease,
    box-shadow 160ms ease,
    transform 120ms ease;
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
  background: rgba(221, 230, 248, 0.98);
  box-shadow: 0 0 10px rgba(191, 210, 255, 0.45);
  transform: translateY(-1px);
}

input[type="submit"]:hover,
button:hover,
.search-submit:hover {
  background: rgba(221, 230, 248, 0.98);
  box-shadow: 0 0 12px rgba(191, 210, 255, 0.5);
  transform: translateY(-1px);
}

/* 禁用状态 */
input[disabled],
textarea[disabled],
button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.beian-text {
  margin-top: 4px;
  font-size: 11px;
  color: var(--color-text-muted);
  text-align: center;
}

.beian-text a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 150ms ease, text-shadow 200ms ease;
}

.beian-text a:hover {
  color: var(--color-link-hover);
  text-shadow: 0 0 6px rgba(221, 230, 248, 0.35);
}

/* .footer-spacer {
  height: 64px;   按你实际 footer 的高度调整
} */

/* footer 现在是普通块，不 fixed */
.site-footer {
  flex-shrink: 0;
  margin-top: 24px;              /* 和内容留一点距离 */
  padding: 12px 0;
  text-align: center;
  font-size: 12px;
  color: var(--color-text-muted);
  background: none;
  border-top: none;
}

/* 保留你喜欢的光晕 */
.site-footer .footer-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.site-footer .footer-text {
  text-shadow: 0 0 4px rgba(200, 215, 245, 0.18);
}
/* 让中间内容这块，回到“中间那一列”的感觉 */

/* 作为内容大容器：不再拉满全屏，限制最大宽度并居中 */
.content-layout {
  max-width: 1100px;       /* 900 内容 + 旁边一个侧边栏的感觉 */
  margin: 0 auto;
  width: 100%;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* 当没有侧边栏时，主页文章列表就在中间一列 */
.content-main {
  flex: 1 1 auto;
}

/* 单列内容场景（比如没有 sidebar）也居中收窄 */
.site-content {
  width: 100%;
  /* display: flex; */
  justify-content: center;  /* 把内部那一列推到中间 */
}

/* 单篇文章卡片：保持以前那种窄窄一张卡片的宽度和居中 */
.single-post-card {
  max-width: 900px;
  margin: 0 auto 32px;
  padding: 20px 22px;
  border-radius: 12px;
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(12px);
}
