* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  background: #f5f7fa;
  line-height: 1.6;
  margin: 0;
}

/* 仅在包含 .container 的页面启用 flex 粘性页脚，避免 Typora 导出页布局异常 */
body:has(.container) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
  flex: 1; /* 撑开剩余空间，将页脚推向底部 */
}

h1 {
  color: #222;
  margin-bottom: 24px;
  text-align: center;
}

.blog-card-wrapper {
  margin-bottom: 12px;
}

/* 博客卡片 */
.blog-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s;
  text-decoration: none;
  color: #222;
  width: 100%;
  min-height: 120px;
}

.blog-card:hover {
  transform: translateY(-2px);
}

.blog-card__content {
  flex: 1;
  margin-bottom: 16px;
}

.blog-card__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--theme-color, #399FFF);
  margin-bottom: 4px;
}

.blog-card__desc {
  color: #555;
  font-size: 14px;
  margin-bottom: 4px;
  white-space: pre-wrap; /* 保留连续空格和换行 */
}

.blog-card__date {
  font-size: 12px;
  color: #999;
}

/* 页面描述样式 */
.page-description {
  color: #666;
  font-size: 16px;
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.5;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  white-space: pre-wrap; /* 保留连续空格和换行 */
}

/* ===== 博客卡片封面图 ===== */
.blog-card__cover {
  width: calc(100% + 40px);
  margin: -20px -20px 12px -20px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  max-height: 180px;
}

.blog-card__cover img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.blog-card:hover .blog-card__cover img {
  transform: scale(1.05);
}

.blog-card__tags {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: flex-end;
  z-index: 4;
  pointer-events: none;
}

