/* ============================================================
 * Sakurairo Child v2.0.0 — 樱色 Sakura
 * 粉 #ff8fb1 · 深樱 #f75c8d · 紫藤 #a78bfa
 * 父主题零修改；兼容 pjax；暗色模式走 body.dark。
 * ============================================================ */

/* ---------- 1. 樱色变量 & 系统字体栈 ---------- */
:root {
  --sakura: #ff8fb1;
  --sakura-deep: #f75c8d;
  --sakura-soft: #ffd6e7;
  --wisteria: #a78bfa;
  --wisteria-soft: #e9d5ff;
  --sakura-gradient: linear-gradient(135deg, #ffd6e7, #e9d5ff);
  --sakura-btn: linear-gradient(135deg, #ff8fb1, #f75c8d);
  --page-bg: #fff9fb;
  --dark-bg: #241a26;
  --dark-card: #2e2230;
  /* 覆盖主题主色变量（与主题选项 theme_skin / theme_skin_matching 保持一致） */
  --theme-skin: #ff8fb1;
  --theme-skin-matching: #a78bfa;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
    system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Songti SC", "STSong", "Noto Serif SC", serif;

  --sc-radius: 16px;
  --sc-shadow: 0 8px 24px rgba(247, 92, 141, 0.10);
  --sc-shadow-hover: 0 20px 46px rgba(247, 92, 141, 0.26);
  --sc-ease: cubic-bezier(0.22, 0.61, 0.21, 1);
}

html, body { overflow-x: clip; }
body { background: var(--page-bg); }
img, video, iframe, table { max-width: 100%; }

html body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.post-title h3,
h1.center-text,
.entry-title {
  font-family: var(--font-serif), var(--font-sans);
  letter-spacing: 0.02em;
}

code, pre, .hljs {
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
}

/* ---------- 2. Hero 标题居中根治 ---------- */
#centerbg { position: relative; }

#centerbg .focusinfo {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  width: min(860px, 92vw) !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 3;
  text-shadow: 0 2px 26px rgba(140, 30, 70, 0.45);
}

h1.center-text {
  width: 100%;
  margin: 0 auto !important;
  text-align: center !important;
  font-size: clamp(2.6rem, 8vw, 5rem);
  line-height: 1.25;
  color: #fff;
}

.header-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 20px;
}

/* 一言药丸卡片（第二个空 .element 直接隐藏） */
.header-info .element:empty { display: none; }

.header-info .element {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
  -webkit-backdrop-filter: blur(8px) saturate(1.3);
  backdrop-filter: blur(8px) saturate(1.3);
  border-radius: 999px;
  padding: 9px 26px;
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.06em;
  box-shadow: 0 6px 22px rgba(140, 30, 70, 0.25);
}

.header-info > p {
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.28em;
  text-indent: 0.28em; /* 抵消 tracking 尾随空白，视觉居中 */
  font-size: 14px;
  margin: 14px 0 0;
}

/* 社交图标 */
.top-social_v2 .slider { display: flex; justify-content: center; }

.top-social_v2 .slider li a,
.top-social_v2 .slider li img {
  border-radius: 50%;
  transition: transform 0.3s var(--sc-ease), box-shadow 0.3s ease;
}

.top-social_v2 .slider li a:hover { transform: translateY(-3px) scale(1.06); }

.top-social_v2 .slider li a:hover img { box-shadow: 0 8px 22px rgba(247, 92, 141, 0.55); }

/* ---------- 3. Hero：樱色黎明遮罩（视频保持可见） ---------- */
.headertop:not(.headertop-bar)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(247, 92, 141, 0.30) 0%,
    rgba(255, 143, 177, 0.08) 34%,
    rgba(167, 139, 250, 0.12) 62%,
    rgba(36, 26, 38, 0.48) 100%);
}

/* 视频 Ken Burns 缓慢缩放 */
#bgvideo {
  animation: sc-kenburns 26s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes sc-kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.09); }
}

/* 花瓣 canvas：由 custom.js 注入 #centerbg */
#sakura-petals {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* ---------- 4. 下滑按钮：呼吸 + 樱色光晕 ---------- */
.headertop-down {
  animation: sc-breathe 2.6s ease-in-out infinite;
  z-index: 3;
}

.headertop-down span {
  display: inline-flex;
  padding: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 20px rgba(247, 92, 141, 0.40);
}

@keyframes sc-breathe {
  0%, 100% { transform: translateY(0); opacity: 0.8; }
  50%      { transform: translateY(9px); opacity: 1; }
}

/* ---------- 5. 导航：樱色毛玻璃 ---------- */
.site-branding,
.nav-search-wrapper,
.user-menu-wrapper {
  background: rgba(255, 249, 251, 0.78);
  border: 1px solid rgba(255, 143, 177, 0.30);
  box-shadow: 0 4px 18px rgba(247, 92, 141, 0.14);
}

.site-branding:hover,
.nav-search-wrapper:hover,
.user-menu-wrapper:hover {
  background: rgba(255, 249, 251, 0.92);
}

.nav-search-wrapper nav ul li a { position: relative; }

.nav-search-wrapper nav ul li a:hover {
  background: var(--sakura-btn);
  color: #fff;
  box-shadow: 0 6px 18px rgba(247, 92, 141, 0.40);
}

/* 当前页面指示点 */
.nav-search-wrapper nav ul li.current-menu-item > a,
.nav-search-wrapper nav ul li.current_page_item > a {
  color: var(--sakura-deep);
  font-weight: 600;
}

.nav-search-wrapper nav ul li.current-menu-item > a::after,
.nav-search-wrapper nav ul li.current_page_item > a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sakura-btn);
  box-shadow: 0 0 10px rgba(247, 92, 141, 0.9);
}

/* 二级菜单樱色化 */
nav .menu > li .sub-menu {
  background: rgba(255, 249, 251, 0.94);
  border: 1px solid rgba(255, 143, 177, 0.25);
  box-shadow: 0 12px 32px rgba(247, 92, 141, 0.18);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* 移动端抽屉菜单 */
.mobile-nav {
  background: rgba(255, 249, 251, 0.96);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 143, 177, 0.25);
  box-shadow: 0 18px 40px rgba(247, 92, 141, 0.16);
}

.mobile-nav .mo_nav_item ul li a {
  border-radius: 12px;
  margin: 2px 10px;
  transition: background 0.3s var(--sc-ease), color 0.3s ease;
}

.mobile-nav .mo_nav_item ul li a:hover,
.mobile-nav .mo_nav_item ul li.current-menu-item > a {
  background: var(--sakura-gradient);
  color: #b83a68;
}

.mobile-nav .mo_nav_item ul li.current-menu-item > a { font-weight: 700; }

.mo-nav-button i { color: var(--sakura-deep); }

