/* =====================================================
   Snows Theme — 梦幻二次元清新博客
   字体：本地 woff2，回退到系统字体
   ===================================================== */

/* ── 本地中文字体（TTF/OTF，按需加载） ── */
@font-face { font-family: "XC Robot";         font-display: swap; src: url("../fonts/XCRobot.ttf") format("truetype"); }
@font-face { font-family: "传趣体";           font-display: swap; src: url("../fonts/ChuanQu-Regular.ttf") format("truetype"); }
@font-face { font-family: "九龄卡通";         font-display: swap; src: url("../fonts/JiuLingKaTong.ttf") format("truetype"); }
@font-face { font-family: "守中曲画";         font-display: swap; src: url("../fonts/ShouZhongQuHua.ttf") format("truetype"); }
@font-face { font-family: "平方手书体";       font-display: swap; src: url("../fonts/PingFangShouShu.ttf") format("truetype"); }
@font-face { font-family: "文心喜乐体";       font-display: swap; src: url("../fonts/WenXinXiLe.ttf") format("truetype"); }
@font-face { font-family: "玄宗体";           font-display: swap; src: url("../fonts/XuanZongTi.otf") format("opentype"); }
@font-face { font-family: "纳米点望宋";       font-display: swap; src: url("../fonts/NanoDyongWongSong.ttf") format("truetype"); }
@font-face { font-family: "纳米空型黑";       font-display: swap; src: url("../fonts/NanoKongHinhHei.ttf") format("truetype"); }
@font-face { font-family: "香萃积雪宋";       font-display: swap; src: url("../fonts/XiangCuiJiXueSong.ttf") format("truetype"); }