.blog-card__tag {
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 10px;
  background: rgba(var(--theme-color-rgb, 57,159,255), 0.1);
  color: var(--theme-color, #399FFF);
  border: 1px solid rgba(var(--theme-color-rgb, 57,159,255), 0.2);
  line-height: 1.6;
  pointer-events: auto;
}

.blog-card__actions {
  display: flex;
  gap: 8px;
  align-self: flex-end;
}

.blog-card__copy-btn {
  background: rgba(var(--theme-color-rgb, 57,159,255), 0.1);
  color: var(--theme-color, #399FFF);
  border: 1px solid rgba(var(--theme-color-rgb, 57,159,255), 0.2);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card__btn {
  background: var(--theme-color, #399FFF);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.blog-card__btn:hover {
  background: color-mix(in srgb, var(--theme-color, #399FFF) 80%, black);
}

/* ===== 博客卡片悬停动画 ===== */
.blog-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

/* 向右覆盖的半透明主题色层 */
.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--theme-color, #399FFF);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.2s;
  z-index: 1;
  pointer-events: none;
}

.blog-card:hover::before {
  opacity: 0.15;
  transform: scaleX(1);
}

/* ===== Blog Toolbar (Search + Filter) ===== */
.blog-toolbar {
  margin-bottom: 20px;
}

.blog-search {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid rgba(var(--theme-color-rgb, 57,159,255), 0.25);
  border-radius: 8px;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(8px);
  font-size: 14px;
  color: #333;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
}

.blog-search:focus {
  border-color: var(--theme-color, #399FFF);
  box-shadow: 0 0 0 3px rgba(var(--theme-color-rgb, 57,159,255), 0.1);
}

.blog-search::placeholder {
  color: #aaa;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.filter-chip {
  padding: 5px 14px;
  border-radius: 14px;
  border: 1px solid rgba(var(--theme-color-rgb, 57,159,255), 0.25);
  background: transparent;
  color: var(--theme-color, #399FFF);
  cursor: pointer;
  font-size: 13px;
  transition: all 0.25s ease;
  line-height: 1.4;
}

.filter-chip:hover {
  background: rgba(var(--theme-color-rgb, 57,159,255), 0.1);
}

.filter-chip.active {
  background: var(--theme-color, #399FFF);
  color: #fff;
  border-color: var(--theme-color, #399FFF);
}

/* ===== Filter Mode Toggle (且/或) ===== */
.filter-mode {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.filter-mode-label {
  font-size: 12px;
  color: #999;
  margin-right: 2px;
}

.filter-mode-btn {
  font-size: 12px;
  padding: 3px 12px;
  border-radius: 6px;
  border: 1px solid rgba(var(--theme-color-rgb, 57,159,255), 0.25);
  background: transparent;
  color: var(--theme-color, #399FFF);
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1.4;
}

.filter-mode-btn:hover {
  background: rgba(var(--theme-color-rgb, 57,159,255), 0.1);
}

.filter-mode-btn.active {
  background: var(--theme-color, #399FFF);
  color: #fff;
  border-color: var(--theme-color, #399FFF);
}

/* ===== Page Fade-in Animation ===== */
@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.container {
  animation: pageFadeIn 0.5s ease both;
}

/* ===== HTML 片段（自定义嵌入内容） ===== */
.blog-html-fragment {
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.blog-html-fragment.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Card Entrance Animation ===== */
.blog-card-wrapper {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.blog-card-wrapper.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 底部主题色条（与圆角同高） */
.blog-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 8px;                /* 与卡片圆角一致 */
  background-color: var(--theme-color, #399FFF);
  border-radius: 0 0 8px 8px; /* 仅底部圆角 */
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1) 0.05s; /* 微微延迟 */
  z-index: 2;
  pointer-events: none;
}

.blog-card:hover::after {
  transform: scaleX(1);
}

/* 保证卡片内容在装饰层上方 */
.blog-card__content,
.blog-card__actions {
  position: relative;
  z-index: 3;
}

/* ===== 链接悬停增强 ===== */
.url-card {
  transition: background 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.2s;
}

.url-card:hover {
  background: rgba(var(--theme-color-rgb, 57,159,255), 0.25);
}

/* ===== 卡片复制按钮悬停加深 ===== */
.blog-card__copy-btn {
  transition: background 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blog-card__copy-btn:hover {
  background: rgba(var(--theme-color-rgb, 57,159,255), 0.3);
}

/* ===== 内联复制按钮主题色文字 + 悬停效果 ===== */
.inline-copy-btn {
  color: var(--theme-color, #399FFF);
  transition: background 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.2s;
}

.inline-copy-btn:hover {
  background: rgba(var(--theme-color-rgb, 57,159,255), 0.25);
}

/* 博客内容页 */
.blog-content {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
}

.blog-content h2 {
  color: var(--theme-color, #399FFF);
  margin-bottom: 12px;
}

.blog-content p {
  margin-bottom: 12px;
  color: #333;
}

/* 博客内容页内的普通链接（使用主题色） */
.blog-content a {
  color: var(--theme-color, #399FFF);
  text-decoration: none;
}

.blog-content a:hover {
  text-decoration: underline;
}

/* ===== url 框（原 mini 链接） ===== */
.url-card {
  display: inline-flex;
  align-items: center;
  background: rgba(var(--theme-color-rgb, 57,159,255), 0.1);
  backdrop-filter: blur(4px);
  border-radius: 8px;
  padding: 0.3rem 0.8rem;
  margin: 0.3rem 0;
  text-decoration: none;
  color: var(--theme-color, #399FFF);
  font-size: 0.9rem;
  transition: all 0.3s ease;
  line-height: 1.4;
  gap: 6px;
}

.url-card:hover {
  background: rgba(var(--theme-color-rgb, 57,159,255), 0.2);
}

.url-card__icon {
  height: 1em;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}

.url-card__text {
  vertical-align: middle;
}

/* ===== 内联复制按钮（与行高一致，带文字） ===== */
.inline-copy-btn {
  display: inline-flex;
  align-items: center;
  background: rgba(var(--theme-color-rgb, 57,159,255), 0.1);
  border: 1px solid rgba(var(--theme-color-rgb, 57,159,255), 0.2);
  border-radius: 4px;
  padding: 0 4px;
  margin: 0 2px;
  cursor: pointer;
  transition: background 0.2s;
  line-height: inherit;
  vertical-align: middle;
  font-size: inherit;
  gap: 4px;
  box-sizing: border-box;
}

.inline-copy-btn:hover {
  background: rgba(var(--theme-color-rgb, 57,159,255), 0.2);
}

.inline-copy-btn img {
  height: 1em;
  width: auto;
  display: block;
}

/* 复制提示 */
.copy-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(var(--theme-color-rgb, 57,159,255), 0.9);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  z-index: 10000;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.copy-toast.show {
  opacity: 1;
  transform: translateX(0);
}

/* ===== 新增底部页脚样式 ===== */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px 16px;
  border-top: 1px solid rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(4px);
  margin-top: 30px;
  /* 始终撑满视口宽度，不受父容器 padding 影响 */
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  box-sizing: border-box;
}

.footer__line {
  color: #aaa;
  font-size: 14px;
  margin-bottom: 8px;
}

.footer__sentence {
  color: var(--theme-color, #399FFF);
  font-size: 14px;
  cursor: pointer;
  white-space: pre-line;
  line-height: 1.6;
  transition: opacity 0.2s;
  text-align: center;
  flex: 1;
}

.footer__sentence:hover {
  opacity: 0.8;
}

.footer__sentence-row {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== MC百科风格隐藏内容样式 ===== */
/* 使用示例：
   <span class="hidden-content" data-tooltip="你知道的太多了">隐藏的文字内容</span>
   属性说明：
   - data-tooltip: 鼠标悬停时上方显示的提示文字（默认："你知道的太多了"）
   - 内部文本: 隐藏的文字内容，默认黑色隐藏，悬停时变为白色显示
*/
.hidden-content {
  position: relative;
  display: inline-block;
  background-color: #000;
  color: #000;
  border-radius: 4px;
  padding: 2px 6px;
  cursor: default;
  transition: color 0.3s ease;
  white-space: nowrap;
  line-height: 1.4;
  border: 1px solid #333;
}

.hidden-content:hover {
  color: #fff;
}

/* 提示框样式 */
.hidden-content[data-tooltip]:not([data-tooltip=""])::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background-color: #222;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 10;
  pointer-events: none;
  border: 1px solid #444;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.hidden-content[data-tooltip]:not([data-tooltip=""]):hover::before {
  opacity: 1;
  visibility: visible;
}

/* ===== Dark Mode ===== */
[data-theme="dark"] {
  color-scheme: dark;
}
[data-theme="dark"] body {
  background: #13141f;
}
[data-theme="dark"] h1 {
  color: #d0d0e0;
}
[data-theme="dark"] .blog-card {
  background: rgba(26,27,42,0.88);
  color: #c8c8d8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
[data-theme="dark"] .blog-card__desc {
  color: #8888a0;
}
[data-theme="dark"] .blog-card__date {
  color: #606078;
}
[data-theme="dark"] .page-description {
  color: #8888a0;
}
[data-theme="dark"] .blog-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
[data-theme="dark"] .blog-search {
  background: rgba(26,27,42,0.8);
  color: #c8c8d8;
  border-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .blog-search::placeholder {
  color: #505068;
}
[data-theme="dark"] .blog-search:focus {
  border-color: var(--theme-color, #399FFF);
  box-shadow: 0 0 0 3px rgba(57,159,255,0.1);
}
[data-theme="dark"] .blog-content {
  background: rgba(26,27,42,0.88);
}
[data-theme="dark"] .blog-content p {
  color: #b0b0c0;
}
[data-theme="dark"] .blog-content h2 {
  color: var(--theme-color, #399FFF);
}
[data-theme="dark"] .filter-mode-label {
  color: #606078;
}
[data-theme="dark"] .footer {
  background: rgba(26,27,42,0.7);
  border-top-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .footer__line {
  color: #606078;
}
[data-theme="dark"] .navbar-nav a {
  color: #a0a0b8;
}
[data-theme="dark"] .copy-toast {
  background: rgba(57,159,255,0.85);
}
[data-theme="dark"] #blog-navbar {
  background: rgba(26,27,42,0.82) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.35) !important;
}
[data-theme="dark"] .navbar-nav a {
  color: #a0a0b8;
}
[data-theme="dark"] .navbar-nav a:hover {
  background: rgba(57,159,255,0.15);
}
[data-theme="dark"] .navbar-sitename {
  color: var(--theme-color, #399FFF);
}
[data-theme="dark"] #progress-container {
  background: rgba(16,24,48,0.92);
  border-top-color: rgba(57,159,255,0.15);
}
[data-theme="dark"] #progress-container:hover {
  background: rgba(20,32,60,0.96);
  box-shadow: 0 -6px 20px 2px rgba(57,159,255,0.3);
}

/* 深色模式切换按钮 */
.navbar-theme-btn:hover {
  background: rgba(var(--theme-color-rgb, 57,159,255), 0.1) !important;
  color: var(--theme-color, #399FFF) !important;
}
[data-theme="dark"] .navbar-theme-btn {
  color: #a0a0b8 !important;
}
[data-theme="dark"] .navbar-theme-btn:hover {
  color: var(--theme-color, #399FFF) !important;
  background: rgba(57,159,255,0.15) !important;
}

/* ===== Dark Mode: Typora 导出页面（数学等） ===== */
html[data-theme="dark"] {
  --bg-color: #13141f !important;
  --text-color: #c8c8d8 !important;
}
html[data-theme="dark"] #write {
  color: #c8c8d8;
}
html[data-theme="dark"] #write h1,
html[data-theme="dark"] #write h2,
html[data-theme="dark"] #write h3,
html[data-theme="dark"] #write h4,
html[data-theme="dark"] #write h5,
html[data-theme="dark"] #write h6 {
  color: #d0d0e0;
}
html[data-theme="dark"] .md-math-block,
html[data-theme="dark"] .md-rawblock,
html[data-theme="dark"] #write p {
  color: #c8c8d8;
}
html[data-theme="dark"] #write a {
  color: var(--theme-color, #399FFF);
}
html[data-theme="dark"] #write blockquote {
  color: #a0a0b8;
  border-left-color: rgba(57,159,255,0.3);
}
html[data-theme="dark"] #write code,
html[data-theme="dark"] #write tt {
  background: rgba(57,159,255,0.1);
  color: #d0d0d8;
}
html[data-theme="dark"] #write pre {
  background: #1a1b2e;
  color: #c8c8d8;
}
html[data-theme="dark"] #write table tr {
  background: transparent;
  border-top-color: rgba(255,255,255,0.08);
}
html[data-theme="dark"] #write table th,
html[data-theme="dark"] #write table td {
  border-color: rgba(255,255,255,0.08);
}
html[data-theme="dark"] #write .md-footnote {
  color: #a0a0b8;
}
html[data-theme="dark"] .katex .mathnormal,
html[data-theme="dark"] .katex .mathit,
html[data-theme="dark"] .katex .mathrm {
  color: #c8c8d8;
}
html[data-theme="dark"] .katex-html {
  color: #c8c8d8;
}

/* ===== 页脚一言刷新按钮（页内左侧） ===== */
.footer {
  position: relative;
}

.footer__refresh {
  position: absolute;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(var(--theme-color-rgb, 57,159,255), 0.2);
  background: rgba(var(--theme-color-rgb, 57,159,255), 0.06);
  color: var(--theme-color, #399FFF);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
  padding: 0;
  line-height: 1;
}

.footer__refresh:hover {
  background: rgba(var(--theme-color-rgb, 57,159,255), 0.15);
  border-color: rgba(var(--theme-color-rgb, 57,159,255), 0.5);
  transform: translateY(-50%) scale(1.1);
}

.footer__refresh:active {
  transform: translateY(-50%) scale(0.92);
}

.footer__refresh svg {
  display: block;
}

@keyframes footer-refresh-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.footer__refresh.spinning svg {
  animation: footer-refresh-spin 0.6s ease-in-out;
}

[data-theme="dark"] .footer__refresh {
  background: rgba(57,159,255,0.08);
  border-color: rgba(255,255,255,0.08);
}

[data-theme="dark"] .footer__refresh:hover {
  background: rgba(57,159,255,0.2);
  border-color: rgba(57,159,255,0.4);
}

/* ===== 回到顶部按钮 ===== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--theme-color, #399FFF);
  color: #fff;
  border: none;
  cursor: pointer;
  z-index: 9997;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(var(--theme-color-rgb, 57,159,255), 0.35);
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.2s,
              box-shadow 0.2s;
}
.back-to-top.visible {
  opacity: 0.9;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.back-to-top:hover {
  opacity: 1;
  background: color-mix(in srgb, var(--theme-color, #399FFF) 85%, black);
  box-shadow: 0 6px 24px rgba(var(--theme-color-rgb, 57,159,255), 0.5);
  transform: translateY(-2px) scale(1.05);
}
.back-to-top:active {
  transform: scale(0.95);
}
.back-to-top svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Giscus 评论区 ===== */
.giscus-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px 24px;
  width: 100%;
}
.giscus-wrapper .giscus {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  padding: 20px;
  min-height: 80px;
}
[data-theme="dark"] .giscus-wrapper .giscus {
  background: rgba(26,27,42,0.7);
}

.giscus-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #999;
  font-size: 13px;
  padding: 28px 20px;
  user-select: none;
}
.giscus-placeholder.error {
  color: #e05555;
}

.giscus-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(var(--theme-color-rgb, 57,159,255), 0.2);
  border-top-color: var(--theme-color, #399FFF);
  border-radius: 50%;
  animation: giscus-spin 0.7s linear infinite;
}
@keyframes giscus-spin {
  to { transform: rotate(360deg); }
}

.giscus-placeholder .retry-link {
  color: var(--theme-color, #399FFF);
  cursor: pointer;
  text-decoration: underline;
  margin-top: 4px;
}
.giscus-placeholder .retry-link:hover {
  opacity: 0.8;
}

/* ===== 暗色模式切换动画 ===== */
#theme-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 200vmax;
  height: 200vmax;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 1;
  pointer-events: none;
  z-index: 99999;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.35s ease 0.1s;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
  .container {
    max-width: 100%;
    padding: 0 12px;
  }
  .giscus-wrapper {
    max-width: 100%;
    padding: 0 12px 20px;
  }
  .blog-card__cover {
    max-height: 140px;
  }
  .blog-card__cover img {
    height: 130px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 8px;
  }
  h1 {
    font-size: 22px;
    margin-bottom: 16px;
  }
  .page-description {
    font-size: 14px;
    margin-bottom: 16px;
  }
  .blog-card {
    padding: 14px;
    min-height: auto;
  }
  .blog-card__title {
    font-size: 16px;
  }
  .blog-card__desc {
    font-size: 13px;
  }
  .blog-card__date {
    font-size: 11px;
  }
  .blog-card__cover {
    max-height: 120px;
  }
  .blog-card__cover img {
    height: 110px;
  }
  .blog-card__actions {
    flex-wrap: wrap;
  }
  .blog-card__tag {
    font-size: 10px;
    padding: 1px 6px;
  }
  .blog-content {
    padding: 16px;
  }
  .footer {
    padding: 16px 12px;
  }
  .footer__sentence {
    font-size: 13px;
  }
  .footer__refresh {
    left: 8px;
    width: 30px;
    height: 30px;
  }
  .back-to-top {
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
  .back-to-top svg {
    width: 18px;
    height: 18px;
  }
  .copy-toast {
    bottom: 12px;
    right: 12px;
    left: 12px;
    max-width: none;
    text-align: center;
    font-size: 13px;
    transform: translateY(20px);
  }
  .copy-toast.show {
    transform: translateY(0);
  }
  .giscus-wrapper {
    padding: 0 8px 16px;
  }
  .giscus-wrapper .giscus {
    padding: 12px;
  }
}