.mo-menu-search .search-input {
  border-radius: 999px;
  border: 1px solid rgba(255, 143, 177, 0.40);
  background: rgba(255, 255, 255, 0.85);
}

.mo-menu-search .search-input:focus {
  border-color: var(--sakura);
  box-shadow: 0 0 0 3px rgba(255, 143, 177, 0.22);
  outline: none;
}

/* ---------- 6. 文章卡片：粉色光晕 ---------- */
#main .post.post-list-thumb {
  border-radius: var(--sc-radius);
  border: 1px solid rgba(255, 143, 177, 0.14);
  box-shadow: var(--sc-shadow);
  transition: transform 0.35s var(--sc-ease), box-shadow 0.35s var(--sc-ease), border-color 0.35s ease;
  will-change: transform;
  overflow: hidden;
}

#main .post.post-list-thumb:hover {
  transform: translateY(-6px);
  box-shadow: var(--sc-shadow-hover);
  border-color: rgba(255, 143, 177, 0.45);
}

#main .post.post-list-thumb .post-thumb {
  overflow: hidden;
}

#main .post.post-list-thumb .post-thumb img {
  transition: transform 0.9s var(--sc-ease);
}

#main .post.post-list-thumb:hover .post-thumb img {
  transform: scale(1.06);
}

#main .post.post-list-thumb .post-title h3 {
  transition: color 0.3s ease;
}

#main .post.post-list-thumb:hover .post-title h3 {
  color: var(--theme-skin);
}

#main .post.post-list-thumb .post-date,
#main .post.post-list-thumb .post-meta {
  letter-spacing: 0.02em;
}

/* ---------- 7. 滚动显现（由 custom.js 的 IntersectionObserver 驱动） ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s var(--sc-ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- 8. 渐变药丸按钮 ---------- */
.comment-respond input[type="submit"] {
  background: var(--sakura-btn);
  color: #fff;
  border: none;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(247, 92, 141, 0.35);
  transition: transform 0.3s var(--sc-ease), box-shadow 0.3s ease;
  text-shadow: none;
}

.comment-respond input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(247, 92, 141, 0.48);
  color: #fff;
}

/* ---------- 9. 页脚三件套 ---------- */
footer#colophon.site-footer {
  border-top: 1px solid rgba(255, 143, 177, 0.25);
  background: linear-gradient(180deg, rgba(255, 214, 231, 0.25), rgba(233, 213, 255, 0.18));
}

footer#colophon .site-info .footer-content {
  text-align: center;
  padding: 8px 16px 0;
}

footer#colophon .footer_info {
  margin: 0;
}

footer#colophon .footer_info .footer-line {
  display: block;
  margin: 7px 0;
  font-size: 13px;
  letter-spacing: 0.05em;
  line-height: 1.7;
  color: inherit;
  opacity: 0.88;
}

footer#colophon .footer_info .footer-line:first-child {
  font-size: 14px;
  opacity: 1;
}

footer#colophon .footer_info .footer-line i {
  margin-right: 6px;
  color: var(--theme-skin);
}

footer#colophon .footer_info #site-run-days,
footer#colophon .footer_info #site-quote {
  font-weight: 600;
}

footer#colophon .theme-info {
  text-align: center;
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.06em;
  opacity: 0.65;
}

footer#colophon .theme-info a {
  margin: 0 8px;
  transition: color 0.3s ease, opacity 0.3s ease;
}

footer#colophon .theme-info a:hover {
  color: var(--theme-skin);
  opacity: 1;
}

/* ---------- 10. NProgress / 滚动条 / 选中 ---------- */
#nprogress .bar {
  background: linear-gradient(90deg, #ff8fb1, #a78bfa) !important;
  height: 3px !important;
}

#nprogress .peg {
  box-shadow: 0 0 10px #ff8fb1, 0 0 5px #ff8fb1 !important;
}

::selection {
  background: var(--sakura);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--sakura) 65%, transparent);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--sakura);
  background-clip: content-box;
  border: 2px solid transparent;
}

/* ---------- 11. 暗色模式（body.dark，李子底） ---------- */
body.dark { background: var(--dark-bg); }

body.dark .site-branding,
body.dark .nav-search-wrapper,
body.dark .user-menu-wrapper {
  background: linear-gradient(135deg, rgba(170, 52, 98, 0.82), rgba(128, 66, 148, 0.82));
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border-color: rgba(255, 143, 177, 0.45);
  box-shadow: 0 4px 18px rgba(247, 92, 141, 0.28);
}

body.dark .nav-search-wrapper nav ul li a { color: #e8d5de; }

body.dark .mobile-nav {
  background: linear-gradient(180deg, rgba(128, 36, 72, 0.97), rgba(94, 44, 102, 0.97));
  border-bottom-color: rgba(255, 143, 177, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

body.dark .mobile-nav .mo_nav_item ul li a { color: #e8d5de; }

body.dark .mobile-nav .mo_nav_item ul li a:hover,
body.dark .mobile-nav .mo_nav_item ul li.current-menu-item > a {
  background: rgba(255, 143, 177, 0.16);
  color: #ffb3cd;
}

body.dark #main .post.post-list-thumb {
  background: var(--dark-card);
  border-color: rgba(255, 143, 177, 0.14);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.40);
}

body.dark #main .post.post-list-thumb:hover {
  box-shadow: 0 18px 44px rgba(247, 92, 141, 0.20);
  border-color: rgba(255, 143, 177, 0.40);
}

body.dark #main .post.post-list-thumb .post-title h3 {
  color: #f3e6ec;
}

body.dark #main .post.post-list-thumb:hover .post-title h3 {
  color: var(--sakura);
}

body.dark #main .post.post-list-thumb .post-excerpt p,
body.dark #main .post.post-list-thumb .post-date,
body.dark #main .post.post-list-thumb .post-meta {
  color: #b9a8b3;
}

body.dark footer#colophon.site-footer {
  border-top-color: rgba(255, 143, 177, 0.16);
  background: linear-gradient(180deg, rgba(255, 143, 177, 0.06), rgba(167, 139, 250, 0.05));
}

body.dark ::-webkit-scrollbar-thumb {
  background: rgba(255, 143, 177, 0.35);
  border: 2px solid transparent;
  background-clip: content-box;
}

/* ---------- 12. 移动端 ≤860px ---------- */
@media (max-width: 860px) {
  #centerbg .focusinfo { width: 94vw !important; }

  h1.center-text { font-size: clamp(2rem, 11vw, 3.2rem); }

  .header-info .element {
    max-width: 92vw !important;
    font-size: 13px;
    padding: 7px 18px;
  }

  .header-info > p { letter-spacing: 0.20em; font-size: 12px; }

  .headertop-down { bottom: 26px; }

  #main .post.post-list-thumb { margin: 10px 0; }

  /* 花瓣 canvas 永不上移动端（JS 侧已限制，此处双保险） */
  #sakura-petals { display: none; }

  /* 暗色模式移动端顶栏：莓粉渐变，替代主题默认深灰 */
  body.dark .site-header.bg,
  body.dark .site-header:hover {
    background: linear-gradient(135deg, rgba(170, 52, 98, 0.88), rgba(128, 66, 148, 0.88)) !important;
    border-bottom: 1.5px solid rgba(255, 143, 177, 0.45) !important;
  }
}