/* 本地字体：DM Sans 使用主题 assets/fonts/ 下的 woff2，中文用系统字体，不请求 Google */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("DM Sans"), local("DM Sans Regular"),
       url("../fonts/DMSans-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local("DM Sans Medium"),
       url("../fonts/DMSans-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local("DM Sans Bold"),
       url("../fonts/DMSans-Bold.woff2") format("woff2");
}

:root {
  --primary: #25bbe4;
  --primary-rgb: 37, 187, 228;
  --primary-light: rgba(37, 187, 228, 0.12);
  --green: #3cb371;
  --green-bg: rgba(60, 179, 113, 0.12);
  --bg: #f0f4fb;
  --card: #fff;
  --text: #333;
  --muted: #888;
  --border: rgba(0, 0, 0, 0.07);
  --radius: 12px;
  --shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 28px rgba(0, 0, 0, 0.12);
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "DM Sans", system-ui, sans-serif;
}

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

body.dark-theme {
  --bg: #1a1d24;
  --card: #252830;
  --text: #e4e6eb;
  --muted: #b0b3b8;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 8px 28px rgba(0, 0, 0, 0.4);
  background: linear-gradient(135deg, #1a1d24 0%, #252830 50%, #1e2128 100%) !important;
}

/* ===================== 暗色主题：组件覆盖 ===================== */
body.dark-theme::before,
body.dark-theme::after {
  opacity: 0.2;
  background: linear-gradient(180deg,
    rgba(100, 120, 180, 0.25) 0%,
    rgba(80, 100, 160, 0.2) 50%,
    rgba(100, 120, 180, 0.25) 100%
  );
}

body.dark-theme .top-nav {
  background: rgba(26, 29, 36, 0.88);
  border-bottom-color: var(--border);
}

body.dark-theme .nav a { color: var(--muted); }
body.dark-theme .nav a:hover { background: var(--primary-light); color: var(--primary); }

body.dark-theme .notice-label { color: var(--muted); }
body.dark-theme .notice-bar { border-color: var(--border); }
body.dark-theme .notice-tag {
  background: var(--primary-light);
  color: var(--primary);
  border-right-color: rgba(var(--primary-rgb), 0.2);
}
body.dark-theme .notice-msg {
  background: #0d1117;
  color: #3ddc84;
}

body.dark-theme .section-title { color: var(--muted); }

body.dark-theme .post-cover { background: #1e2128; }
body.dark-theme .cover-fallback {
  background: linear-gradient(135deg, #2d3139 0%, #252830 100%);
}

body.dark-theme .post-card-excerpt { color: var(--muted); }
body.dark-theme .post-author-avatar { background: #3d4048; }

body.dark-theme .profile-header-bg {
  background: linear-gradient(135deg, #2d3139 0%, #252830 50%, #1e2128 100%);
}
body.dark-theme .profile-info-row { color: var(--muted); }

body.dark-theme .window-card-header {
  background: rgba(255, 255, 255, 0.06);
  border-bottom-color: var(--border);
}
body.dark-theme .window-dots i { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1); }
body.dark-theme .window-card-title { color: var(--text); }
body.dark-theme .tags-cloud-body {
  background: linear-gradient(135deg, #1e2128 0%, #252830 50%, #1a1d24 100%);
}
body.dark-theme .visit-card-body {
  background: linear-gradient(135deg, #1e2528 0%, #252830 100%);
}
body.dark-theme .stats-card-body {
  background: linear-gradient(135deg, #252420 0%, #252830 100%);
}
body.dark-theme .card-petals span { background: rgba(100, 140, 180, 0.25); }

body.dark-theme .visit-list { color: var(--muted); }
body.dark-theme .stats-list .stat-item { border-bottom-color: var(--border); color: var(--muted); }
body.dark-theme .stat-item { color: var(--muted); }

body.dark-theme .float-tools button {
  background: var(--card);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
}
body.dark-theme .float-tools button:hover {
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.45);
}

/* 主题切换按钮：日月图标同占位，切换不抖动 */

body.dark-theme .article-content pre {
  background: #1e2128;
  border-color: var(--border);
}
body.dark-theme .article-content code { background: var(--primary-light); }
body.dark-theme .article-content blockquote {
  border-left-color: var(--green);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}
body.dark-theme .article-content th { background: rgba(255, 255, 255, 0.06); }
body.dark-theme .article-content th,
body.dark-theme .article-content td { border-color: var(--border); }

body.dark-theme .article-hero-fallback {
  background: linear-gradient(135deg, #1e2128 0%, #252830 50%, #2d3139 100%);
}

body.dark-theme .toc-card h3 { color: var(--muted); }
body.dark-theme .toc-list a { color: var(--muted); }
body.dark-theme .toc-list a:hover { color: var(--primary); }

body.dark-theme .click-text {
  background: rgba(37, 40, 48, 0.85);
  border-color: var(--border);
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: linear-gradient(135deg,
    #fdf0f4 0%,
    #eef4fb 20%,
    #e8f6f8 40%,
    #f0f4fb 60%,
    #eef0fb 80%,
    #f5f0f8 100%
  );
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ===================== 彩虹侧边渐变 ===================== */
body::before,
body::after {
  content: "";
  position: fixed; top: 0; bottom: 0; width: 18px;
  z-index: 0; pointer-events: none;
}
body::before {
  left: 0;
  background: linear-gradient(180deg,
    rgba(255,182,193,0.35) 0%,
    rgba(173,216,230,0.35) 25%,
    rgba(144,238,144,0.30) 50%,
    rgba(255,255,180,0.30) 75%,
    rgba(255,182,193,0.35) 100%
  );
}
body::after {
  right: 0;
  background: linear-gradient(180deg,
    rgba(255,182,193,0.35) 0%,
    rgba(173,216,230,0.35) 25%,
    rgba(144,238,144,0.30) 50%,
    rgba(255,255,180,0.30) 75%,
    rgba(255,182,193,0.35) 100%
  );
}

/* ===================== 顶部导航 ===================== */
.top-nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: 52px; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.brand {
  display: flex; align-items: center; gap: 4px;
  font-weight: 700; font-size: 0.95rem; color: var(--primary);
  white-space: nowrap;
}
.brand-icon { font-size: 1.15rem; }
.brand .sep { font-weight: 400; margin: 0 2px; opacity: 0.5; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 3px;
  padding: 6px 10px; border-radius: 8px;
  font-size: 0.86rem; color: #555;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav a:hover { background: var(--primary-light); color: var(--primary); }
.nav .nav-emoji { font-size: 0.82rem; }
.nav-search {
  width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: transparent; font-size: 1rem; cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.15s;
}
.nav-search:hover { background: var(--primary-light); }

/* 导航子菜单（下拉） */
.nav-item-with-children {
  position: relative;
  display: inline-flex;
}
.nav-item-with-children > a { position: relative; z-index: 2; }
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 140px;
  margin: 4px 0 0;
  padding: 6px 0;
  list-style: none;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 100;
}
.nav-item-with-children:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown li { margin: 0; }
.nav-dropdown a {
  display: block;
  padding: 8px 14px;
  font-size: 0.85rem;
  color: var(--text);
  border-radius: 0;
}
.nav-dropdown a:hover { background: var(--primary-light); color: var(--primary); }
body.dark-theme .nav-dropdown { background: var(--card); border-color: var(--border); }
body.dark-theme .nav-dropdown a { color: var(--text); }

/* ===================== Hero 全屏横幅 ===================== */
.hero {
  position: relative;
  width: 100%; height: 100vh;
  overflow: hidden;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}

.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-fallback {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
  z-index: 0;
}

.hero-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.15);
  z-index: 1;
}

.hero-center {
  position: relative; z-index: 3;
  display: flex; flex-direction: column;
  align-items: center;
  padding-top: 40px;
}

.hero-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.9);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  object-fit: cover;
  background: linear-gradient(135deg, #a8d8ea, #c3e8d0);
}

.hero-avatar-fallback {
  width: 100px; height: 100px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.9);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: grid; place-items: center;
  font-size: 2rem; color: #fff;
}

.hero-text {
  margin-top: 20px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: 14px;
  padding: 18px 36px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.2);
}

.hero-quote {
  font-size: 0.92rem; color: rgba(255,255,255,0.85);
  font-style: italic;
  margin-bottom: 6px;
}

.hero-hello {
  font-size: 1rem; color: #fff;
  font-weight: 600;
}

.hero-social {
  margin-top: 24px;
  display: flex; align-items: center; gap: 10px;
}

.hero-social-icons { display: flex; gap: 12px; align-items: center; }

.hero-social-item {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
  text-decoration: none;
}
.hero-social-item img {
  width: 26px; height: 26px;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}
.hero-social-item:hover { transform: scale(1.12); box-shadow: 0 4px 18px rgba(0,0,0,0.18); }

/* 二维码弹出层 */
.hero-qrcode-popup {
  display: none;
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 12px;
  padding: 10px 10px 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.22);
  text-align: center;
  z-index: 100;
  min-width: 130px;
}
.hero-qrcode-popup img {
  width: 110px; height: 110px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.hero-qrcode-popup p {
  margin: 6px 0 0;
  font-size: 0.75rem;
  color: #555;
}
/* 小三角 */
.hero-qrcode-popup::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: #fff;
}

.hero-social-qrcode-wrap:hover .hero-qrcode-popup,
.hero-social-qrcode-wrap.active .hero-qrcode-popup {
  display: block;
}

.hero-scroll-hint {
  position: absolute; bottom: 30px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  animation: float-hint 2s ease-in-out infinite;
  color: rgba(255,255,255,0.6);
  font-size: 1.2rem;
}

@keyframes float-hint {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===================== 主内容 ===================== */
.content-wrap {
  position: relative; z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}

.content-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 20px;
  align-items: start;
}

/* ===================== 公告 NOTICE ===================== */
.notice-section { margin-bottom: 18px; }

.notice-label {
  font-size: 0.86rem; font-weight: 700;
  letter-spacing: 0.12em; color: #666;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.notice-label::before { content: "🔔"; font-size: 0.8rem; }

.notice-bar {
  display: grid; grid-template-columns: 56px 1fr;
  border-radius: 6px; overflow: hidden;
  border: 1px solid #ddd;
}

.notice-tag {
  background: var(--primary-light); color: var(--primary);
  display: grid; place-items: center;
  font-size: 0.84rem; font-weight: 600;
  border-right: 1px solid rgba(var(--primary-rgb), 0.2);
}

.notice-msg {
  background: #1a1a1a; color: #3ddc84;
  padding: 0 14px;
  font-size: 0.84rem;
  white-space: nowrap;
  overflow: hidden;
  height: 38px; line-height: 38px;
}

.notice-msg-inner {
  display: inline-block;
  animation: marquee 18s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ===================== 文章标题 ===================== */
.section-title {
  font-size: 0.92rem; font-weight: 700;
  letter-spacing: 0.12em; color: #555;
  margin: 20px 0 14px;
  display: flex; align-items: center; gap: 6px;
}

/* ===================== 文章卡片 ===================== */
.post-list li + li { margin-top: 18px; }

.post-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.5s ease-out, opacity 0.5s ease-out;
  transform: scale(0.88);
  opacity: 0.85;
}
.post-card.card-in-view {
  transform: scale(1);
  opacity: 1;
}
.post-card:hover {
  box-shadow: var(--shadow-hover), 0 0 0 1.5px var(--primary);
  transform: translateY(-3px) scale(1);
}
.post-card.card-in-view:hover {
  transform: translateY(-3px) scale(1);
  box-shadow: var(--shadow-hover), 0 0 0 1.5px var(--primary);
}

.post-cover {
  display: block; position: relative;
  min-height: 190px; background: #e8f0f8;
  overflow: hidden;
}
.post-cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s;
}
.post-card:hover .post-cover img { transform: scale(1.04); }

.cover-fallback {
  width: 100%; height: 100%; min-height: 190px;
  background: linear-gradient(135deg, #ddeeff 0%, #c8e6c9 100%);
}

.post-body {
  padding: 14px 18px;
  display: flex; flex-direction: column;
}

.post-date {
  font-size: 0.8rem; color: var(--muted);
  display: flex; align-items: center; gap: 4px;
}

.post-pinned-badge {
  display: inline-block;
  font-size: 0.72rem;
  padding: 2px 8px;
  margin-right: 6px;
  border-radius: 4px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.post-card-title {
  margin: 6px 0 0; font-size: 1.05rem;
  font-weight: 700; line-height: 1.45;
}
.post-card-title a { color: var(--text); transition: color 0.15s; }
.post-card-title a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

.post-author-row {
  margin: 8px 0 0; font-size: 0.82rem; color: var(--muted);
  display: flex; align-items: center; gap: 6px;
}

.post-author-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  object-fit: cover; background: #ddd;
}

.post-stats {
  margin: 6px 0 0; font-size: 0.78rem; color: var(--muted);
  display: flex; gap: 14px;
}
.post-stats span { display: flex; align-items: center; gap: 3px; }

.post-card-excerpt {
  margin: 8px 0 0; font-size: 0.88rem;
  color: #666; line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-tags {
  margin: 10px 0 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.post-tags a {
  display: inline-block;
  padding: 2px 10px; border-radius: 4px;
  font-size: 0.76rem; font-weight: 600;
  color: #fff;
}

.tag-green  { background: #3cb371; }
.tag-blue   { background: #42a5f5; }
.tag-orange { background: #ff9800; }
.tag-pink   { background: #ec407a; }
.tag-purple { background: #ab47bc; }
.tag-teal   { background: #26a69a; }

/* ===================== 右侧栏 ===================== */
.sidebar { display: flex; flex-direction: column; gap: 16px; }

.side-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.side-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover), 0 0 0 1px var(--primary);
}

/* --- 个人信息卡 --- */
.profile-card { text-align: center; }

.profile-header-bg {
  height: 80px;
  background: linear-gradient(135deg, var(--primary-light) 0%, rgba(var(--primary-rgb), 0.2) 60%, var(--primary-light) 100%);
  position: relative;
}

.profile-body { padding: 0 18px 18px; margin-top: -40px; position: relative; }

.profile-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  object-fit: cover;
  margin: 0 auto;
  position: relative;
}

.profile-avatar-fallback {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  margin: 0 auto;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: grid; place-items: center;
  font-size: 1.6rem; color: #fff;
  position: relative;
}

.profile-name {
  font-size: 1rem; font-weight: 700;
  margin: 10px 0 2px;
}

.profile-id {
  font-size: 0.78rem; color: var(--muted);
}

.profile-desc {
  font-size: 0.84rem; color: var(--muted);
  margin: 6px 0 14px;
}

.profile-info-row {
  display: flex; justify-content: center; gap: 16px;
  font-size: 0.78rem; color: #666;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.profile-info-row span { display: flex; align-items: center; gap: 2px; }
.profile-info-row .val { color: var(--primary); font-weight: 700; }

.profile-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; text-align: center;
  border-top: 1px dashed var(--border);
  padding-top: 14px;
}

.profile-stats > div { padding: 4px 0; }
.profile-stats .stat-label { font-size: 0.76rem; color: var(--muted); }
.profile-stats .stat-val {
  font-size: 1.05rem; font-weight: 700;
  color: var(--primary); margin-top: 2px;
}

.profile-social {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 14px;
}

.profile-social span {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.75rem; font-weight: 700;
  color: #fff; cursor: default;
  transition: transform 0.15s;
}
.profile-social span:hover { transform: scale(1.12); }

.social-github   { background: #24292e; }
.social-bilibili { background: #fb7299; }
.social-gitee    { background: #c71d23; }
.social-csdn     { background: #fc5531; }
.social-zhihu    { background: #0084ff; }

/* --- 窗口风卡片（我的标签 / 访问信息 / 关于统计）--- */
.window-card {
  padding: 0;
}

.window-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 8px;
  background: rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid var(--border);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  background: #ff5f57;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.window-dots i:nth-child(2) { background: #febc2e; }
.window-dots i:nth-child(3) { background: #28c840; }

.window-card-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  flex: 1;
  text-align: center;
}

.window-card-body {
  position: relative;
  padding: 14px 16px 16px;
  overflow: hidden;
}

.tags-cloud-body {
  min-height: 220px;
  height: 220px;
  background: linear-gradient(135deg, #e8f5e9 0%, #e3f2fd 50%, #fce4ec 100%);
}

.visit-card-body {
  background: linear-gradient(135deg, #e0f7fa 0%, #e8f5e9 100%);
}

.stats-card-body {
  background: linear-gradient(135deg, #fff3e0 0%, #fce4ec 100%);
}

/* 卡片内飘落花瓣 */
.card-petals {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.card-petals span {
  position: absolute;
  width: 8px;
  height: 6px;
  border-radius: 80% 0 80% 0;
  background: rgba(255, 182, 193, 0.5);
  animation: card-petal-fall linear infinite;
  will-change: transform;
}

.card-petals span:nth-child(1)  { left: 5%;  animation-duration: 8s;  animation-delay: 0s; }
.card-petals span:nth-child(2)  { left: 25%; animation-duration: 10s; animation-delay: -2s; }
.card-petals span:nth-child(3)  { left: 45%; animation-duration: 7s;  animation-delay: -1s; }
.card-petals span:nth-child(4)  { left: 65%; animation-duration: 9s;  animation-delay: -3s; }
.card-petals span:nth-child(5)  { left: 85%; animation-duration: 11s; animation-delay: -4s; }
.card-petals span:nth-child(6)  { left: 15%; animation-duration: 8s;  animation-delay: -5s; }
.card-petals span:nth-child(7)  { left: 55%; animation-duration: 10s; animation-delay: -2s; }
.card-petals span:nth-child(8)  { left: 75%; animation-duration: 9s;  animation-delay: -6s; }
.card-petals span:nth-child(9)  { left: 35%; animation-duration: 9s;  animation-delay: -1.5s; }
.card-petals span:nth-child(10) { left: 60%; animation-duration: 7s;  animation-delay: -4s; }
.card-petals span:nth-child(11) { left: 10%; animation-duration: 10s; animation-delay: -7s; }
.card-petals span:nth-child(12) { left: 90%; animation-duration: 8s;  animation-delay: -3.5s; }

@keyframes card-petal-fall {
  0%   { transform: translateY(-10px) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(120px) rotate(180deg); opacity: 0; }
}

/* 标签云（粒子漂浮模式）*/
.tags-cloud {
  position: relative;
  z-index: 1;
}

/* 粒子漂浮容器：供 JS 使用，tags / categories 页面专用 */
.particle-cloud-wrap {
  position: relative;
  min-height: 460px;
  height: 65vh;
  max-height: 580px;
  overflow: hidden;
  border-radius: var(--radius);
  background: transparent;
  margin-top: 1rem;
}

/* 粒子容器中的标签芯片 */
.particle-cloud-wrap a,
.tags-cloud-body .tags-cloud a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  will-change: transform, left, top;
  transition: box-shadow 0.2s;
}

.particle-cloud-wrap a:hover,
.tags-cloud-body .tags-cloud a:hover {
  transform: scale(1.14) rotate(0deg) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  z-index: 20;
}

/* 标签左侧小图标圆圈 */
.tag-chip-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  flex-shrink: 0;
}

/* 8 色调色板，匹配图片风格 */
.tag-color-0 { background: #3cb371; }
.tag-color-1 { background: #4285f4; }
.tag-color-2 { background: #f57c00; }
.tag-color-3 { background: #e91e8c; }
.tag-color-4 { background: #7b1fa2; }
.tag-color-5 { background: #00897b; }
.tag-color-6 { background: #c62828; }
.tag-color-7 { background: #283593; }

/* 侧边栏标签云：粒子容器充满 body 区域 */
.tags-cloud-body .tags-cloud {
  position: absolute;
  inset: 10px;
}

/* 标签页大卡片 + 数量角标 */
.tags-page-card { margin-top: 8px; }

.tags-page-content {
  margin-top: 1rem;
  padding: 0;
}

.tags-page-body {
  min-height: 180px;
  padding: 20px 18px 22px;
}

.tag-count {
  margin-left: 4px;
  font-size: 0.72rem;
  opacity: 0.9;
  font-weight: 500;
}

/* --- 访问信息卡（窗口风体内）--- */
.visit-card .window-card-body { padding: 14px 16px 16px; }

/* 太阳动画 */
.visit-sun {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 4.5rem;
  opacity: 0.55;
  animation: sun-spin 14s linear infinite;
  z-index: 0;
  pointer-events: none;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(255, 200, 0, 0.4));
}

@keyframes sun-spin {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(360deg); }
}

.visit-list {
  position: relative;
  z-index: 1;
  font-size: 0.82rem;
  color: #555;
}

.visit-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
}

.visit-list li::before { content: none; }

.visit-icon {
  font-size: 0.9rem;
  opacity: 0.9;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

/* --- 关于/统计卡 --- */
.stats-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 10px;
}

.stats-list {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0 0 10px 0;
  padding: 0;
}

.stats-list .stat-item {
  padding: 4px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.stats-list .stat-item:last-child {
  border-bottom: none;
}

.stat-item {
  font-size: 0.84rem;
  color: #555;
}

.stat-num {
  font-weight: 700;
  color: var(--primary);
  margin-left: 2px;
}

.stat-emoji { margin-right: 4px; }

.stats-footer {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ===================== 花瓣飘落（图2风格：密 + 自转翻转） ===================== */
.petals {
  pointer-events: none;
  position: fixed; inset: 0;
  overflow: hidden;
  z-index: 100;
  perspective: 1200px;
}

.petals span {
  position: absolute; top: -30px;
  width: 28px; height: 20px;
  background: url(../images/petal.png) no-repeat center;
  background-size: contain;
  animation: petal-fall linear infinite;
  will-change: transform;
  backface-visibility: visible;
}

.petals span:nth-child(odd) {
  width: 22px; height: 16px;
}

/* 花瓣的 left/duration/delay/--dx/--rz/--rx/--ry 由 petals.js 随机设置 */

/* 下落 + 随机横向漂移 + 随机自转与 3D 翻转 */
@keyframes petal-fall {
  0% {
    transform: translate3d(0, -10px, 0) rotateZ(0deg) rotateX(0deg) rotateY(0deg) scale(0.75);
    opacity: 0;
  }
  5% { opacity: 1; }
  95% { opacity: 1; }
  100% {
    transform: translate3d(var(--dx, -80px), 110vh, 0) rotateZ(var(--rz, 720deg)) rotateX(var(--rx, 540deg)) rotateY(var(--ry, 360deg)) scale(1.05);
    opacity: 0;
  }
}

/* ===================== 右侧悬浮工具 ===================== */
/* float-tools 撑满右侧高度，scroll在顶，gear在底 */
.float-tools {
  position: fixed;
  right: 0;
  top: 52px;
  bottom: 0;
  z-index: 105;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none; /* 子元素自行开启 */
}

/* 绳子滚动指示器：整体按钮 */
.float-scroll-wrap {
  pointer-events: all;
  display: block;
  position: relative;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  width: 44px;
  flex-shrink: 0;
}
/* 轨道：固定高度 = 视口高 - 导航栏(52px) - 底部留白(90px) */
.float-scroll-track {
  display: block;
  position: relative;
  width: 44px;
  height: calc(100vh - 52px - 90px);
  min-height: 80px;
}
/* 绳子：颜色与图标绳子一致，粗细固定 3px */
.float-scroll-rope {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  width: 3px;
  height: 0;
  background: #7a4020;
  border-radius: 2px;
}
/* 底部图标容器：固定高度裁掉图片中的绳子，只显示角色部分 */
.float-scroll-cap {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0; /* JS动态更新 */
  width: 50px;
  height: 72px; /* 只显示角色，高度按实际角色大小调整 */
  overflow: hidden; /* 裁掉图片顶部的绳子 */
}
/* 图片底部对齐：把图片中的绳子藏在容器上方，只露出底部角色 */
.float-scroll-cap-img {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto; /* 保持宽高比，不变形 */
}
/* 百分比：在 track 内绝对定位，JS 精确设置 top（对齐图标白色身体） */
.float-scroll-pct {
  position: absolute;
  left: 50%;
  top: 0; /* JS动态设置 */
  transform: translateX(-50%);
  font-size: 0.6rem;
  font-weight: 900;
  color: #5a3a1a;
  white-space: nowrap;
  pointer-events: none;
  line-height: 1;
  letter-spacing: -0.02em;
}
body.dark-theme .float-scroll-rope {
  background: #5a3010;
}
body.dark-theme .float-scroll-pct {
  color: #3a2010;
}

/* 通用圆形按钮 */
.float-btn {
  pointer-events: all;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--card);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  font-size: 1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.15s, box-shadow 0.15s;
  flex-shrink: 0;
}
.float-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

/* 设置面板：绝对定位在齿轮按钮旁 */
.float-settings-panel {
  pointer-events: all;
  position: fixed;
  right: 48px;
  bottom: 60px;
  width: auto;
  min-height: 100px;
  background: url(../images/panel-bg.png) no-repeat center/cover;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  border: 1px solid rgba(139, 92, 246, 0.25);
  padding: 12px 10px;
  display: none;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: flex-start;
  align-content: flex-start;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.float-settings-panel.is-open {
  display: flex;
  opacity: 1;
  visibility: visible;
}

/* 图 3：左列-主题（两枚竖排圆角，紫色边框） */
.float-panel-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.float-panel-theme {
  flex-shrink: 0;
}
.float-theme-btn {
  width: 44px;
  height: 40px;
  border: 1.5px solid rgba(139, 92, 246, 0.6);
  border-radius: 10px;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(6px);
  transition: transform 0.15s, box-shadow 0.15s;
}
.float-theme-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.2);
}
.float-theme-btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.float-theme-btn[data-setting="theme-light"] {
  background: rgba(255, 248, 225, 0.85);
}
.float-theme-btn[data-setting="theme-dark"] {
  background: rgba(61, 59, 106, 0.85);
  border-color: rgba(139, 92, 246, 0.5);
}
.float-theme-btn[data-setting="theme-dark"] img {
  filter: brightness(0) invert(0.9);
}

/* 中列：2×2 网格（光标/背景特效/背景样式/主题色） */
.float-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  width: 88px;
  height: 88px;
}
.float-grid-btn {
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(139, 92, 246, 0.6);
  border-radius: 10px;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(6px);
  font-size: 1rem;
  transition: transform 0.15s, box-shadow 0.15s;
}
.float-grid-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.2);
}
.float-grid-btn:active {
  transform: scale(0.95);
}
.float-grid-btn img {
  width: 20px;
  height: 20px;
  object-fit: cover;
}

/* 主题色拾取器按钮 */
.float-color-btn {
  position: relative;
  cursor: pointer;
}
.float-color-btn input[type="color"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  padding: 0;
  border: 0;
  width: 100%;
  height: 100%;
}
.float-color-swatch {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--primary);
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.float-color-btn input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.float-color-btn input[type="color"]::-webkit-color-swatch { border: none; border-radius: 4px; }

/* 右列-全屏、字体（两枚竖排，紫色边框） */
.float-panel-actions {
  flex-shrink: 0;
}
.float-panel-actions .float-grid-btn {
  width: 40px;
  height: 40px;
}

/* Toast 页面提示 */
.float-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: rgba(30, 30, 40, 0.82);
  color: #fff;
  padding: 8px 22px;
  border-radius: 24px;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.float-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 设置按钮：固定在右下角，白色背景让彩色图标正常显示 */
.float-settings-toggle {
  pointer-events: all;
  position: fixed !important;
  right: 10px;
  bottom: 20px;
  background: #fff !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15) !important;
}
.float-settings-toggle img {
  /* 保留 setting.svg 原始颜色，不做滤镜处理 */
}

body.dark-theme .float-btn {
  background: var(--card);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
body.dark-theme .float-settings-panel {
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
body.dark-theme .float-theme-btn,
body.dark-theme .float-grid-btn {
  background: rgba(40, 44, 56, 0.7);
  border-color: rgba(139, 92, 246, 0.5);
}
body.dark-theme .float-theme-btn[data-setting="theme-light"] {
  background: rgba(255, 248, 225, 0.6);
}
body.dark-theme .float-theme-btn[data-setting="theme-dark"] {
  background: rgba(61, 59, 106, 0.9);
}

/* 背景样式（图 16-17）：data-bg-style 由 float-tools.js 设置 */
body[data-bg-style="pattern1"] {
  background: url(../images/bg-pattern-1.png) repeat, linear-gradient(135deg, #fdf0f4 0%, #eef4fb 50%, #f0f4fb 100%);
  background-attachment: fixed, fixed;
}
body[data-bg-style="pattern2"] {
  background: url(../images/bg-pattern-2.png) repeat, linear-gradient(135deg, #fdf0f4 0%, #eef4fb 50%, #f0f4fb 100%);
  background-attachment: fixed, fixed;
}
body[data-bg-style="pattern3"] {
  background: url(../images/bg-pattern-3.png) repeat, linear-gradient(135deg, #fdf0f4 0%, #eef4fb 50%, #f0f4fb 100%);
  background-attachment: fixed, fixed;
}
body.dark-theme[data-bg-style="pattern1"],
body.dark-theme[data-bg-style="pattern2"],
body.dark-theme[data-bg-style="pattern3"] {
  background: var(--bg);
}

/* 字体切换 */
/* ── 多字体循环（全部本地 TTF/OTF） ── */
body.font-xcrobot    { font-family: "XC Robot",   sans-serif; }
body.font-chuanqu    { font-family: "传趣体",     "PingFang SC", sans-serif; }
body.font-jiuling    { font-family: "九龄卡通",   "PingFang SC", sans-serif; }
body.font-shouzhong  { font-family: "守中曲画",   cursive; }
body.font-pingfang   { font-family: "平方手书体", cursive; }
body.font-wenxin     { font-family: "文心喜乐体", "PingFang SC", sans-serif; }
body.font-xuanzong   { font-family: "玄宗体",     serif; }
body.font-nanomi     { font-family: "纳米点望宋", serif; }
body.font-nanohei    { font-family: "纳米空型黑", sans-serif; }
body.font-xiangcui   { font-family: "香萃积雪宋", serif; }
/* 兼容旧存档 */
body.font-alt { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; }

/* ===================== 光标拖动样式 ===================== */
.cursor-trail {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
}

/* 拖尾元素通用：相对于 .cursor-trail 容器绝对定位 */
.cursor-trail-sitename,
.cursor-trail-bubble,
.cursor-trail-emoji,
.cursor-trail-fireice {
  position: absolute;
  transform: translate(-50%, -50%);
  margin: 0;
  white-space: nowrap;
}

/* 链式拖尾节点：opacity/font-size 由 JS 按链节序号控制，不加入场动画 */
.cursor-trail-sitename {
  font-weight: 700;
  color: var(--primary);
}
/* bubble / emoji / fireice：尺寸/透明度由 JS 按链节序号控制，不加入场动画 */
.cursor-trail-bubble {
  border-radius: 50%;
}
.cursor-trail-emoji,
.cursor-trail-fireice {
  line-height: 1;
}

/* ===================== 背景特效层（咖啡/雪花/钱/红花瓣） ===================== */
.bg-effect-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
  overflow: hidden;
}
.bg-effect-layer.bg-effect-none {
  display: none;
}
.bg-effect-item {
  position: absolute;
  top: -30px;
  animation: bg-effect-fall linear forwards;
}
.bg-effect-snow {
  font-size: 18px;
  opacity: 0.9;
  color: #fff;
  text-shadow: 0 0 6px rgba(150, 210, 255, 0.8);
}
.bg-effect-money {
  font-size: 24px;
}
/* petal 和 coffee 都用 background-image，避免 <img> 重复请求和黑色背景 */
.bg-effect-petal-img,
.bg-effect-coffee-img {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.bg-effect-petal-img {
  width: 24px;
  height: 20px;
}
.bg-effect-coffee-img {
  width: 36px;
  height: 36px;
  mix-blend-mode: screen;
}
@keyframes bg-effect-fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 0.8; }
  100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

/* ===================== 分页 ===================== */
.pagination {
  margin: 22px 0 0;
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.pagination a {
  padding: 7px 16px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; font-size: 0.88rem;
  transition: 0.15s;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { color: var(--muted); font-size: 0.88rem; }

/* ===================== 页脚 ===================== */
.site-footer {
  text-align: center; padding: 24px 0;
  color: var(--muted); font-size: 0.82rem;
  position: relative; z-index: 2;
}

/* 后台「代码注入」页脚自定义内容：整体居中、与主题风格一致 */
.site-footer ~ .footer,
body > .footer {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 20px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}
.site-footer ~ .footer a,
body > .footer a {
  color: var(--muted);
  text-decoration: none;
}
.site-footer ~ .footer a:hover,
body > .footer a:hover {
  color: var(--primary);
}
.site-footer ~ .footer > div,
body > .footer > div {
  text-align: center;
}

/* ===================== 文章详情页 ===================== */
.article-hero {
  position: relative;
  width: 100%; height: 320px;
  margin-top: 52px;
  overflow: hidden;
}

.article-hero img,
.article-hero-fallback {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}

.article-hero-fallback {
  background: linear-gradient(135deg, #fce4ec 0%, #e0f7fa 50%, #f3e5f5 100%);
}

.article-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
  z-index: 1;
}

.article-hero-inner {
  position: absolute; bottom: 24px; left: 24px; right: 24px;
  z-index: 2; color: #fff;
}

.article-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  padding: 4px 12px; border-radius: 6px;
  font-size: 0.82rem; margin-bottom: 8px;
}

.article-hero-title {
  font-size: 1.5rem; font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  margin: 0;
}

.article-wrap {
  max-width: 1120px; margin: 0 auto;
  padding: 24px 20px 40px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 20px;
  align-items: start;
}

.article {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 28px;
}

.article-no-hero {
  max-width: 800px; margin: 72px auto 24px;
  padding: 28px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.article-header { border-bottom: 1px solid var(--border); padding-bottom: 14px; margin-bottom: 20px; }
.article-title { margin: 0; font-size: 1.4rem; line-height: 1.4; }
.article-meta { margin: 8px 0 0; color: var(--muted); font-size: 0.86rem; display: flex; flex-wrap: wrap; gap: 8px; }

.article-content { font-size: 0.96rem; line-height: 1.85; }
.article-content h1 { font-size: 1.4rem; margin: 1.4em 0 0.6em; }
.article-content h2 { font-size: 1.2rem; margin: 1.2em 0 0.5em; border-left: 3px solid var(--primary); padding-left: 10px; }
.article-content h3 { font-size: 1.05rem; margin: 1em 0 0.4em; }

.article-content pre {
  background: #f8f9fb; border: 1px solid var(--border);
  border-radius: 8px; padding: 16px; overflow-x: auto;
  font-size: 0.88rem; line-height: 1.55;
}
.article-content code {
  background: var(--primary-light); border-radius: 4px;
  padding: 1px 5px; font-size: 0.9em; color: var(--primary);
}
.article-content pre code { background: none; padding: 0; }
.article-content blockquote {
  border-left: 3px solid var(--green);
  margin: 1em 0; padding: 0.6em 1.2em;
  color: #666; background: #f9fafb;
  border-radius: 0 8px 8px 0;
}
.article-content img { border-radius: 8px; margin: 0.5em 0; }
.article-content table {
  width: 100%; border-collapse: collapse; margin: 1em 0;
}
.article-content th, .article-content td {
  border: 1px solid var(--border); padding: 8px 12px; text-align: left;
}
.article-content th { background: #f5f7fa; }

/* --- 文章侧边目录 --- */
.toc-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 18px;
  position: sticky; top: 72px;
}

.toc-card h3 {
  font-size: 0.88rem; font-weight: 700;
  margin: 0 0 10px; color: #555;
}

.toc-list a {
  display: block; padding: 4px 0;
  font-size: 0.82rem; color: #666;
  border-left: 2px solid transparent;
  padding-left: 10px;
  transition: 0.15s;
}
.toc-list a:hover {
  color: var(--primary);
  border-left-color: var(--primary);
}
.toc-list a.toc-h3 { padding-left: 22px; font-size: 0.8rem; }
.toc-list a.toc-h4 { padding-left: 34px; font-size: 0.78rem; }

/* ===================== 通用页面 ===================== */
.page-wrap {
  max-width: 800px; margin: 72px auto 24px; padding: 0 20px;
  position: relative; z-index: 2;
}

.page-title {
  font-size: 1.3rem; margin: 0 0 18px;
  display: flex; align-items: center; gap: 8px;
}

.term-list { display: flex; flex-wrap: wrap; gap: 8px; }
.term-list a {
  padding: 6px 14px; border-radius: 8px;
  background: var(--card); border: 1px solid var(--border);
  box-shadow: var(--shadow); font-size: 0.88rem;
  transition: 0.2s;
}
.term-list a:hover {
  border-color: var(--primary); color: var(--primary);
  transform: translateY(-2px);
}
.term-list .count { color: var(--muted); font-size: 0.8rem; margin-left: 4px; }

.archives-list li {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 8px 0; border-bottom: 1px solid var(--border);
}
.archives-list a:hover { color: var(--primary); }
.archives-list .date { color: var(--muted); font-size: 0.84rem; }

.archive-month-title {
  font-size: 0.95rem; font-weight: 600;
  color: var(--muted);
  margin: 0 0 12px;
  padding-left: 10px;
  border-left: 3px solid var(--primary);
}

.loading-placeholder {
  color: var(--muted); text-align: center; padding: 30px 0;
}

/* ===================== 主题色全局交互 ===================== */

/* 输入框 / 文本域获得焦点 */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* 通用按钮获得焦点（键盘导航） */
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* 个人资料头像悬停光晕 */
.profile-avatar:hover,
.profile-avatar-fallback:hover {
  box-shadow: 0 0 0 3px var(--primary), 0 4px 14px rgba(0,0,0,0.12);
  transition: box-shadow 0.2s;
}

/* 标签云悬停（粒子模式下由 JS transform 处理，这里只补充 box-shadow） */
.tags-cloud a:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

/* 分类/标签列表悬停背景 */
.term-list a:hover {
  background: var(--primary-light);
}

/* 目录条目激活 */
.toc-list a.active {
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 600;
}

/* 文章内 a 链接悬停 */
.article-content a:not(.tag-green):not(.tag-blue):not(.tag-orange):not(.tag-pink):not(.tag-purple):not(.tag-teal) {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(var(--primary-rgb), 0.4);
  transition: text-decoration-color 0.15s, color 0.15s;
}
.article-content a:hover {
  text-decoration-color: var(--primary);
}

/* 分页当前页边框 */
.pagination .current-page {
  border-color: var(--primary);
  color: var(--primary);
}

/* ===================== 响应式 ===================== */
@media (max-width: 900px) {
  body::before, body::after { display: none; }
  .content-body { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .post-card { grid-template-columns: 1fr; }
  .post-cover, .cover-fallback { min-height: 180px; }
  .hero { height: 70vh; }
  .float-tools { display: none; }
  .nav { overflow-x: auto; gap: 0; }
}

@media (max-width: 600px) {
  .hero { height: 60vh; }
  .hero-text { padding: 14px 20px; }
  .top-nav { padding: 0 12px; }
  .particle-cloud-wrap {
    height: 75vw;
    min-height: 320px;
    max-height: 420px;
  }
  .tags-cloud-body {
    height: 200px;
    min-height: 200px;
  }
}

/* ===================== 鼠标点击鼓励文字 ===================== */
.click-text {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  user-select: none;
  animation: click-float 1.2s ease-out forwards;
  text-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.5);
}

@keyframes click-float {
  0% {
    opacity: 1;
    transform: translateY(0) scale(0.8);
  }
  20% {
    transform: translateY(-8px) scale(1.1);
  }
  100% {
    opacity: 0;
    transform: translateY(-80px) scale(0.9);
  }
}

/* ===== 访问记录面板 ===== */
.visit-dashboard-wrap {
  margin-top: 12px;
}

.visit-dashboard {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.vd-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(180, 160, 180, 0.10);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.vd-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 12px;
  border-bottom: 1px solid rgba(240, 220, 235, 0.5);
  background: linear-gradient(135deg, rgba(255,245,250,0.9) 0%, rgba(245,250,255,0.9) 100%);
  flex-wrap: wrap;
}

.vd-dots {
  display: flex;
  gap: 5px;
}
.vd-dots i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f5a;
}
.vd-dots i:nth-child(2) { background: #fa5; }
.vd-dots i:nth-child(3) { background: #5af; }

.vd-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #555;
  margin: 0;
  flex: 1;
}

.vd-refresh {
  background: none;
  border: 1px solid #ddd;
  border-radius: 6px;
  width: 26px;
  height: 26px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.vd-refresh:hover {
  background: #f8f8f8;
  color: #555;
}

.vd-card-body {
  padding: 0;
}

/* 访问记录表格 */
.vr-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.vr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  min-width: 560px;
}

.vr-table thead tr {
  background: linear-gradient(90deg, rgba(245,240,255,0.8), rgba(240,250,255,0.8));
}

.vr-table th {
  padding: 10px 16px;
  text-align: left;
  font-weight: 600;
  color: #777;
  border-bottom: 1px solid rgba(220,210,230,0.4);
  white-space: nowrap;
}

.vr-table td {
  padding: 10px 16px;
  color: #555;
  border-bottom: 1px solid rgba(240,235,245,0.5);
  white-space: nowrap;
}

.vr-table tbody tr:last-child td {
  border-bottom: none;
}

.vr-table tbody tr:hover td {
  background: rgba(245,240,255,0.4);
}

.vr-ip {
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  color: #888;
}

.vr-time {
  color: #aaa;
  font-size: 0.78rem;
}

.vr-loading {
  text-align: center;
  color: #bbb;
  padding: 24px;
}

/* 图表时间范围切换 */
.vc-tabs {
  display: flex;
  gap: 4px;
}

.vc-tab {
  background: rgba(240,240,248,0.7);
  border: 1px solid rgba(220,215,230,0.6);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 0.75rem;
  color: #888;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.vc-tab:hover {
  background: rgba(220,210,240,0.6);
  color: #666;
}

.vc-tab.active {
  background: linear-gradient(135deg, #74d7f7, #74d7c4);
  color: #fff;
  border-color: transparent;
  font-weight: 600;
}

/* 图表 & 地区 */
#visitChart,
#visitRegion {
  display: block;
  padding: 8px;
}

@media (max-width: 600px) {
  .vd-card-header {
    padding: 10px 14px;
  }
  .vr-table th,
  .vr-table td {
    padding: 8px 10px;
  }
  .vc-tab {
    padding: 2px 7px;
    font-size: 0.7rem;
  }
}

/* ===== 个人主页 about/me ===== */
.about-me-page {
  min-height: 100vh;
  padding-bottom: 2rem;
}

/* 顶部横幅：完整显示图片（不裁切一半），无图为默认渐变 */
.about-me-banner {
  position: relative;
  width: 100%;
  min-height: 360px;
  height: 42vh;
  max-height: 480px;
  overflow: hidden;
  background: #e8eef5;
}

.about-me-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* 未设置顶部图时的默认渐变背景（参考：山景朦胧感） */
.about-me-banner--default .about-me-banner-default,
.about-me-banner-default {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(200,210,230,0.85) 0%, rgba(220,230,245,0.9) 40%, rgba(240,248,255,0.95) 100%);
  pointer-events: none;
}

.about-me-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.2), transparent 50%);
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 1.5rem 2rem;
}

.about-me-banner-text {
  font-size: 2rem;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
  letter-spacing: 0.08em;
}

.about-me-hero {
  position: relative;
  padding: 2rem 1.5rem 2rem;
  text-align: center;
  overflow: hidden;
}

/* 头像后不要背景，与页面融为一体 */
.about-me-hero-bg {
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 0;
}

/* 图2：头像严格居中（grid 中间列固定），左右 1fr 等分，气泡距头像 20px */
.about-me-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 96px 1fr;
  gap: 20px;
  align-items: center;
  justify-items: center;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  min-height: 180px;
}

.about-me-hero-center {
  grid-column: 2;
  width: 96px;
  text-align: center;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
}

/* 名字、简介在「头像+气泡」下方单独一行，整行居中 */
.about-me-hero-meta {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-top: 0.35rem;
  padding: 0 1rem;
}

.about-me-bubbles-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 200px;
}

.about-me-bubbles-left {
  grid-column: 1;
  justify-self: end;
  align-items: flex-end;
  text-align: right;
  justify-content: center;
  z-index: 0;
}

.about-me-bubbles-right {
  grid-column: 3;
  justify-self: start;
  align-items: flex-start;
  text-align: left;
  justify-content: center;
  z-index: 0;
}

.about-me-bubbles-col .about-me-bubble {
  max-width: 100%;
}

.about-me-avatar-wrap {
  width: 96px;
  height: 96px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.about-me-avatar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 50%;
  border: 3px solid rgba(255,255,255,0.95);
  box-shadow: 0 4px 20px rgba(180,160,180,0.22);
}

.about-me-avatar-fallback {
  width: 100%;
  height: 100%;
  min-width: 96px;
  min-height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  background: linear-gradient(135deg, #e8f4fc, #fce8f4);
  border: 3px solid rgba(255,255,255,0.95);
  box-shadow: 0 8px 24px rgba(180,160,180,0.2);
}

.about-me-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 0.35rem;
  letter-spacing: 0.02em;
}

.about-me-desc {
  font-size: 0.9rem;
  color: #666;
  margin: 0 0 1rem;
  line-height: 1.5;
}

/* 气泡在左右列内 */

/* 气泡：药丸形、亮色底、上下浮动（仅保留靠近+浮动，不改底色） */
@keyframes about-me-bubble-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.about-me-bubble {
  display: inline-block;
  padding: 0.22rem 0.5rem;
  font-size: 0.72rem;
  line-height: 1.35;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  animation: about-me-bubble-float 3s ease-in-out infinite;
}

/* 错开浮动节奏，更有层次 */
.about-me-bubbles-col .about-me-bubble:nth-child(1) { animation-delay: 0s; }
.about-me-bubbles-col .about-me-bubble:nth-child(2) { animation-delay: 0.35s; }
.about-me-bubbles-col .about-me-bubble:nth-child(3) { animation-delay: 0.7s; }
.about-me-bubbles-col .about-me-bubble:nth-child(4) { animation-delay: 1.05s; }
.about-me-bubbles-col .about-me-bubble:nth-child(5) { animation-delay: 1.4s; }
.about-me-bubbles-col .about-me-bubble:nth-child(6) { animation-delay: 1.75s; }
.about-me-bubbles-col .about-me-bubble:nth-child(7) { animation-delay: 2.1s; }
.about-me-bubbles-col .about-me-bubble:nth-child(8) { animation-delay: 2.45s; }

/* 头像旁气泡：亮色底、每个不同色（保留上下浮动） */
.about-me-bubble-c0  { background: #7ee8fa; color: #0d3d47; }
.about-me-bubble-c1  { background: #ff6b9d; color: #fff; }
.about-me-bubble-c2  { background: #c0ff00; color: #2d3d00; }
.about-me-bubble-c3  { background: #ff9500; color: #fff; }
.about-me-bubble-c4  { background: #bf5af2; color: #fff; }
.about-me-bubble-c5  { background: #30d158; color: #fff; }
.about-me-bubble-c6  { background: #ff375f; color: #fff; }
.about-me-bubble-c7  { background: #5ac8fa; color: #002a3d; }
.about-me-bubble-c8  { background: #ffd60a; color: #3d3500; }
.about-me-bubble-c9  { background: #af52de; color: #fff; }
.about-me-bubble-c10 { background: #32ade6; color: #fff; }
.about-me-bubble-c11 { background: #ff453a; color: #fff; }

/* 两列网格：自我介绍 | 个人简介，访问统计 | 关于本网站 */
.about-me-grid-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem 1.5rem;
}

.about-me-card {
  min-width: 0;
}

/* 图2：自我介绍卡（仅三点行，正文 3 行 + 底部并排图标） */
.about-me-intro-card .vd-card-header.about-me-intro-header {
  background: linear-gradient(135deg, #5a9fd4 0%, #4a8fc4 100%);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  min-height: 44px;
}

.about-me-intro-card .vd-card-header.about-me-intro-header .vd-card-title {
  display: none;
}

.about-me-intro-card .vd-card-body.about-me-intro-body {
  background: linear-gradient(180deg, #6badd8 0%, #4a90c4 100%);
  border-color: transparent;
}

.about-me-intro-card .vd-dots i {
  background: rgba(255,255,255,0.95);
}

.about-me-intro-hello {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  color: #fff;
  font-weight: 500;
}

.about-me-intro-card .about-me-intro-row {
  margin: 0.35rem 0;
  font-size: 0.9rem;
  color: #fff;
}

.about-me-intro-highlight {
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
}

/* 昵称、岗位气泡各一色，鲜艳区分 */
.about-me-intro-highlight--nickname {
  background: #b8e986;
  color: #2d5016;
}

.about-me-intro-highlight--job {
  background: #ffb74d;
  color: #4a2600;
}

.about-me-intro-body {
  padding: 1rem 1.25rem;
}

.about-me-intro-row {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: #444;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* 底部并排图标：邮箱/QQ/微信/GitHub，QQ 微信悬浮或点击显示二维码 */
.about-me-intro-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.25);
}

.about-me-intro-icon-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: background 0.2s, transform 0.2s;
}

.about-me-intro-icon-item:hover {
  background: rgba(255,255,255,0.35);
  transform: scale(1.05);
}

.about-me-intro-icon-item img {
  width: 22px;
  height: 22px;
}

.about-me-intro-card .about-me-qrcode-wrap {
  position: relative;
  cursor: pointer;
}

.about-me-intro-card .about-me-qrcode-popup {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  padding: 10px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  pointer-events: none;
  width: 120px;
  box-sizing: border-box;
}

.about-me-intro-card .about-me-qrcode-wrap:hover .about-me-qrcode-popup,
.about-me-intro-card .about-me-qrcode-wrap.active .about-me-qrcode-popup {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-8px);
}

.about-me-intro-card .about-me-qrcode-wrap.active .about-me-qrcode-popup {
  pointer-events: auto;
}

/* 二维码固定正方形，不拉伸变形 */
.about-me-intro-card .about-me-qrcode-popup img {
  width: 100px;
  height: 100px;
  min-width: 100px;
  min-height: 100px;
  max-width: 100px;
  max-height: 100px;
  display: block;
  object-fit: contain;
  border-radius: 6px;
  margin: 0 auto;
}

.about-me-intro-card .about-me-qrcode-popup p {
  margin: 4px 0 0;
  font-size: 0.75rem;
  color: #666;
  text-align: center;
}

.about-me-intro-card .about-me-qr-label {
  color: rgba(255,255,255,0.9);
}

.about-me-intro-icon {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 0.25rem;
}

.about-me-qr-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.about-me-qr-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border: 1px solid #eee;
  border-radius: 6px;
}

.about-me-qr-label {
  font-size: 0.7rem;
  color: #888;
  margin-top: 2px;
}

.about-me-intro-card .about-me-qr-label {
  color: rgba(255,255,255,0.9);
}

.about-me-profile-text {
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #555;
  white-space: pre-wrap;
}

.about-me-stats-list {
  list-style: none;
  margin: 0;
  padding: 1rem 1.25rem;
}

.about-me-stats-list li {
  margin: 0.5rem 0;
  font-size: 0.95rem;
  color: #555;
}

.about-me-stats-list .stat-num {
  font-weight: 700;
  color: var(--primary, #5bc8e8);
  margin-left: 0.25rem;
}

/* 关于本网站卡片：标题栏右侧运行天数组件（牌子可左右摆动） */
.about-me-site-card-header {
  position: relative;
}
.about-me-uptime-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-size: 0.85rem;
  color: #555;
}
.about-me-uptime-label,
.about-me-uptime-unit {
  white-space: nowrap;
}
.about-me-uptime-sign {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px;
}
.about-me-uptime-nail {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f0c674 0%, #d4a84b 100%);
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  z-index: 2;
}
.about-me-uptime-swing {
  transform-origin: top center;
  animation: about-me-uptime-swing 2.5s ease-in-out infinite;
}
.about-me-uptime-swing::before {
  content: '';
  display: block;
  width: 2px;
  height: 6px;
  margin: 0 auto 2px;
  background: linear-gradient(180deg, #5a9fd4 0%, #4a8fc4 100%);
}
.about-me-uptime-board {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 4px 10px 6px;
  background: linear-gradient(180deg, #7eb8e0 0%, #5a9fd4 50%, #4a8fc4 100%);
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.3);
  border: 1px solid rgba(255,255,255,0.25);
}
.about-me-uptime-num {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0,0,0,0.2);
}
@keyframes about-me-uptime-swing {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(6deg); }
}

body.dark-theme .about-me-uptime-wrap {
  color: #a1a1aa;
}
body.dark-theme .about-me-uptime-board {
  background: linear-gradient(180deg, #4a7aa8 0%, #3a6a98 50%, #2a5a88 100%);
  border-color: rgba(255,255,255,0.1);
}

.about-me-site-card .vd-card-body {
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  line-height: 1.75;
  color: #444;
}

.about-me-site-card .vd-card-body :first-child {
  margin-top: 0;
}

.about-me-page .visit-dashboard-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (max-width: 720px) {
  .about-me-grid-wrap {
    grid-template-columns: 1fr;
  }
  .about-me-banner {
    min-height: 240px;
    height: 32vh;
  }
  .about-me-hero-inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .about-me-hero-center {
    grid-column: 1;
  }
  .about-me-bubbles-col {
    max-width: 100%;
    flex: none;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .about-me-bubbles-left,
  .about-me-bubbles-right {
    grid-column: 1;
    justify-self: center;
    align-items: center;
    text-align: center;
  }
}

/* 全站 APlayer：叠在 Live2D 之上，否则左下角点击全被 canvas 吃掉 */
.aplayer.aplayer-fixed {
  z-index: 1005000 !important;
}
.aplayer.aplayer-fixed * {
  pointer-events: auto;
}

/* 全站 APlayer（halo-plugin-aplayer）：暗色主题配色 */
body.dark-theme .aplayer {
  color-scheme: dark;
  --aplayer-bg-color: #1e2430;
  --aplayer-title-color: #f4f4f5;
  --aplayer-artist-color: #a1a1aa;
  --aplayer-lyrics-color: #d4d4d8;
  --aplayer-progress-bar-color: #52525b;
  --aplayer-progress-loaded-color: #71717a;
  --aplayer-progress-played-color: var(--primary, #25bbe4);
  --aplayer-time-color: #a1a1aa;
  --aplayer-icon-color: #e4e4e7;
}