/* ---------- 13. 减少动态偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  #bgvideo { animation: none; }
  .headertop-down { animation: none; }
  #main .post.post-list-thumb { transition: none; }
  #main .post.post-list-thumb:hover { transform: none; }
}

/* ---------- 14. 杂志风 v2：大气头条 + 网格（body.home 限定） ---------- */

/* 分区标题：编辑风，标题文字后带一条樱色渐变线 */
body.home h1.main-title.posts-area-title,
.home-hot h1.main-title.hot-title {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding-bottom: 16px;
}

body.home h1.main-title.posts-area-title::after,
.home-hot h1.main-title.hot-title::after {
  content: "";
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--sakura), rgba(167, 139, 250, 0.55), transparent);
  margin-left: 8px;
  min-width: 40px;
}

body.home h1.main-title.posts-area-title .fa-pen-nib,
.home-hot h1.main-title.hot-title .fa-fire {
  color: var(--sakura-deep);
}

body.home #main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

body.home #main > h1.main-title.posts-area-title {
  grid-column: 1 / -1;
  margin-bottom: 6px;
}

body.home #main > article.post.post-list-thumb {
  width: auto;
  margin: 0;
  float: none;
  border: none;
}

/* 父主题把 .post-thumb 设为 absolute + inline-flex（收缩宽度），首页卡片内改为块级铺满 */
body.home #main > article.post.post-list-thumb .post-thumb {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  float: none;
  z-index: auto;
}

body.home #main > article.post.post-list-thumb .post-thumb:hover { height: auto; }

body.home #main > article.post.post-list-thumb .post-thumb a { width: 100%; }

body.home #main > article.post.post-list-thumb .post-thumb a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- 头条：通栏电影感大卡 ---- */
body.home #main > article.post.post-list-thumb.is-featured {
  grid-column: 1 / -1;
  height: 500px;
}

body.home #main > article.post.post-list-thumb.is-featured .post-thumb { position: relative; }

body.home #main > article.post.post-list-thumb.is-featured .post-thumb a { height: 500px; }

/* 底部深色渐变，保证白色文字可读 */
body.home #main > article.post.post-list-thumb.is-featured .post-thumb::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 65%;
  background: linear-gradient(to top, rgba(38, 13, 26, 0.82), rgba(38, 13, 26, 0));
  z-index: 2;
  pointer-events: none;
}

body.home #main > article.post.post-list-thumb.is-featured::before {
  content: "头 条";
  position: absolute;
  top: 24px;
  left: 26px;
  z-index: 5;
  background: var(--sakura-btn);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.35em;
  text-indent: 0.35em;
  padding: 8px 15px 8px 20px;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(247, 92, 141, 0.55);
  pointer-events: none;
}

body.home #main > article.post.post-list-thumb.is-featured .post-date {
  left: 124px;
  top: 24px;
}

body.home #main > article.post.post-list-thumb.is-featured .post-meta { top: 24px; }

/* 标题玻璃面板：大标题 + 摘要一体（摘要由 custom.js 移入面板内） */
body.home #main > article.post.post-list-thumb.is-featured .post-title {
  top: auto;
  bottom: 42px;
  left: 42px;
  max-width: 640px;
  max-height: none;
  width: auto;
  margin: 0;
  padding: 28px 34px;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 60px rgba(60, 15, 35, 0.3);
  z-index: 3;
}

body.home #main > article.post.post-list-thumb.is-featured .post-title:hover {
  background: rgba(255, 255, 255, 0.96);
}

body.home #main > article.post.post-list-thumb.is-featured .post-title h3 {
  font-size: 32px;
  line-height: 1.45;
  letter-spacing: 1px;
}

body.home #main > article.post.post-list-thumb.is-featured .post-title .post-excerpt {
  position: static;
  width: auto;
  max-width: none;
  max-height: none;
  margin: 14px 0 0;
  padding: 0;
  left: auto;
  bottom: auto;
  font-size: 15px;
  line-height: 1.75;
  color: #6d5b64;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.home #main > article.post.post-list-thumb.is-featured .post-title .ai-excerpt-tip {
  float: none;
  display: inline-block;
  background: var(--sakura-btn);
  color: #fff !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 3px 12px;
  border-radius: 999px;
  margin: 0 8px 8px 0;
}

body.home #main > article.post.post-list-thumb.is-featured .post-title .post-excerpt p {
  max-height: none;
  margin: 0;
}

body.dark body.home #main > article.post.post-list-thumb.is-featured .post-title {
  background: rgba(46, 30, 42, 0.9);
  border-color: rgba(255, 143, 177, 0.28);
}

body.dark body.home #main > article.post.post-list-thumb.is-featured .post-title .post-excerpt {
  color: #d8c6cf;
}

/* ---- 网格小卡：底部通栏标题 ---- */
body.home #main > article.post.post-list-thumb:not(.is-featured) { height: 300px; }

body.home #main > article.post.post-list-thumb:not(.is-featured) .post-thumb { position: relative; }

body.home #main > article.post.post-list-thumb:not(.is-featured) .post-thumb a { height: 300px; }

body.home #main > article.post.post-list-thumb:not(.is-featured) .post-thumb::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 58%;
  background: linear-gradient(to top, rgba(38, 13, 26, 0.8), rgba(38, 13, 26, 0));
  z-index: 2;
  pointer-events: none;
}

body.home #main > article.post.post-list-thumb:not(.is-featured) .post-title,
body.home #main > article.post.post-list-thumb:not(.is-featured) .post-title:hover {
  top: auto;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: none;
  width: auto;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  padding: 46px 20px 20px;
  z-index: 3;
}

body.home #main > article.post.post-list-thumb:not(.is-featured) .post-title h3 {
  color: #fff;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 1px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.home #main > article.post.post-list-thumb:not(.is-featured):hover .post-title h3 {
  color: #ffd6e7;
  letter-spacing: 1px;
}

/* 小卡只留日期章，隐藏统计章与摘要，更干净 */
body.home #main > article.post.post-list-thumb:not(.is-featured) .post-excerpt,
body.home #main > article.post.post-list-thumb:not(.is-featured) .post-meta { display: none; }

/* 说说：通栏紧凑排列 */
body.home #main > article.shuoshuo-item { grid-column: 1 / -1; }

/* 分页等兜底元素：通栏 */
body.home #main > nav { grid-column: 1 / -1; }

@media (max-width: 860px) {
  body.home h1.main-title.posts-area-title,
  .home-hot h1.main-title.hot-title {
    font-size: 22px;
  }

  body.home #main {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  body.home #main > article.post.post-list-thumb.is-featured { height: 420px; }

  body.home #main > article.post.post-list-thumb.is-featured .post-thumb a { height: 420px; }

  body.home #main > article.post.post-list-thumb.is-featured .post-title {
    left: 18px;
    right: 18px;
    bottom: 18px;
    max-width: none;
    padding: 20px 22px;
    border-radius: 18px;
  }

  body.home #main > article.post.post-list-thumb.is-featured .post-title h3 { font-size: 22px; }

  body.home #main > article.post.post-list-thumb.is-featured .post-title .post-excerpt {
    font-size: 13.5px;
    -webkit-line-clamp: 2;
  }

  body.home #main > article.post.post-list-thumb:not(.is-featured) { height: 260px; }

  body.home #main > article.post.post-list-thumb:not(.is-featured) .post-thumb a { height: 260px; }
}

/* ---------- 15. 热门文章 v2：大卡片排行 ---------- */
.home-hot {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 3% 20px 0;
  box-sizing: border-box;
}

.hot-rank {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.hot-item a {
  display: flex;
  height: 220px;
  position: relative;
  border-radius: var(--sc-radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 143, 177, 0.16);
  box-shadow: var(--sc-shadow);
  transition: transform 0.35s var(--sc-ease), box-shadow 0.35s var(--sc-ease), border-color 0.35s ease;
}

.hot-item a:hover {
  transform: translateY(-6px);
  box-shadow: var(--sc-shadow-hover);
  border-color: rgba(255, 143, 177, 0.5);
}

.hot-thumb {
  flex: 0 0 44%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ffd6e7, #e9d5ff);
}

.hot-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--sc-ease);
}

.hot-item a:hover .hot-thumb img { transform: scale(1.07); }

/* 排名数字：斜体大数字压在封面左上角 */
.hot-num {
  position: absolute;
  top: 8px;
  left: 14px;
  z-index: 2;
  font-size: 46px;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.hot-item.rank-1 .hot-num { color: #ff5c8a; }
.hot-item.rank-2 .hot-num { color: #ff8fb1; }
.hot-item.rank-3 .hot-num { color: #c084fc; }

/* TOP1 特殊待遇：粉色描边 + 光晕 */
.hot-item.rank-1 a {
  border: 1.5px solid rgba(247, 92, 141, 0.55);
  box-shadow: 0 18px 44px rgba(247, 92, 141, 0.2);
}

.hot-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 26px;
}

.hot-item-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  color: #4a4a4a;
  transition: color 0.3s ease;
}

.hot-item a:hover .hot-item-title { color: var(--sakura-deep); }

.hot-item-excerpt {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.7;
  color: #8a757e;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hot-item-meta {
  margin-top: 14px;
  font-size: 12.5px;
  color: #c09aac;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hot-item-meta .fa-eye,
.hot-item-meta .fa-clock {
  color: var(--sakura);
  margin-right: 4px;
}

body.dark .hot-item a {
  background: var(--dark-card);
  border-color: rgba(255, 143, 177, 0.16);
}

body.dark .hot-item-title { color: #f3e6ec; }
body.dark .hot-item a:hover .hot-item-title { color: var(--sakura); }
body.dark .hot-item-excerpt { color: #a98f9a; }
body.dark .hot-item-meta { color: #b9a8b3; }

@media (max-width: 860px) {
  .home-hot { padding: 26px 14px 0; }

  .hot-rank {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hot-item a {
    flex-direction: column;
    height: auto;
  }

  .hot-thumb {
    flex: none;
    width: 100%;
    height: 180px;
  }

  .hot-num { font-size: 38px; }

  .hot-info { padding: 18px 20px 20px; }

  .hot-item-title { font-size: 17px; }
}

/* ---------- 16. 文章排版组件库（长文 / 教程 / 时间线通用） ---------- */

/* 自动目录：JS 从 h2/h3 生成 */
.auto-toc {
  margin: 28px 0;
  padding: 22px 26px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 143, 177, 0.1), rgba(167, 139, 250, 0.1));
  border: 1px solid rgba(255, 143, 177, 0.25);
}

.auto-toc .toc-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--sakura-deep);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.auto-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }

.auto-toc ol li { counter-increment: toc; margin: 7px 0; line-height: 1.6; }

.auto-toc ol li::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 12px;
  font-weight: 800;
  font-style: italic;
  color: #fff;
  background: var(--sakura-btn);
  border-radius: 8px;
  padding: 2px 8px;
  margin-right: 10px;
}

.auto-toc ol li.toc-h3 { padding-left: 26px; }

.auto-toc ol li.toc-h3::before { background: var(--wisteria, #a78bfa); }

.auto-toc a { color: #5b4a53; text-decoration: none; transition: color 0.25s ease; }

.auto-toc a:hover { color: var(--sakura-deep); }

body.dark .auto-toc { background: rgba(255, 143, 177, 0.06); }

body.dark .auto-toc a { color: #d8c6cf; }

/* 时间线（AI 发展史用） */
.timeline {
  position: relative;
  margin: 30px 0;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(to bottom, var(--sakura), #a78bfa);
}

.tl-item {
  position: relative;
  margin-bottom: 26px;
  padding: 18px 22px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(255, 143, 177, 0.16);
  box-shadow: var(--sc-shadow);
}

.tl-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 24px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--sakura);
  box-shadow: 0 0 0 4px rgba(255, 143, 177, 0.18);
}

.tl-item .tl-year {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--sakura-btn);
  border-radius: 999px;
  padding: 3px 14px;
  margin-bottom: 10px;
}

.tl-item h4 { margin: 0 0 8px; font-size: 17px; }

.tl-item p { margin: 6px 0; color: #6d5b64; line-height: 1.8; }

body.dark .tl-item { background: var(--dark-card); }

body.dark .tl-item p { color: #c9b6c0; }

/* 提示框 */
.callout {
  margin: 22px 0;
  padding: 16px 20px 16px 52px;
  border-radius: 14px;
  position: relative;
  line-height: 1.8;
  font-size: 15px;
}

.callout::before {
  position: absolute;
  left: 18px;
  top: 16px;
  font-size: 20px;
}

.callout.tip { background: rgba(255, 143, 177, 0.1); border: 1px solid rgba(255, 143, 177, 0.35); }

.callout.tip::before { content: "💡"; }

.callout.warn { background: rgba(255, 183, 77, 0.12); border: 1px solid rgba(255, 183, 77, 0.45); }

.callout.warn::before { content: "⚠️"; }

.callout.info { background: rgba(167, 139, 250, 0.1); border: 1px solid rgba(167, 139, 250, 0.4); }

.callout.info::before { content: "📌"; }

body.dark .callout { background: rgba(255, 255, 255, 0.04); }

/* 命令速查表 */
.cmd-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 20px 0; font-size: 14.5px; }

.cmd-table th {
  background: linear-gradient(135deg, var(--sakura), #a78bfa);
  color: #fff;
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
}

.cmd-table th:first-child { border-radius: 12px 0 0 0; }

.cmd-table th:last-child { border-radius: 0 12px 0 0; }

.cmd-table td {
  padding: 11px 16px;
  border-bottom: 1px solid rgba(255, 143, 177, 0.14);
  vertical-align: top;
  line-height: 1.7;
}

.cmd-table tr:last-child td:first-child { border-radius: 0 0 0 12px; }

.cmd-table tr:last-child td:last-child { border-radius: 0 0 12px 0; }

.cmd-table tr:hover td { background: rgba(255, 143, 177, 0.06); }

.cmd-table code {
  background: rgba(255, 143, 177, 0.12);
  color: var(--sakura-deep);
  padding: 2px 8px;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13.5px;
  white-space: nowrap;
}

body.dark .cmd-table td { border-color: rgba(255, 255, 255, 0.07); }

body.dark .cmd-table code { color: #ff9ebb; }

/* 配图卡片 */
.img-card { margin: 24px 0; text-align: center; }

.img-card img {
  max-width: 100%;
  border-radius: 16px;
  box-shadow: var(--sc-shadow);
  transition: transform 0.5s var(--sc-ease);
}

.img-card img:hover { transform: scale(1.015); }

.img-card figcaption { margin-top: 10px; font-size: 13px; color: #a08a94; }

.img-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }

@media (max-width: 640px) { .img-row { grid-template-columns: 1fr; } }

/* 滚动显现动画 */
.anim-in { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s var(--sc-ease); }

.anim-in.in { opacity: 1; transform: none; }

/* 代码块一键复制按钮 */
.code-block-wrap { position: relative; }

.code-copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--sakura-btn);
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  opacity: 0.92;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.code-copy-btn:hover { transform: translateY(-2px); opacity: 1; }

.code-copy-btn.copied { background: linear-gradient(135deg, #34d399, #10b981); }

/* Docker 卡片（一键部署） */
.docker-card {
  margin: 22px 0;
  border-radius: 18px;
  border: 1px solid rgba(255, 143, 177, 0.2);
  overflow: hidden;
  box-shadow: var(--sc-shadow);
  background: #fff;
}

.docker-card .dc-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(255, 143, 177, 0.14), rgba(167, 139, 250, 0.14));
}

.docker-card .dc-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: var(--sc-shadow);
  flex: none;
}

.docker-card .dc-name { font-size: 18px; font-weight: 800; }

.docker-card .dc-desc { font-size: 13.5px; color: #8a757e; margin-top: 4px; line-height: 1.6; }

.docker-card .dc-tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 22px 0; }

.docker-card .dc-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--sakura-deep);
  background: rgba(255, 143, 177, 0.12);
  border-radius: 999px;
  padding: 3px 12px;
}

.docker-card .code-block-wrap { margin: 14px 22px 22px; }

body.dark .docker-card { background: var(--dark-card); }

body.dark .docker-card .dc-desc { color: #b9a8b3; }

body.dark .docker-card .dc-logo { background: rgba(255, 255, 255, 0.08); }

/* ============ 紧凑页脚 + 访客天气条 ============ */
.site-footer .footer-content {
  padding: 20px 15px 14px;
}
.site-footer .footer_info {
  margin: 4px 0;
  line-height: 2;
  font-size: 13px;
}
.site-footer .footer-line {
  display: block;
}
.site-footer .theme-info {
  margin-top: 8px;
  font-size: 12px;
  opacity: .75;
}

/* 访客条：胶囊形，居中 */
.visitor-bar {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 8px;
  max-width: 100%;
  margin: 10px auto 0;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 143, 177, .08);
  border: 1px solid rgba(255, 143, 177, .22);
  font-size: 12.5px;
  line-height: 1.7;
  color: #96687e;
}
.visitor-bar b { color: var(--sakura-deep, #f75c8d); font-weight: 700; }
.visitor-bar .vb-sep { opacity: .4; }
.visitor-bar i.fa-solid { margin-right: 3px; opacity: .8; }
.visitor-bar .vb-weather:empty { display: none; }

body.dark .visitor-bar {
  background: rgba(167, 139, 250, .1);
  border-color: rgba(167, 139, 250, .28);
  color: #c9b8d4;
}
body.dark .visitor-bar b { color: #f9a8c9; }

@media (max-width: 640px) {
  .visitor-bar { font-size: 12px; padding: 7px 14px; border-radius: 18px; }
  .site-footer .footer_info { font-size: 12.5px; }
}

/* ---------- 17. 热门文章 v3：九宫格 ---------- */
.hot-rank {
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.hot-item a {
  flex-direction: column;
  height: 100%;
}

.hot-thumb {
  flex: none;
  width: 100%;
  height: 168px;
}

/* 排名徽章：圆形，TOP3 粉紫渐变 */
.hot-num {
  top: 12px;
  left: 12px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-style: normal;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #c084a8;
  text-shadow: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.hot-item.rank-1 .hot-num { background: linear-gradient(135deg, #ff5c8a, #ff8fb1); color: #fff; }
.hot-item.rank-2 .hot-num { background: linear-gradient(135deg, #ff8fb1, #f9a8d4); color: #fff; }
.hot-item.rank-3 .hot-num { background: linear-gradient(135deg, #a78bfa, #c4b5fd); color: #fff; }

.hot-info {
  justify-content: flex-start;
  padding: 16px 18px 18px;
}

.hot-item-title { font-size: 16.5px; }

.hot-item-excerpt {
  margin-top: 8px;
  font-size: 13px;
}

.hot-item-meta {
  margin-top: 12px;
  font-size: 12px;
  gap: 12px;
}

@media (max-width: 1024px) {
  .hot-rank { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .hot-rank { gap: 14px; }
  .hot-thumb { height: 118px; }
  .hot-num { width: 30px; height: 30px; font-size: 15px; top: 8px; left: 8px; }
  .hot-info { padding: 12px 13px 14px; }
  .hot-item-title { font-size: 14px; }
  .hot-item-excerpt { display: none; }
  .hot-item-meta { margin-top: 8px; font-size: 11px; gap: 8px; }
}

/* ---------- 18. 最近文章小卡 v3：经典杂志卡（图上文下） ---------- */
body.home #main { align-items: stretch; }

body.home #main > article.post.post-list-thumb:not(.is-featured) {
  height: auto;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 143, 177, 0.14);
  box-shadow: var(--sc-shadow);
  transition: transform 0.35s var(--sc-ease), box-shadow 0.35s var(--sc-ease), border-color 0.35s ease;
}

body.home #main > article.post.post-list-thumb:not(.is-featured):hover {
  transform: translateY(-6px);
  box-shadow: var(--sc-shadow-hover);
  border-color: rgba(255, 143, 177, 0.45);
}

body.home #main > article.post.post-list-thumb:not(.is-featured) .post-thumb {
  order: 0;
  height: 190px;
  flex: none;
  overflow: hidden;
  background: linear-gradient(135deg, #ffd6e7, #e9d5ff);
}

body.home #main > article.post.post-list-thumb:not(.is-featured) .post-thumb a { height: 190px; }

body.home #main > article.post.post-list-thumb:not(.is-featured) .post-thumb a img {
  transition: transform 0.8s var(--sc-ease);
}

body.home #main > article.post.post-list-thumb:not(.is-featured):hover .post-thumb a img {
  transform: scale(1.07);
}

/* 去掉旧的底部深色渐变 */
body.home #main > article.post.post-list-thumb:not(.is-featured) .post-thumb::after { display: none; }

/* 日期徽章：压在封面右上角 */
body.home #main > article.post.post-list-thumb:not(.is-featured) .post-date {
  position: absolute;
  top: 12px;
  right: 12px;
  left: auto;
  bottom: auto;
  z-index: 3;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #b45a7e;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

body.home #main > article.post.post-list-thumb:not(.is-featured) .post-date i { color: var(--sakura); }

/* 标题区：静态排布，不再压图 */
body.home #main > article.post.post-list-thumb:not(.is-featured) .post-title,
body.home #main > article.post.post-list-thumb:not(.is-featured) .post-title:hover {
  order: 1;
  position: static;
  top: auto; bottom: auto; left: auto; right: auto;
  max-width: none;
  width: auto;
  margin: 0;
  padding: 18px 20px 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  z-index: auto;
}

body.home #main > article.post.post-list-thumb:not(.is-featured) .post-title h3 {
  color: #3f3f46;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0.5px;
  text-shadow: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.home #main > article.post.post-list-thumb:not(.is-featured):hover .post-title h3 {
  color: var(--sakura-deep);
  letter-spacing: 0.5px;
}

/* 摘要：重新显示，灰色两行 */
body.home #main > article.post.post-list-thumb:not(.is-featured) .post-excerpt {
  order: 2;
  display: block;
  position: static;
  width: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 9px 20px 0;
  left: auto; bottom: auto;
}

body.home #main > article.post.post-list-thumb:not(.is-featured) .post-excerpt .ai-excerpt-tip { display: none; }

body.home #main > article.post.post-list-thumb:not(.is-featured) .post-excerpt p {
  margin: 0;
  max-height: none;
  font-size: 13.5px;
  line-height: 1.7;
  color: #8a757e;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 元信息行：沉底，虚线分隔 */
body.home #main > article.post.post-list-thumb:not(.is-featured) .post-meta {
  order: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  position: static;
  width: auto;
  margin: auto 20px 0;
  padding: 12px 0 17px;
  border-top: 1px dashed rgba(255, 143, 177, 0.3);
  font-size: 12px;
  color: #c09aac;
}

body.home #main > article.post.post-list-thumb:not(.is-featured) .post-meta a { color: #c09aac; }
body.home #main > article.post.post-list-thumb:not(.is-featured) .post-meta a:hover { color: var(--sakura-deep); }
body.home #main > article.post.post-list-thumb:not(.is-featured) .post-meta i { color: var(--sakura); margin-right: 4px; }

body.dark body.home #main > article.post.post-list-thumb:not(.is-featured) { background: var(--dark-card); }
body.dark body.home #main > article.post.post-list-thumb:not(.is-featured) .post-title h3 { color: #f3e6ec; }
body.dark body.home #main > article.post.post-list-thumb:not(.is-featured) .post-excerpt p { color: #a98f9a; }
body.dark body.home #main > article.post.post-list-thumb:not(.is-featured) .post-date { background: rgba(40, 24, 34, 0.85); color: #f0b8d0; }
body.dark body.home #main > article.post.post-list-thumb:not(.is-featured) .post-meta { color: #b9a8b3; border-top-color: rgba(255, 143, 177, 0.22); }
body.dark body.home #main > article.post.post-list-thumb:not(.is-featured) .post-meta a { color: #b9a8b3; }

@media (max-width: 860px) {
  body.home #main > article.post.post-list-thumb:not(.is-featured) .post-thumb,
  body.home #main > article.post.post-list-thumb:not(.is-featured) .post-thumb a { height: 165px; }
  body.home #main > article.post.post-list-thumb:not(.is-featured) .post-title,
  body.home #main > article.post.post-list-thumb:not(.is-featured) .post-title:hover { padding: 15px 16px 0; }
  body.home #main > article.post.post-list-thumb:not(.is-featured) .post-excerpt { padding: 8px 16px 0; }
  body.home #main > article.post.post-list-thumb:not(.is-featured) .post-meta { margin: auto 16px 0; }
}

/* ---------- 19. 页脚 v2：华丽紧凑（莓紫夜樱风） ---------- */
footer#colophon.site-footer {
  position: relative;
  overflow: hidden;
  border: none;
  margin-top: 52px;
  background: linear-gradient(165deg, #2e1b28 0%, #47234e 52%, #2b1a26 100%);
  color: #f6dcea;
}

/* 顶部流光线 */
footer#colophon.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 2;
  background: linear-gradient(90deg, transparent 2%, #ff8fb1 22%, #f9a8d4 38%, #a78bfa 55%, #ff8fb1 78%, transparent 98%);
}

/* 背景光晕 */
footer#colophon.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(520px 190px at 12% 0%, rgba(255, 143, 177, 0.16), transparent 65%),
    radial-gradient(560px 200px at 88% 110%, rgba(167, 139, 250, 0.16), transparent 65%);
}

footer#colophon .site-info { position: relative; z-index: 1; }

footer#colophon .site-info .footer-content {
  text-align: center;
  padding: 24px 16px 2px;
}

/* 信息胶囊 */
footer#colophon .footer_info { margin: 0; }

footer#colophon .footer_info .footer-line {
  display: inline-block;
  margin: 4px 5px;
  padding: 6px 16px;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  line-height: 1.6;
  color: #f2d3e1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 143, 177, 0.28);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 1;
}

footer#colophon .footer_info .footer-line:first-child {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, rgba(247, 92, 141, 0.28), rgba(167, 139, 250, 0.28));
  border-color: rgba(255, 143, 177, 0.55);
  box-shadow: 0 4px 18px rgba(247, 92, 141, 0.25);
}

footer#colophon .footer_info .footer-line i {
  margin-right: 6px;
  color: #ff9ebb;
}

footer#colophon .footer_info #site-run-days,
footer#colophon .footer_info #site-quote {
  font-weight: 700;
  color: #ffe9f2;
}

/* 访客条：融入夜樱页脚 */
.visitor-bar {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(167, 139, 250, 0.42);
  color: #e7cdf7;
  box-shadow: 0 0 26px rgba(167, 139, 250, 0.2), inset 0 0 18px rgba(255, 143, 177, 0.06);
}

.visitor-bar b { color: #ffb3cd; }
.visitor-bar i.fa-solid { color: #f9a8d4; }

body.dark .visitor-bar {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(167, 139, 250, 0.42);
  color: #e7cdf7;
}
body.dark .visitor-bar b { color: #ffb3cd; }

footer#colophon .theme-info {
  text-align: center;
  margin: 10px 0 2px;
  font-size: 12px;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

footer#colophon .theme-info a {
  margin: 0 8px;
  color: #d9a8c4;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

footer#colophon .theme-info a:hover {
  color: #ffd6e7;
  text-shadow: 0 0 14px rgba(255, 143, 177, 0.9);
  opacity: 1;
}

@media (max-width: 640px) {
  footer#colophon .site-info .footer-content { padding: 20px 12px 2px; }
  footer#colophon .footer_info .footer-line { font-size: 12px; padding: 5px 13px; margin: 3px 4px; }
}

/* ============ 第20节：关于我页面 ============ */
.about-lead{font-size:1.12em;line-height:1.9;color:#5a4a5e;background:linear-gradient(135deg,rgba(255,183,197,.14),rgba(196,132,252,.12));border:1px solid rgba(255,183,197,.35);border-radius:16px;padding:18px 22px;margin:6px 0 26px}
.about-lead strong{color:#e0567f}
.about-figure{margin:0 0 28px;border-radius:18px;overflow:hidden;box-shadow:0 12px 40px rgba(224,86,127,.16);border:1px solid rgba(255,183,197,.3);background:#fff}
.about-figure img{display:block;width:100%;height:auto}
.about-figure figcaption{padding:12px 18px;font-size:.86em;color:#9a8a9e;background:linear-gradient(180deg,rgba(255,240,244,.6),rgba(255,255,255,.9));text-align:center}
.about-roles,.about-farm,.about-trivia{list-style:none;margin:0 0 24px;padding:0;display:grid;gap:10px}
.about-roles li,.about-farm li,.about-trivia li{background:#fff;border:1px solid rgba(255,183,197,.28);border-radius:12px;padding:12px 16px;line-height:1.75;color:#5a4a5e;box-shadow:0 4px 14px rgba(224,86,127,.06)}
.about-roles strong,.about-farm strong{color:#d14d7a}
.about-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:0 0 24px}
.about-card{background:linear-gradient(160deg,#fff, #fff5f8);border:1px solid rgba(255,183,197,.35);border-radius:16px;padding:20px 18px;box-shadow:0 8px 24px rgba(224,86,127,.1);transition:transform .3s,box-shadow .3s}
.about-card:hover{transform:translateY(-5px);box-shadow:0 14px 34px rgba(224,86,127,.2)}
.about-card h3{margin:0 0 8px;font-size:1.08em;color:#d14d7a}
.about-card p{margin:0;font-size:.92em;color:#7a6a7e;line-height:1.8}
.about-quote{border:none;background:linear-gradient(135deg,rgba(224,86,127,.08),rgba(196,132,252,.08));border-radius:16px;padding:26px;text-align:center;font-size:1.1em;line-height:2;color:#8a6a8e;margin:28px 0}
.about-quote p{margin:0}
.about-sign{text-align:right;color:#9a8a9e;line-height:2;margin-top:10px}
/* 关于页暗色模式 */
body.dark .about-lead{color:#e8d8e4;background:linear-gradient(135deg,rgba(255,183,197,.1),rgba(196,132,252,.1))}
body.dark .about-figure{background:#2b2130;border-color:rgba(255,183,197,.2)}
body.dark .about-figure figcaption{background:rgba(43,33,48,.9);color:#b8a8bc}
body.dark .about-roles li,body.dark .about-farm li,body.dark .about-trivia li{background:#2b2130;border-color:rgba(255,183,197,.18);color:#d8c8dc}
body.dark .about-card{background:linear-gradient(160deg,#2e2333,#2b2130);border-color:rgba(255,183,197,.2)}
body.dark .about-card p{color:#b8a8bc}
body.dark .about-quote{color:#c8b0cc}
body.dark .about-sign{color:#8a7a8e}
@media (max-width:700px){.about-cards{grid-template-columns:1fr}}

/* ============ 第21节：Hero 标语卡片可读性修复 ============ */
/* 根因：父主题 .header-info 文字色取 --theme-skin(#ff8fb1 浅粉)，
   卡片底为 90% 白 → 粉底白字，对比度极低。此处按亮/暗模式分别重定文字与卡片色 */
.header-info{
  background:rgba(255,255,255,.78) !important;
  border:1px solid rgba(247,92,141,.35) !important;
  box-shadow:0 10px 34px rgba(224,86,127,.18), inset 0 1px 0 rgba(255,255,255,.6);
  color:#5c3a52 !important;
}
.header-info p,
.header-info .element{
  color:#5c3a52 !important;
  font-weight:600;
  letter-spacing:.12em;
}
.header-info .fa-quote-left,
.header-info .fa-quote-right{
  color:#f75c8d !important;
  opacity:.85;
}
.header-info .typed-cursor{
  color:#f75c8d !important;
}
/* 暗色模式：夜樱深紫玻璃卡 + 月白文字 */
body.dark .header-info{
  background:rgba(30,20,34,.66) !important;
  border:1px solid rgba(255,143,177,.4) !important;
  box-shadow:0 10px 34px rgba(0,0,0,.45), 0 0 24px rgba(247,92,141,.16), inset 0 1px 0 rgba(255,255,255,.08);
  color:#f7dce8 !important;
}
body.dark .header-info p,
body.dark .header-info .element{
  color:#f7dce8 !important;
  text-shadow:0 1px 8px rgba(0,0,0,.5);
}
body.dark .header-info .fa-quote-left,
body.dark .header-info .fa-quote-right,
body.dark .header-info .typed-cursor{
  color:#ff9ebb !important;
}
/* 移动端：卡片加宽、字号微调，保证不溢出 */
@media (max-width:860px){
  .header-info{width:88% !important;font-size:14px;padding:12px 14px;margin-top:16px}
  .header-info p,.header-info .element{letter-spacing:.06em}
}

/* ============================================================
 * 第22节 看板娘（Live2D）+ 深浅色切换按钮 + 换肤面板移除
 * ============================================================ */

/* 22.1 换肤按钮与控制面板隐藏兜底（JS 已从 DOM 移除） */
#changskin,
.skin-menu{
  display:none !important;
}

/* 22.2 右上角太阳/月亮深浅色切换按钮 */
.sc-darkmode-toggle{
  display:flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  margin-left:10px;
  border-radius:50%;
  cursor:pointer;
  color:#7a5f73;
  background:rgba(255,255,255,.6);
  border:1px solid rgba(255,143,177,.35);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  transition:transform .25s ease,background .25s ease,color .25s ease,border-color .25s ease;
}
.sc-darkmode-toggle:hover{
  transform:rotate(25deg) scale(1.08);
  background:rgba(255,240,246,.92);
  color:#e0508a;
  border-color:rgba(255,143,177,.65);
}
.sc-darkmode-toggle:focus-visible{
  outline:2px solid #ff8fb1;
  outline-offset:2px;
}
.sc-darkmode-toggle i{font-size:15px;line-height:1}
/* 暗色模式：月光金 */
body.dark .sc-darkmode-toggle{
  color:#ffd98a;
  background:rgba(42,30,46,.55);
  border-color:rgba(255,143,177,.5);
}
body.dark .sc-darkmode-toggle:hover{
  background:rgba(58,40,62,.75);
  color:#ffe9b8;
}

/* 22.3 看板娘：左下角定位，层级低于回到顶部按钮 */
#waifu{
  left:0 !important;
  right:auto !important;
  z-index:90 !important;
}
#waifu-toggle{
  background-color:#f2729d !important;
}
/* 气泡：樱粉主题 */
#waifu-tips{
  background:rgba(255,243,248,.94) !important;
  border:1px solid rgba(255,143,177,.55) !important;
  box-shadow:0 8px 26px rgba(224,80,138,.2) !important;
  color:#8a4a63 !important;
  font-size:13px !important;
  border-radius:14px !important;
}
#waifu-tips span{color:#e0508a !important}
body.dark #waifu-tips{
  background:rgba(42,28,38,.94) !important;
  border-color:rgba(255,143,177,.5) !important;
  color:#f7dce8 !important;
  box-shadow:0 8px 26px rgba(0,0,0,.45) !important;
}
body.dark #waifu-tips span{color:#ff9ebb !important}
/* 工具图标：樱粉 */
#waifu-tool svg{fill:#e88cae !important}
#waifu-tool svg:hover{fill:#e0508a !important}

/* 22.4 移动端：迷你可爱 Pio（不再隐藏） */
@media (max-width:768px){
  /* Pio 本体缩小到 Q 版 */
  #waifu{
    bottom:-6px !important;
  }
  #live2d{
    width:160px !important;
    height:160px !important;
  }
  /* 气泡适配小屏 */
  #waifu-tips{
    width:185px !important;
    font-size:12px !important;
    line-height:20px !important;
    min-height:54px !important;
    margin:-18px 8px !important;
    padding:6px 10px !important;
  }
  #waifu-tips::after{
    left:28px !important;
  }
  /* 工具栏缩小 */
  #waifu-tool{
    top:36px !important;
    right:-4px !important;
    gap:8px !important;
  }
  #waifu-tool svg{
    height:20px !important;
  }
  /* 唤出按钮位置 */
  #waifu-toggle{
    bottom:44px !important;
  }
  /* 手机端星光粒子小一点 */
  .pio-sparkle{
    font-size:10px !important;
  }
}

/* ============================================================
 * 第23节：说说页面时间线
 * ============================================================ */
.shuoshuo-archive {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}
.shuoshuo-header {
  text-align: center;
  margin-bottom: 40px;
}
.shuoshuo-title {
  font-size: 2rem;
  color: #e0508a;
  margin-bottom: 8px;
}
.shuoshuo-des {
  color: #999;
  font-size: 0.95rem;
}
.shuoshuo-timeline {
  position: relative;
  padding-left: 40px;
}
.shuoshuo-timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #ffb1cc, #e0aaff);
  border-radius: 2px;
}
.shuoshuo-item {
  position: relative;
  margin-bottom: 28px;
}
.shuoshuo-dot {
  position: absolute;
  left: -40px;
  top: 4px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(224, 80, 138, 0.3);
  z-index: 1;
}
.shuoshuo-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 143, 177, 0.25);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 4px 16px rgba(224, 80, 138, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.shuoshuo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(224, 80, 138, 0.15);
}
.shuoshuo-meta {
  margin-bottom: 8px;
}
.shuoshuo-date {
  font-weight: 600;
  color: #e0508a;
  margin-right: 8px;
}
.shuoshuo-time {
  color: #bbb;
  font-size: 0.85rem;
}
.shuoshuo-post-title {
  font-size: 1.15rem;
  margin: 0 0 10px 0;
  color: #555;
}
.shuoshuo-content {
  color: #666;
  line-height: 1.8;
}
.shuoshuo-content p {
  margin: 0 0 8px 0;
}
.shuoshuo-content p:last-child {
  margin-bottom: 0;
}
/* 深色模式 */
body.dark .shuoshuo-card {
  background: rgba(42, 28, 38, 0.9);
  border-color: rgba(255, 143, 177, 0.3);
}
body.dark .shuoshuo-post-title {
  color: #f7dce8;
}
body.dark .shuoshuo-content {
  color: #d4b8c5;
}
body.dark .shuoshuo-des {
  color: #8a7585;
}
/* 移动端 */
@media (max-width: 768px) {
  .shuoshuo-timeline {
    padding-left: 32px;
  }
  .shuoshuo-dot {
    left: -32px;
    width: 26px;
    height: 26px;
    font-size: 12px;
  }
  .shuoshuo-card {
    padding: 16px 18px;
  }
}

/* 说说详情页 */
.shuoshuo-single {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}
.shuoshuo-single-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 143, 177, 0.25);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 8px 32px rgba(224, 80, 138, 0.1);
}
.shuoshuo-single-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.shuoshuo-single-head .shuoshuo-dot {
  position: static;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  font-size: 18px;
}
.shuoshuo-single-title {
  font-size: 1.5rem;
  margin: 4px 0 0 0;
  color: #555;
}
.shuoshuo-single-foot {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 143, 177, 0.3);
}
.shuoshuo-back {
  color: #e0508a;
  text-decoration: none;
}
.shuoshuo-back:hover {
  text-decoration: underline;
}
body.dark .shuoshuo-single-card {
  background: rgba(42, 28, 38, 0.9);
  border-color: rgba(255, 143, 177, 0.3);
}
body.dark .shuoshuo-single-title {
  color: #f7dce8;
}
.shuoshuo-pagination {
  text-align: center;
  margin-top: 32px;
}
.shuoshuo-empty {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}
