/*!
 * 国风博客 (theme-lalmes-replica) — 主样式表
 * 手写复刻参考站「日常笔记」的版式观感：淡蓝配色 / 卡片列表 / 侧栏 / 悬挂灯笼。
 * 全部样式为本主题原创，未包含任何第三方主题文件。
 */

/* =========================================================
   1. 变量
   ========================================================= */
:root {
  --accent: #36508c;
  --accent-rgb: 54 80 140;
  --accent-07: rgb(var(--accent-rgb) / 7%);
  --accent-10: rgb(var(--accent-rgb) / 10%);
  --accent-12: rgb(var(--accent-rgb) / 12%);
  --accent-60: rgb(var(--accent-rgb) / 60%);
  --accent-09: rgb(var(--accent-rgb) / 9%);
  /* 作者名后的「作者」小徽标底色：默认跟强调色走；想单独改色只改这一行 */
  --author-tag-bg: var(--accent);
  --line: rgb(194 202 220);
  --line-soft: rgb(194 202 220 / 60%);
  --page-bg: #e8e9ec;
  --panel-bg: #fff;
  --side-bg: #e0e4ed;
  --text: #333;
  --text-2: #666;
  --text-3: #999;
  /* ---- 强调色派生变量（默认值 = 参考站原观感；每一套 skin 会覆盖下面的值） ---- */
  --chip-bg: rgb(224 228 237);
  --chip-fg: #666;
  --chip-hover-bg: rgb(194 202 220 / 50%);
  --chip-active-bg: rgb(154 167 197);
  --chip-active-fg: #fff;
  --chip-underline: rgb(194 202 220);
  --pager-border: #ddd;
  --pager-bg: #fff;
  --pager-fg: #666;
  --pager-active-fg: #fff;
  --pager-disabled-bg: #f6f7fa;
  --side-title-fg: #444;
  --side-fg: #555;
  --nav-active-bg: #8b9abc;
  --nav-active-fg: #203054;
  --nav-hover-bg: #c1c9dc;
  --nav-hover-fg: #36508c;
  --link-quiet: #999;
  --link-foot: #888;
  /* ---- 引用块 / 评论组件强调色（同样随 skin 变化） ---- */
  --quote-border: rgb(154 167 197);
  --quote-bg: rgb(194 202 220);
  --quote-fg: #3d4450;
  --accent-dark-1: #2f4679;
  --accent-dark-2: #253a66;
  --muted-2: #d7dce8;
  --muted-3: #e6e9f1;
  --radius: 10px;
  --radius-sm: 5px;
  --shadow: 0 0 10px 0 rgb(7 17 27 / 5%);
  --shadow-up: 0 2px 12px 0 rgb(7 17 27 / 14%);
  --font: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans SC',
    'Noto Sans CJK SC', SimHei, SimSun, Arial, sans-serif;
}

/* 现代浏览器下让淡蓝色调跟随主题色；不支持 color-mix 时使用上面的参考站固定色值 */
@supports (color: color-mix(in srgb, red 50%, blue)) {
  :root {
    --accent-07: color-mix(in srgb, var(--accent) 7%, transparent);
    --accent-10: color-mix(in srgb, var(--accent) 10%, transparent);
    --accent-12: color-mix(in srgb, var(--accent) 12%, transparent);
    --accent-60: color-mix(in srgb, var(--accent) 60%, transparent);
    --accent-09: color-mix(in srgb, var(--accent) 9%, transparent);
  }
}

/* =========================================================
   2. 基础排版
   ========================================================= */
* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background-color: var(--page-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

img {
  border: 0;
  vertical-align: middle;
}

ul,
ol,
li,
p,
h1,
h2,
h3,
h4,
h5,
h6,
figure,
dl,
dd {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.clear {
  clear: both;
}

.of {
  overflow: hidden;
}

.tc {
  text-align: center;
}

.hide {
  display: none !important;
}

/* 通用工具类（对齐参考站命名习惯） */
.f14 {
  font-size: 14px;
}

.f18 {
  font-size: 18px;
}

.fw {
  font-weight: bold;
}

.c6 {
  color: var(--text-2);
}

.c9 {
  color: var(--text-3);
}

.mt30 {
  margin-top: 30px;
}

/* =========================================================
   3. 骨架：外层 / 容器 / 面板
   ========================================================= */
.mainbox-out {
  width: 100%;
  overflow: hidden;
}

.container {
  width: 90%;
  max-width: 1120px;
  margin: 0 auto;
}

.box {
  width: 100%;
  margin-top: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  /* 参考站 .box 底色为灰蓝 #e0e4ed，白色只属于右侧主列 */
  background-color: var(--side-bg);
}

/* 两栏 */
.main-left-box {
  width: 25%;
  float: left;
  background: var(--side-bg);
  min-height: 600px;
}

/* 参考站 .theme-N .emolist::-webkit-scrollbar*：滚动条也跟随主题色。
   窄屏下 .main-left-box 变成可纵向滚动的抽屉，是本主题唯一的可滚动小容器。 */
.main-left-box::-webkit-scrollbar {
  width: 10px;
  height: 1px;
}

.main-left-box::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background-color: rgb(var(--accent-rgb));
}

.main-left-box::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 5px rgb(0 0 0 / 20%);
  background: var(--panel-bg);
}

.main-right {
  width: 75%;
  float: right;
  background: var(--panel-bg);
}

/* 侧栏在右：交换浮动方向 */
.lalmes--aside-right .main-left-box {
  float: right;
}

.lalmes--aside-right .main-right {
  float: left;
}

/* =========================================================
   4. Hero 图片轮播（swiper 风格：淡入切换 + 圆点分页）
   ========================================================= */
.hero {
  position: relative;
  width: 100%;
  height: var(--hero-h, 350px);
  overflow: hidden;
  background: #2a3350;
  user-select: none;
}

.hero-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slide.is-active .hero-title,
.hero-slide.is-active .hero-sub {
  animation: heroUp 0.9s ease both;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgb(var(--accent-rgb) / 20%) 30%, rgb(255 255 255 / 0%) 100%);
}

.hero-time {
  position: absolute;
  top: 5px;
  left: 0;
  z-index: 10000;
  width: 100%;
  padding: 0 20px;
  font-size: 16px;
  font-weight: lighter;
  color: #fff;
  letter-spacing: 1px;
  text-align: right;
  /* 亮色封面上也能读：描边阴影（原为 none，白字压在浅色图上会隐形） */
  text-shadow: 0 1px 3px rgb(0 0 0 / 55%), 0 0 1px rgb(0 0 0 / 45%);}

.hero-caption {
  position: absolute;
  bottom: 20px;
  left: 0;
  z-index: 2;
  width: 100%;
  padding: 0 20px;
}

/* 轮播图上的介绍文字（标题 + 版权说明）整体不显示；右上角实时时间 .hero-time 不受影响 */
.hero-caption {
  display: none;
}


.hero-title {
  font-size: 32px;
  font-weight: bolder;
  color: #fff;
  letter-spacing: 2px;
  line-height: 1.3;
  text-shadow: 0 1px 8px rgb(0 0 0 / 45%);
}

.hero-sub {
  display: block;
  font-size: 16px;
  font-weight: normal;
  text-align: right;
  letter-spacing: 1px;
  /* 副标题是版权署名，Bing 壁纸底色常常很亮：给白字加描边阴影
     （与本主题 .hero-time 的处理一致；这是脚本 fix-hero-sub-legibility.py 加的） */
  text-shadow: 0 1px 3px rgb(0 0 0 / 55%), 0 0 1px rgb(0 0 0 / 45%);
}

/* 圆点分页 —— 对齐参考站 hero 所用 swiper 3.4.2 的默认样式
   来源：lalmes-reference/static/tem_pc/css/swiper-3.4.2.min.css 第 15 行（压缩单行）：
     .swiper-pagination-bullet{width:8px;height:8px;display:inline-block;border-radius:100%;background:#ddd;opacity:1}
     .swiper-container-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 5px}
     .swiper-pagination-bullet{cursor:pointer}          （.swiper-pagination-clickable 下）
     .swiper-pagination-bullet-active{opacity:1;background:#007aff}
     .swiper-pagination-bullets{bottom:10px;left:0;width:100%}   （定位与本块 .hero-dots 一致）
   即：8×8 圆点、border-radius:100%、底色 #ddd、不透明、水平 5px 间距、active 为 #007aff。 */
.hero-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  z-index: 10;
  width: 100%;
  text-align: center;
}

.hero-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 5px;
  padding: 0;
  border: 0;
  border-radius: 100%;
  background: #ddd;
  opacity: 1;
  cursor: pointer;
  transition: 0.3s;
}

.hero-dot.is-active {
  width: 8px;
  background: #007aff;
  opacity: 1;
}

/* 左右箭头 —— 对齐 swiper 3.4.2 默认：27×44 的 SVG 背景图（fill #007aff），居中等比缩放
   来源：同上文件第 15 行：
     .swiper-button-next,.swiper-button-prev{position:absolute;top:50%;width:27px;height:44px;margin-top:-22px;z-index:10;
       cursor:pointer;-moz-background-size:27px 44px;-webkit-background-size:27px 44px;background-size:27px 44px;
       background-position:center;background-repeat:no-repeat}
     .swiper-button-next{... background-image:url("data:image/svg+xml;...fill%3D'%23007aff'...");right:10px;left:auto}
     .swiper-button-prev{... background-image:url("data:image/svg+xml;...fill%3D'%23007aff'...");left:10px;right:auto}
     .swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}
   箭头按钮内的 < > 文本置为透明/0 号字，只显示 swiper 自带的 SVG 图标。 */
.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 10;
  width: 27px;
  height: 44px;
  margin-top: -22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 27px 44px;
  color: transparent;
  font-size: 0;
  opacity: 1;
  cursor: pointer;
  transition: 0.3s;
}

/* 轮播箭头：全端彻底不显示（电脑端悬停也不出现）；翻页靠自动播放/圆点/手机滑动 */
.hero-arrow {
  display: none;
}



.hero-prev {
  left: 10px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23007aff'%2F%3E%3C%2Fsvg%3E");
}

.hero-next {
  right: 10px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23007aff'%2F%3E%3C%2Fsvg%3E");
}

/* swiper 默认 .swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none} */
.hero-arrow:disabled {
  opacity: 0.35;
  cursor: auto;
  pointer-events: none;
}

/* =========================================================
   5. 分类胶囊（catelist）
   ========================================================= */
.catelist {
  padding: 15px 10px 5px;
  border-bottom: 1px solid var(--chip-underline);
}

.catelist a {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 3px;
  background: var(--chip-bg);
  color: var(--chip-fg);
  font-size: 14px;
  transition: 0.3s;
}

.catelist a + a {
  margin-left: 10px;
}

.catelist a:hover {
  background: var(--chip-hover-bg);
  color: var(--text);
}

.catelist a[data-xz] {
  background: var(--chip-active-bg);
  color: var(--chip-active-fg);
}

/* =========================================================
   6. 面包屑
   ========================================================= */
.bread {
  padding: 10px 15px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-3);
}

.bread a {
  color: var(--text-3);
}

.bread a:hover {
  color: var(--accent);
}

/* =========================================================
   7. 文章卡片列表
   ========================================================= */
.newslist {
  padding: 20px 10px;
}

.news-item {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--accent-07);
  overflow: hidden;
  box-shadow: 0 1px 2px 0 rgb(7 17 27 / 4%);
  transition: 0.4s;
}

.news-item + .news-item {
  margin-top: 20px;
}

.news-item:hover {
  background: var(--accent-12);
  box-shadow: var(--shadow-up);
}

.news-thumb {
  display: block;
  float: left;
  width: 27%;
  height: 130px;
  max-height: 130px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #ddd;
}

.news-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-item:hover .news-thumb img {
  transform: scale(1.1);
}

.news-body {
  float: right;
  width: 70%;
  padding-right: 1%;
}

.news-item.no-thumb .news-body {
  float: none;
  width: 100%;
  padding-right: 0;
}

.news-title {
  display: block;
  color: var(--text);
  font-size: 18px;
  font-weight: bold;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-item:hover .news-title {
  color: var(--accent);
}

.news-badge {
  display: inline-block;
  margin-right: 6px;
  padding: 0 6px;
  border-radius: 3px;
  background: var(--accent-60);
  color: #fff;
  font-size: 12px;
  font-weight: normal;
  vertical-align: 2px;
}

.news-excerpt {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.news-meta {
  margin-top: 10px;
  color: var(--text-3);
  font-size: 12px;
}

.news-meta .mi + .mi {
  margin-left: 14px;
}

.news-meta .mi a {
  color: var(--link-quiet);
  text-decoration: underline;
}

.news-meta .mi a:hover {
  color: var(--accent);
}

.news-tags {
  margin-top: 8px;
  font-size: 12px;
}

.news-tags a {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text-3);
}

.news-tags a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.empty {
  padding: 60px 0;
  text-align: center;
  color: var(--text-3);
  font-size: 18px;
}

/* =========================================================
   8. 分页器
   ========================================================= */
.pagebox {
  padding: 10px 10px 40px;
}

.pagination {
  text-align: center;
}

.pagination li {
  display: inline-block;
  margin: 3px 2px;
  border: 1px solid var(--pager-border);
  border-radius: 3px;
  background: var(--pager-bg);
  vertical-align: middle;
}

.pagination li a,
.pagination li span {
  display: block;
  padding: 5px 10px;
  font-size: 13px;
  color: var(--pager-fg);
}

.pagination li.active {
  border-color: var(--accent);
  background: var(--accent);
}

.pagination li.active span,
.pagination li.active a {
  color: var(--pager-active-fg);
}

.pagination li.disabled {
  background: var(--pager-disabled-bg);
}

.pagination li.disabled span {
  color: var(--text-3);
}

.pagination li:hover a {
  color: var(--accent);
}

.pagination li.active:hover a {
  color: var(--pager-active-fg);
}

.pagination-info {
  display: block;
  margin-bottom: 10px;
  color: var(--text-3);
  font-size: 13px;
}

/* =========================================================
   9. 侧栏
   ========================================================= */
.main-left-con {
  padding: 20px;
}

.about-card {
  text-align: center;
  /* 对齐参考站 .main-left .top 的上下留白 */
  padding: 15px 0 5px;}

.about-avatar {
  display: block;
  width: 100px;
  height: 100px;
  margin: 0 auto 10px auto;
  border-radius: 100%;
  overflow: hidden;
  box-shadow: 0 0 10px 0 rgb(7 17 27 / 30%);
  transition: 0.5s;
  cursor: pointer;
}

.about-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-avatar:hover {
  border-radius: 10%;
  transform: scale(2.2) translateY(16px);
}

.about-name {
  font-size: 17px;
  font-weight: bold;
  color: var(--side-title-fg);
}

.about-desc {
  margin-top: 4px;
  font-size: 15px;
  color: var(--side-title-fg);
  /* 签名放大加粗（原 13px 常规字重） */
  font-weight: 600;}

.side-brand {
  padding: 5px 0;
  text-align: center;
}

.side-brand img {
  max-width: 150px;
  max-height: 60px;
}

.side-brand .brand-text {
  font-size: 18px;
  font-weight: bold;
  color: var(--side-title-fg);
}

.left-line {
  margin: 15px 0;
  border-bottom: 1px solid var(--line);
}

.side-title {
  padding-left: 20px;
  font-size: 18px;
  font-weight: bold;
  color: var(--side-title-fg);
  text-indent: 0;
}

/* == sidebar-menu-ic BEGIN ==
   侧栏菜单：彩色圆角方块图标 + 当前页选中态（本段由 deploy/lalmes/apply-sidebar-menu.py 维护，
   重跑脚本会整段重写，请勿手改；改契约请改脚本。）
   ----------------------------------------------------------------
   · 图标 = 26px 圆角方块（--ic-color）+ 15px 白色线性字形（--ic-glyph）。
     字形是**本主题自己画的内联 SVG data URI**（fill:none + 白描边），没有外链、
     没有图标字体、没有 CDN。
   · 类型由模板写死在 <li data-ic="…">：home/archive/folder/tag/user/mail/image/
     clock/shield/doc/theme；未命中映射（后台新加的菜单项）时下面的基础规则仍然给出
     doc 字形 + --ic-doc 石板灰，永远不会白板。
   · 图标色板固定在 :root 的 --ic-*：7 套配色**共用同一套图标色**（一眼区分的 10 色 +
     兜底灰），这样换配色时图标不会跟着一起变淡/撞色。
   · 方块底色与文字色全部走变量：选中态 --nav-active-bg/--nav-active-fg，
     hover --nav-hover-bg/--nav-hover-fg（:root 与 7 个 html[data-skin=…] 块各自定义，
     随配色变化；选中态比 hover 深一档，两者可区分）。
   ========================================================= */
:root {
  /* 图标方块底色（固定色板 + 兜底石板灰） */
  --ic-doc: #6b7a99;
  --ic-home: #dd6b1f;
  --ic-archive: #3b7fd4;
  --ic-folder: #338f4f;
  --ic-tag: #7a63d8;
  --ic-user: #109494;
  --ic-mail: #b8452a;
  --ic-image: #a94fd0;
  --ic-clock: #c8871a;
  --ic-shield: #6f8129;
  --ic-theme: #c9467f;
  --ic-color: var(--ic-doc);
  /* 白色字形（自绘内联 SVG，无外链） */
  --ic-gl-doc: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23fff'%20stroke-width='1.7'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M13.6%203.6H6.6v16.8h10.8V7.6zM13.6%203.6v4h3.8M9.4%2012.4h5.2M9.4%2015.8h5.2'/%3E%3C/svg%3E");
  --ic-gl-home: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23fff'%20stroke-width='1.7'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M3.6%2011.2%2012%204.4l8.4%206.8M6.4%209.6V19.6h11.2V9.6M9.8%2019.6v-4.6h4.4v4.6'/%3E%3C/svg%3E");
  --ic-gl-archive: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23fff'%20stroke-width='1.7'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M4%204.4h16v3.4H4zM5.2%207.8h13.6V19.6H5.2zM9.6%2011.4h4.8'/%3E%3C/svg%3E");
  --ic-gl-folder: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23fff'%20stroke-width='1.7'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M3.6%2018.8V6.4a1.4%201.4%200%200%201%201.4-1.4h4l2.2%202.6h7.8a1.4%201.4%200%200%201%201.4%201.4v9.8z'/%3E%3C/svg%3E");
  --ic-gl-tag: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23fff'%20stroke-width='1.7'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M4.2%2011.4V5.8a1.6%201.6%200%200%201%201.6-1.6h5.6l8.4%208.4-7.2%207.2zM8.6%208.4h.01'/%3E%3C/svg%3E");
  --ic-gl-user: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23fff'%20stroke-width='1.7'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%2011.6a3.8%203.8%200%201%200%200-7.6%203.8%203.8%200%200%200%200%207.6zM4.8%2019.8c1-3%203.8-4.6%207.2-4.6s6.2%201.6%207.2%204.6'/%3E%3C/svg%3E");
  --ic-gl-mail: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23fff'%20stroke-width='1.7'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M3.6%206.4h16.8v11.2H3.6zM3.6%207.6l8.4%205.6%208.4-5.6'/%3E%3C/svg%3E");
  --ic-gl-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23fff'%20stroke-width='1.7'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M3.6%205.6h16.8v12.8H3.6zM8.2%2010.8a1.4%201.4%200%201%200%200-2.8%201.4%201.4%200%200%200%200%202.8zM4%2017.2l4.4-4.4%202.8%202.8%204.6-4.8%204.6%204.8'/%3E%3C/svg%3E");
  --ic-gl-clock: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23fff'%20stroke-width='1.7'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%2020.4a8.4%208.4%200%201%200%200-16.8%208.4%208.4%200%200%200%200%2016.8zM12%207.6V12l3.2%202.2'/%3E%3C/svg%3E");
  --ic-gl-shield: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23fff'%20stroke-width='1.7'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%203.6%2019.6%206.4v5.8c0%204.2-3.1%207.2-7.6%208.6-4.5-1.4-7.6-4.4-7.6-8.6V6.4z'/%3E%3C/svg%3E");
  --ic-gl-theme: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23fff'%20stroke-width='1.7'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%203.6a8.4%208.4%200%200%200%200%2016.8c1%200%201.7-.7%201.7-1.6%200-.4-.2-.8-.4-1.1-.2-.3-.4-.6-.4-1%200-.9.7-1.6%201.6-1.6h1.6a4.5%204.5%200%200%200%204.5-4.5c0-3.9-3.8-7-8.6-7zM8.4%2012.2a1.2%201.2%200%201%201%200-2.4%201.2%201.2%200%200%201%200%202.4zM11.4%208.8a1.2%201.2%200%201%201%200-2.4%201.2%201.2%200%200%201%200%202.4zM15.4%208.8a1.2%201.2%200%201%201%200-2.4%201.2%201.2%200%200%201%200%202.4z'/%3E%3C/svg%3E");
  --ic-glyph: var(--ic-gl-doc);
}

.left-ul li a {
  position: relative;
  display: block;
  width: 100%;
  padding: 10px 0 10px 50px;
  border-radius: var(--radius-sm);
  color: var(--side-fg);
  font-size: 15px;
  transition: 0.3s;
}

.left-ul li + li {
  margin-top: 8px;
}

/* 前置图标：圆角方块 + 居中白字形，与文字垂直居中（方块 12px 起、文字 50px 起，间距 12px） */
.left-ul li a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 12px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background-color: var(--ic-color);
  background-image: var(--ic-glyph);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 15px 15px;
  box-shadow: 0 1px 3px rgb(15 23 42 / 18%);
  transform: translateY(-50%);
}

/* 每项一个图标类型：底色 + 字形（未标记的菜单项走上面的基础规则兜底） */
.left-ul li[data-ic='home'] a::before {
  --ic-color: var(--ic-home);
  --ic-glyph: var(--ic-gl-home);
}

.left-ul li[data-ic='archive'] a::before {
  --ic-color: var(--ic-archive);
  --ic-glyph: var(--ic-gl-archive);
}

.left-ul li[data-ic='folder'] a::before {
  --ic-color: var(--ic-folder);
  --ic-glyph: var(--ic-gl-folder);
}

.left-ul li[data-ic='tag'] a::before {
  --ic-color: var(--ic-tag);
  --ic-glyph: var(--ic-gl-tag);
}

.left-ul li[data-ic='user'] a::before {
  --ic-color: var(--ic-user);
  --ic-glyph: var(--ic-gl-user);
}

.left-ul li[data-ic='mail'] a::before {
  --ic-color: var(--ic-mail);
  --ic-glyph: var(--ic-gl-mail);
}

.left-ul li[data-ic='image'] a::before {
  --ic-color: var(--ic-image);
  --ic-glyph: var(--ic-gl-image);
}

.left-ul li[data-ic='clock'] a::before {
  --ic-color: var(--ic-clock);
  --ic-glyph: var(--ic-gl-clock);
}

.left-ul li[data-ic='shield'] a::before {
  --ic-color: var(--ic-shield);
  --ic-glyph: var(--ic-gl-shield);
}

.left-ul li[data-ic='theme'] a::before {
  --ic-color: var(--ic-theme);
  --ic-glyph: var(--ic-gl-theme);
}

.left-ul li[data-ic='doc'] a::before {
  --ic-color: var(--ic-doc);
  --ic-glyph: var(--ic-gl-doc);
}

/* 未映射 / 未标记的菜单项（含以后在控制台新加的项）→ 兜底 doc 图标，不会空白 */
.left-ul li:not([data-ic]) a::before,
.left-ul li[data-ic=''] a::before {
  --ic-color: var(--ic-doc);
  --ic-glyph: var(--ic-gl-doc);
}

/* hover：主题色淡底（比选中态浅一档），两者颜色可区分 */
.left-ul li a:hover {
  background-color: var(--nav-hover-bg);
  color: var(--nav-hover-fg);
}

/* 当前页选中态：圆角块加深 + 文字略深；悬停时不改变选中态外观 */
.left-ul li a[data-xz] {
  background-color: var(--nav-active-bg);
  color: var(--nav-active-fg);
}

.left-ul li a[data-xz]:hover {
  background-color: var(--nav-active-bg);
  color: var(--nav-active-fg);
}

/* == sidebar-menu-ic END == */

.left-con {
  padding: 10px 20px;
  background: rgb(255 255 255 / 20%);
}

.left-con li {
  padding: 3px 0;
  color: var(--side-fg);
  font-size: 14px;
}

.left-con li a {
  color: var(--side-fg);
}

.left-con li a:hover {
  color: var(--accent);
}

.left-con strong {
  color: var(--accent);
}

/* 侧栏最新文章 */
.side-posts li + li {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.side-posts a {
  display: block;
  color: var(--side-fg);
  font-size: 14px;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.side-posts a:hover {
  color: var(--accent);
}

.side-posts .side-post-time {
  display: block;
  margin-top: 2px;
  color: var(--text-3);
  font-size: 12px;
}

/* 标签云 */
.tag-cloud {
  padding: 12px 20px;
}

.tag-cloud a {
  display: inline-block;
  margin: 0 6px 8px 0;
  padding: 2px 10px;
  border-radius: 3px;
  background: var(--accent-07);
  color: var(--text-2);
  font-size: 13px;
  transition: 0.3s;
}

.tag-cloud a:hover {
  background: var(--accent);
  color: #fff;
}

.tag-cloud a[data-xz] {
  background: var(--accent);
  color: #fff;
}

/* 分类列表 */
.cate-list {
  padding: 10px 20px;
}

.cate-list li {
  padding: 5px 0;
  font-size: 14px;
  color: var(--side-fg);
}

.cate-list li a {
  color: var(--side-fg);
}

.cate-list li a:hover,
.cate-list li a[data-xz] {
  color: var(--accent);
}

.cate-list .count {
  float: right;
  color: var(--text-3);
  font-size: 12px;
}

/* =========================================================
   10. 文章详情
   ========================================================= */
.content-box {
  padding: 30px 15px 50px;
}

.article-head {
  padding-bottom: 20px;
  border-bottom: 1px solid #ddd;
}

.article-title {
  font-size: 26px;
  font-weight: bold;
  color: #222;
  line-height: 1.45;
}

.article-meta {
  margin-top: 12px;
  color: var(--text-3);
  font-size: 13px;
}

.article-meta .mi + .mi {
  margin-left: 16px;
}

.article-meta a {
  color: var(--link-quiet);
  text-decoration: underline;
}

.article-meta a:hover {
  color: var(--accent);
}

/* ---------- 作者名后的「作者」小徽标 ----------
   文章署名处由模板直接输出；评论区的同款徽标由 assets/js/author-tag.js 内联注入
   （评论区在 Shadow DOM 里，主题 CSS 进不去）。底色统一取 --author-tag-bg。 */
.author-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--author-tag-bg);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  font-weight: 400;
  vertical-align: 1px;
  white-space: nowrap;
  text-decoration: none;
}

/* 手机端：跟着元信息一起收一档，避免标题行被挤到换行 */
@media (max-width: 768px) {
  .author-tag {
    font-size: 10px;
  }
}

.details {
  margin-top: 20px;
  color: rgb(53 60 65 / 90%);
  font-size: 16px;
  line-height: 2;
  word-break: break-word;
}

.details > *:first-child {
  margin-top: 0;
}

.details p {
  margin: 1em 0;
}

.details h1,
.details h2,
.details h3,
.details h4,
.details h5,
.details h6 {
  margin: 1.6em 0 0.8em;
  color: #222;
  font-weight: bolder;
  line-height: 1.5;
}

.details h2 {
  padding-left: 15px;
  border-left: 3px solid var(--accent);
  font-size: 20px;
}

.details h3 {
  font-size: 18px;
}

.details a {
  color: var(--accent);
  text-decoration: underline;
}

.details img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 16px auto;
  border-radius: var(--radius-sm);
}

.details ul,
.details ol {
  margin: 1em 0;
  padding-left: 2em;
}

.details ul li {
  list-style: disc outside;
  margin: 0.3em 0;
}

.details ol li {
  list-style: decimal outside;
  margin: 0.3em 0;
}

.details blockquote {
  margin: 1em 0;
  padding: 15px 10px;
  border-left: 3px solid var(--quote-border);
  background: var(--quote-bg);
  border-radius: 3px;
  color: var(--quote-fg);
}

.details pre {
  margin: 1em 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: #2b3140;
  color: #e6e8ef;
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
}

.details pre code {
  padding: 0;
  background: none;
  color: inherit;
  font-size: inherit;
}

.details code {
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--accent-10);
  color: #b23c3c;
  font-family: Consolas, Menlo, Monaco, 'Courier New', monospace;
  font-size: 90%;
}

.details table {
  width: 100%;
  margin: 1em 0;
  border-collapse: collapse;
  font-size: 14px;
}

.details table th,
.details table td {
  padding: 8px 10px;
  border: 1px solid var(--line);
}

.details table th {
  background: var(--accent-07);
}

.details hr {
  margin: 1.6em 0;
  border: 0;
  border-top: 1px solid var(--line);
}

/* 上一篇 / 下一篇 */
.post-nav {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
  font-size: 14px;
}

.post-nav a {
  display: block;
  color: var(--text-2);
}

.post-nav a:hover {
  color: var(--accent);
}

.post-nav .pn-item + .pn-item {
  margin-top: 10px;
}

.post-nav .pn-label {
  display: inline-block;
  margin-right: 8px;
  padding: 0 8px;
  border-radius: 3px;
  background: var(--accent-07);
  color: var(--accent);
  font-size: 12px;
}

/* 评论区 */
.comment-box {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}

.comment-box > h2 {
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: bold;
  color: #222;
}

/* =========================================================
   11. 页脚
   ========================================================= */
.footer {
  margin-top: 50px;
  padding: 20px 0;
  background: var(--accent-09);
}

.beian {
  font-size: 13px;
  color: var(--link-foot);
  text-align: center;
  line-height: 1.9;
}

.beian a {
  font-size: 13px;
  color: var(--link-foot);
}

.beian a:hover {
  color: var(--accent);
}

.beian .sep {
  display: inline-block;
  margin: 0 6px;
}

.beian-bot {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
  line-height: 1.8;
}

/* =========================================================
   12. 悬挂灯笼（国风装饰）
   ========================================================= */
.lantern-wrap {
  position: fixed;
  top: 0;
  z-index: 9999;
  pointer-events: none;
}

.lantern-wrap--right {
  right: -10px;
  animation: lalmesScaleSmall 5s infinite ease-in-out;
}

.lantern-wrap--right2 {
  right: 80px;
  top: 10px;
  animation: lalmesScaleBig 6s infinite ease-in-out;
}

.lantern {
  position: relative;
  width: 120px;
  height: 90px;
  margin: 50px;
  background: rgb(216 0 15 / 80%);
  border-radius: 50% 50%;
  transform-origin: 50% -100px;
  animation: lalmesSwing 6s infinite ease-in-out;
  box-shadow: -5px 5px 50px 4px rgb(250 108 0);
}

.lantern-wrap--right2 .lantern {
  animation-duration: 5.5s;
  animation-delay: -1.2s;
  box-shadow: -5px 5px 30px 4px rgb(252 144 61);
}

/* 灯笼上下金色箍 */
.lantern::before,
.lantern::after {
  content: '';
  display: block;
  height: 12px;
  width: 60px;
  border: solid 1px #dc8f03;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(to right, #dc8f03, #ffa500, #dc8f03, #ffa500, #dc8f03);
}

.lantern::before {
  position: absolute;
  top: -7px;
  left: 29px;
}

.lantern::after {
  position: absolute;
  bottom: -7px;
  left: 30px;
  border-radius: 0 0 5px 5px;
}

/* 内胆（竖纹） */
.lantern-a {
  width: 100px;
  height: 90px;
  margin: 12px 8px 8px 10px;
  border: 2px solid #dc8f03;
  border-radius: 50% 50%;
}

.lantern-b {
  width: 45px;
  height: 90px;
  margin: -2px 8px 8px 26px;
  border: 2px solid #dc8f03;
  border-radius: 50% 50%;
}

/* 吊线 */
.lantern-xian {
  position: absolute;
  top: -20px;
  left: 60px;
  width: 2px;
  height: 20px;
  background: #dc8f03;
}

/* 流苏 */
.lantern-shui-a {
  position: relative;
  width: 5px;
  height: 20px;
  margin: -5px 0 0 59px;
  border-radius: 0 0 5px 5px;
  background: #ffa500;
  transform-origin: 50% -45px;
  animation: lalmesSwing 6s infinite ease-in-out;
}

.lantern-wrap--right2 .lantern-shui-a {
  animation-duration: 5.5s;
  animation-delay: -1.2s;
}

.lantern-shui-b {
  position: absolute;
  top: 14px;
  left: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dc8f03;
}

.lantern-shui-c {
  position: absolute;
  top: 18px;
  left: -2px;
  width: 10px;
  height: 35px;
  border-radius: 0 0 0 5px;
  background: #ffa500;
}

.lantern-t {
  font-family: 'STXingkai', '华文行楷', KaiTi, Arial, sans-serif;
  font-size: 32px;
  font-weight: bold;
  line-height: 85px;
  color: #dc8f03;
  text-align: center;
  text-shadow: 0 0 20px #dc8f03;
}

/* =========================================================
   13. 浮动按钮（右侧回到顶部/返回；窄屏左上角抽屉按钮见文件末尾 mobile-drawer 段）
   ========================================================= */
.side-top {
  position: fixed;
  right: 0;
  bottom: 50px;
  z-index: 900;
  width: 40px;
  display: none;
}

.side-top.is-show {
  display: block;
}

.side-top a {
  display: block;
  width: 100%;
  height: 40px;
  margin-top: 5px;
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: 0 0 10px 0 rgb(7 17 27 / 15%);
  color: var(--text-2);
  font-size: 17px;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
}

.side-top a:hover {
  color: var(--accent);
}

.side-top a:active {
  color: var(--text);
}


/* =========================================================
   14. 入场动画（自实现的 fadeIn / fadeInUp）
   ========================================================= */
.wow {
  opacity: 1;
}

html.js .wow {
  opacity: 0;
}

.wow.is-in {
  opacity: 1;
  animation: lalmesFadeInUp 0.8s ease both;
}

/* =========================================================
   12. 细节保真：元信息图标 / 文章详情页 / 上一篇下一篇 / 评论区 / 页脚
   （本节位于所有 @media 之前，窄屏仍由后面的媒体查询覆盖）
   ========================================================= */

/* ---------- 元信息行的小图标（对齐参考站的列表/日历/眼睛/评论/外链图标） ---------- */
.mi-ic {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 4px;
  vertical-align: -2px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 13px 13px;
}

.mi-cate .mi-ic {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M3 5h18v2H3zm0 6h18v2H3zm0 6h18v2H3z'/%3E%3C/svg%3E");
}

.mi-author .mi-ic {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10zm0 2c-5 0-9 2.7-9 6v2h18v-2c0-3.3-4-6-9-6z'/%3E%3C/svg%3E");
}

.mi-date .mi-ic {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M7 2v2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-2V2h-2v2H9V2zm12 8v10H5V10z'/%3E%3C/svg%3E");
}

.mi-visit .mi-ic {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M12 5c-5 0-9 4.5-9 7s4 7 9 7 9-4.5 9-7-4-7-9-7zm0 11a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm0-6a2 2 0 1 0 0 4 2 2 0 0 0 0-4z'/%3E%3C/svg%3E");
}

.mi-comment .mi-ic {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M20 2H4a2 2 0 0 0-2 2v18l4-4h14a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2z'/%3E%3C/svg%3E");
}

.mi-more .mi-ic {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M14 3h7v7h-2V6.4l-8.3 8.3-1.4-1.4L17.6 5H14zM5 5h6v2H6v11h11v-5h2v6a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1z'/%3E%3C/svg%3E");
}

.news-meta .mi,
.article-meta .mi {
  display: inline-block;
}

/* ---------- 文章详情页 ---------- */
.article-head {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}

/* 参考站 .details p.st：18px、左侧 3px 主题色竖条 */
.details h2 {
  font-size: 18px;
  padding-left: 15px;
  border-left: 3px solid var(--accent);
}

.details h3 {
  font-size: 16px;
}

/* 参考站 .details img：正文图居中、最宽 600px（保留圆角） */
.details img {
  max-width: min(600px, 100%);
  border-radius: var(--radius-sm);
}

.article-tags {
  margin-top: 10px;
  font-size: 12px;
}

.article-tags a {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text-3);
}

.article-tags a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- 上一篇 / 下一篇：左右两栏卡片式导航 ---------- */
.post-nav {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.post-nav .pn-item {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent-07);
  transition: 0.3s;
}

.post-nav .pn-item + .pn-item {
  margin-top: 0;
}

.post-nav .pn-item:hover {
  background: var(--accent-12);
}

.post-nav .pn-next {
  justify-content: flex-end;
  text-align: right;
}

.post-nav .pn-dir {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
}

.post-nav .pn-body {
  display: block;
  min-width: 0;
}

.post-nav .pn-label {
  display: block;
  margin: 0 0 4px;
  padding: 0;
  background: none;
  color: var(--text-3);
  font-size: 12px;
}

.post-nav .pn-title {
  display: block;
  overflow: hidden;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-nav .pn-item:hover .pn-title {
  color: var(--accent);
}

/* ---------- 评论区：卡片化 + 把 halo 评论组件染成站内配色 ---------- */
.comment-box {
  margin-top: 30px;
  padding: 18px 16px 22px;
  border: 1px solid rgb(var(--accent-rgb) / 40%);
  border-radius: var(--radius-sm);
  background: rgb(var(--accent-rgb) / 10%);
  --halo-cw-primary-1-color: var(--accent);
  --halo-cw-primary-2-color: var(--accent-dark-1);
  --halo-cw-primary-3-color: var(--accent-dark-2);
  --halo-cw-text-1-color: #333;
  --halo-cw-text-2-color: #666;
  --halo-cw-text-3-color: #999;
  --halo-cw-muted-1-color: rgb(var(--accent-rgb) / 30%);
  --halo-cw-muted-2-color: var(--muted-2);
  --halo-cw-muted-3-color: var(--muted-3);
  /* 表情列表（参考站 .emolist）高亮色 = 主题色；emoji-mart 按 rgb(三元组) 消费 */
  --halo-cw-emoji-picker-rgb-accent: var(--accent-rgb);
}

.comment-box > .comment-title {
  margin: 0 0 14px;
  padding-left: 15px;
  border-left: 3px solid var(--accent);
  color: #222;
  font-size: 18px;
  font-weight: bolder;
  line-height: 1.4;
}

/* ---------- 页脚：细线 + 居中版权 + 备案号 + 站点统计 + 友情商链接 ---------- */
.footer {
  margin-top: 50px;
  padding: 20px 0;
  border-top: 1px solid var(--line-soft);
  background: var(--accent-09);
}

.beian .foot-stat {
  display: inline-block;
}

.beian .foot-stat strong {
  color: var(--accent);
  font-weight: bold;
}

.ylink {
  padding: 10px 0;
  text-align: center;
}

.ylink a {
  display: inline-block;
  margin: 0 6px;
  color: var(--link-foot);
  font-size: 13px;
}

.ylink a:hover {
  color: var(--accent);
}

.ylink a img {
  display: inline-block;
  height: 20px;
  vertical-align: middle;
}

/* ---------- 左侧微信 / QQ（参考站 .lian-wx-qq，未配置时不显示） ---------- */
.lian-wx-qq {
  padding: 6px 20px 2px;
}

.lian-wx-qq li {
  position: relative;
  display: inline-block;
  height: 26px;
  margin-right: 8px;
  padding: 0 10px;
  border-radius: 13px;
  background: var(--line);
  color: #fff;
  font-size: 12px;
  line-height: 26px;
  cursor: pointer;
}

.lian-wx-qq li.wx {
  background: #28c445;
}

.lian-wx-qq li.qq {
  background: #f08519;
}

.lian-wx-qq li span {
  position: absolute;
  left: 0;
  top: -30px;
  padding: 3px 10px;
  border-radius: 3px;
  background: #ddd;
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  transition: 0.3s;
}

.lian-wx-qq li.wx span {
  background: #28c445;
}

.lian-wx-qq li.qq span {
  background: #f08519;
}

.lian-wx-qq li:hover span {
  opacity: 1;
}

/* ---------- 首页 hero：压图位置 / 圆点 / 箭头 ---------- */
.hero-caption {
  bottom: 34px;
}

/* 说明：此处原先用白胶囊圆点（9px/active 22px）与白色 22% 圆角箭头覆盖上面的基础规则。
   现已按 swiper 3.4.2 默认值统一到上面的 .hero-dot / .hero-arrow（见该处注释与来源行），
   故不再重复覆盖；分页位置也回到 swiper 默认的 bottom:10px。 */

@keyframes lalmesFadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lalmesFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes heroUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lalmesSwing {
  0% {
    transform: rotate(-6deg);
  }

  50% {
    transform: rotate(6deg);
  }

  100% {
    transform: rotate(-6deg);
  }
}

@keyframes lalmesScaleBig {
  0% {
    transform: scale(1);
  }

  30% {
    transform: scale(1.08);
  }

  70% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes lalmesScaleSmall {
  0% {
    transform: scale(1);
  }

  30% {
    transform: scale(0.92);
  }

  70% {
    transform: scale(0.92);
  }

  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lantern,
  .lantern-shui-a,
  .lantern-wrap,
  .wow.is-in {
    animation: none !important;
  }

  .wow {
    opacity: 1;
  }
}

/* =========================================================
   15. 归档页
   ========================================================= */
.archive-group {
  padding: 20px 15px;
}

.archive-year {
  margin-bottom: 10px;
  padding-left: 15px;
  border-left: 3px solid var(--accent);
  font-size: 20px;
  font-weight: bold;
  color: #222;
}

.archive-month {
  margin-top: 18px;
  color: var(--text-2);
  font-size: 15px;
  font-weight: bold;
}

.archive-list {
  margin-top: 8px;
}

.archive-list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 15px;
}

.archive-list li .arc-date {
  float: right;
  color: var(--text-3);
  font-size: 13px;
}

/* =========================================================
   16. 标签 / 分类总览页
   ========================================================= */
.term-grid {
  padding: 20px 10px;
}

.term-card {
  float: left;
  width: 32%;
  margin: 0 2% 20px 0;
  padding: 18px 15px;
  border-radius: var(--radius-sm);
  background: var(--accent-07);
  transition: 0.4s;
}

.term-card:nth-child(3n) {
  margin-right: 0;
}

.term-card:hover {
  background: var(--accent-12);
  box-shadow: var(--shadow-up);
}

.term-card .tc-name {
  display: block;
  font-size: 16px;
  font-weight: bold;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.term-card:hover .tc-name {
  color: var(--accent);
}

.term-card .tc-count {
  display: block;
  margin-top: 6px;
  color: var(--text-3);
  font-size: 12px;
}

/* 单一标签/分类聚合页标题 */
.term-head {
  padding: 20px 15px 10px;
  border-bottom: 1px solid var(--line);
}

.term-head h1 {
  font-size: 22px;
  font-weight: bold;
  color: #222;
}

.term-head p {
  margin-top: 6px;
  color: var(--text-3);
  font-size: 13px;
}

/* =========================================================
   17. 单页 / 404
   ========================================================= */
.error-page {
  padding: 80px 20px;
  text-align: center;
}

.error-page .e-code {
  font-size: 72px;
  font-weight: bold;
  color: var(--accent);
  line-height: 1;
}

.error-page .e-msg {
  margin-top: 14px;
  color: var(--text-2);
  font-size: 16px;
}

.error-page .e-btn {
  display: inline-block;
  margin-top: 24px;
  padding: 8px 22px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
}

.error-page .e-btn:hover {
  background: var(--accent-60);
  color: #fff;
}

/* =========================================================
   18. 响应式
   ========================================================= */
/* 平板及以下：侧栏变抽屉 */
@media (max-width: 991px) {
  .main-right {
    width: 100%;
    float: none;
  }

  .main-left-box {
    position: fixed;
    top: 0;
    left: -260px;
    z-index: 300;
    width: 250px;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    transition: 0.5s;
    opacity: 0.6;
  }

  .lalmes--aside-right .main-left-box {
    right: -260px;
    left: auto;
  }

  .main-left-box.is-show {
    left: 0;
    opacity: 1;
  }

  .lalmes--aside-right .main-left-box.is-show {
    right: 0;
    left: auto;
  }

  .container {
    width: 88%;
  }

  .catelist a {
    display: block;
    float: left;
    width: 23.5%;
    margin-right: 2%;
    padding: 6px 0;
    text-align: center;
  }

  .catelist a + a {
    margin-left: 0;
  }

  .catelist a:nth-child(4n) {
    margin-right: 0;
  }

  .catelist a:nth-child(n + 5) {
    margin-top: 7px;
  }

  .term-card {
    width: 48%;
  }

  .term-card:nth-child(3n) {
    margin-right: 2%;
  }

  .term-card:nth-child(2n) {
    margin-right: 0;
  }
}

@media (max-width: 768px) {
  .container {
    width: 100%;
  }

  .box {
    margin-top: 0;
    border-radius: 0;
  }

  .hero {
    height: 200px;
  }

  .hero-title {
    font-size: 20px;
    letter-spacing: 1px;
  }

  .hero-sub {
    display: none;
  }

  /* 手机端也显示实时时间（原为对齐参考站的 display:none，按用户要求打开） */
  .hero-time {
    display: block;
    top: 4px;
    padding: 0 12px;
    font-size: 12px;
  }

  .hero-caption {
    bottom: 24px;
    padding: 0 12px;
  }

  /* 窄屏不再单独收窄圆点：swiper 默认圆点本身就是 8px，active 也保持 8px（仅换色 #007aff） */

  .newslist {
    padding: 15px 8px;
  }

  .news-item {
    padding: 10px;
  }

  .news-item + .news-item {
    margin-top: 15px;
  }

  /* 窄屏卡片：grid 两列（缩略图右列 / 标题+摘要左列），元信息行通栏一行。
     参考站窄屏把元信息行放在缩略图下方整行显示（xys.css @media(max-width:768px) 里
     .newslist li .t .p3{display:none} + .a3-p2{display:block;font-size:12px}），
     这里用 grid + display:contents 等价实现，避免浮动盒把元信息行挤成 63% 窄列。 */
  .news-item {
    display: grid;
    grid-template-columns: auto 36%;
    grid-template-areas:
      'title thumb'
      'excerpt thumb'
      'meta meta';
    column-gap: 10px;
  }

  .news-item.no-thumb {
    grid-template-columns: 1fr;
    grid-template-areas:
      'title'
      'excerpt'
      'meta';
  }

  /* 取消浮动盒，让标题/摘要/元信息成为上面的 grid 单元 */
  .news-body {
    display: contents;
  }

  .news-title {
    grid-area: title;
  }

  .news-excerpt {
    grid-area: excerpt;
  }

  .news-thumb {
    float: none;
    grid-area: thumb;
    align-self: start;
    width: auto;
    height: 80px;
    margin: 0;
  }

  /* 卡片里原有的 .clear 收尾盒在 grid 下会多出一行，隐藏之 */
  .news-item > .clear {
    display: none;
  }

  .news-title {
    font-size: 16px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .news-excerpt {
    margin-top: 5px;
    line-height: 1.8;
    -webkit-line-clamp: 3;
  }

  /* 元信息行：窄屏不再隐藏，改为卡片底部通栏一行（允许换行 / 间距收窄 / 字号略小） */
  .news-tags {
    display: none;
  }

  .news-meta {
    display: flex;
    flex-wrap: wrap;
    grid-area: meta;
    align-items: center;
    column-gap: 10px;
    row-gap: 3px;
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.7;
  }

  .news-meta .mi + .mi {
    margin-left: 0;
  }

  .content-box {
    padding: 20px 12px;
  }

  .article-title {
    font-size: 20px;
  }

  .details {
    font-size: 15px;
    line-height: 1.9;
  }

  .term-card {
    width: 100%;
    margin-right: 0;
    float: none;
  }

  .term-card:nth-child(3n),
  .term-card:nth-child(2n) {
    margin-right: 0;
  }

  .footer {
    margin-top: 30px;
  }

  /* 窄屏不再有顶部横条：右下角只留一个「回到顶部」小按钮
     （首页/返回与轮播、侧栏入口重复，去掉；按钮样式与图标体系一致：白底 + 主题色字形） */
  .side-top {
    right: 12px;
    bottom: 20px;
    width: 38px;
  }

  .side-top .tohome,
  .side-top .goback {
    display: none;
  }

  .side-top a {
    width: 38px;
    height: 38px;
    margin-top: 0;
    background: #fff;
    box-shadow: 0 2px 10px rgb(7 17 27 / 20%);
    color: var(--accent);
    font-size: 18px;
    line-height: 38px;
  }

  .pagebox {
    padding-bottom: 30px;
  }
}

/* 灯笼在窄屏缩小，避免遮挡 */
@media (max-width: 1400px) {
  .lantern {
    width: 100px;
    height: 75px;
  }

  .lantern-a {
    width: 84px;
    height: 75px;
    margin: 10px 6px 6px 8px;
  }

  .lantern-b {
    width: 38px;
    height: 75px;
    margin: -2px 6px 6px 22px;
  }

  .lantern-t {
    font-size: 28px;
    line-height: 70px;
  }

  .lantern-xian {
    left: 50px;
  }

  .lantern-shui-a {
    margin: -5px 0 0 49px;
  }

  .lantern::before {
    left: 24px;
    width: 50px;
  }

  .lantern::after {
    left: 24px;
    width: 50px;
  }
}

@media (max-width: 1200px) {
  .lantern {
    width: 80px;
    height: 60px;
    box-shadow: -3px 3px 24px 2px rgb(250 108 0 / 80%);
  }

  .lantern-a {
    width: 68px;
    height: 60px;
    margin: 8px 5px 5px 6px;
  }

  .lantern-b {
    width: 30px;
    height: 60px;
    margin: -2px 5px 5px 18px;
  }

  .lantern-t {
    font-size: 22px;
    line-height: 55px;
  }

  .lantern-xian {
    top: -15px;
    left: 40px;
    height: 15px;
  }

  .lantern-shui-a {
    width: 4px;
    height: 16px;
    margin: -5px 0 0 39px;
  }

  .lantern-shui-b {
    top: 10px;
    width: 8px;
    height: 8px;
  }

  .lantern-shui-c {
    top: 14px;
    width: 8px;
    height: 28px;
  }

  .lantern::before {
    top: -5px;
    left: 19px;
    height: 10px;
    width: 40px;
  }

  .lantern::after {
    bottom: -5px;
    left: 19px;
    height: 10px;
    width: 40px;
  }

  .lantern-wrap--right2 {
    right: 60px;
  }
}

@media (max-width: 768px) {
  .lantern {
    width: 58px;
    height: 44px;
    margin: 30px;
  }

  .lantern-a {
    width: 50px;
    height: 44px;
    margin: 6px 3px 3px 4px;
    border-width: 1.5px;
  }

  .lantern-b {
    width: 22px;
    height: 44px;
    margin: -2px 3px 3px 13px;
  }

  .lantern-t {
    font-size: 16px;
    line-height: 40px;
  }

  .lantern-xian {
    top: -10px;
    left: 28px;
    height: 10px;
    width: 1px;
  }

  .lantern-shui-a {
    width: 2px;
    height: 12px;
    margin: -5px 0 0 27px;
  }

  .lantern-wrap--right {
    right: -22px;
  }

  .lantern-wrap--right2 {
    right: 18px;
    top: 12px;
  }

  .lantern-wrap--right2 .lantern {
    width: 44px;
    height: 34px;
  }

  .lantern-wrap--right2 .lantern-a {
    width: 38px;
    height: 34px;
    margin: 5px 2px 2px 3px;
  }

  .lantern-wrap--right2 .lantern-b {
    width: 16px;
    height: 34px;
    margin: -2px 2px 2px 10px;
  }

  /* 详情页窄屏：上下篇竖排、评论区/正文留白收紧 */
  .post-nav {
    flex-direction: column;
    gap: 10px;
  }

  .post-nav .pn-item {
    flex: none;
    width: 100%;
  }

  .post-nav .pn-next {
    justify-content: flex-start;
    text-align: left;
  }

  .post-nav .pn-next .pn-dir {
    order: 2;
    margin-left: auto;
  }

  .comment-box {
    padding: 14px 12px 18px;
  }
}

/* ==== D/正文 blur 覆盖网（来源：shiki 插件注入） ==== */
/* 文章正文里出现过的规则：
     <style class="pjax" data-pjax>
     pre:has(code) {
         filter: blur(10px) !important;
         padding: 1rem !important;
     }
     </style>
   来源（实测定位）：plugins/shiki-1.5.1.jar → run/halo/shiki/Constants.class 的常量 PRE_STYLE；
   由 run/halo/shiki/ShikiPostContentHandler（reactive-post-content-handler 扩展点）在服务端拼接到
   每篇文章/单页正文 post.content.content 的最前面，主题模板无法去除。
   该模糊是 shiki 渲染前的“占位”态（前端把 <code> 换成 <shiki-code> 后即不再命中），
   已通过关闭该插件“启用主题侧渲染”（plugin-shiki-configMap → basic.enabled=false）从源头去掉；
   此处保留一条更高优先级（(0,1,4) > (0,0,2)）的 !important 规则兜底：
   若以后重新开启 shiki 主题侧渲染，正文代码块也不会被 blur。 */
html body .details pre:has(code) {
  filter: none !important;
}

/* =========================================================
   16. 前台访客配色切换（「更换主题」）
   入口：#skin-open（modules/sidebar.html 侧栏主菜单之后）；面板 DOM 由 assets/js/skin.js 运行时创建。
   这一段只覆盖颜色类 CSS 变量，不动字体、版式、圆角与阴影。

   注意：modules/layout.html 在 <body> 上写了内联 style（--accent / --page-bg / --hero-h，取自主题
   设置），内联声明优先级高于普通样式表规则，所以这两项必须在 body 选择器上带 !important 才能被
   肤色覆盖；其余变量只写在 html 上（一个元素、全站继承）。
   选「默认」时 skin.js 会直接移除 data-skin 属性，回落到主题设置里配置的值。
   ========================================================= */

html[data-skin='default'] {
  --accent: #36508c;
  --accent-rgb: 54 80 140;
  --page-bg: #e8e9ec;
  --side-bg: #e0e4ed;
  --line: rgb(194 202 220);
  --line-soft: rgb(194 202 220 / 60%);
  /* ---- 强调色派生变量（默认值 = 参考站原观感；每一套 skin 会覆盖下面的值） ---- */
  --chip-bg: rgb(224 228 237);
  --chip-fg: #666;
  --chip-hover-bg: rgb(194 202 220 / 50%);
  --chip-active-bg: rgb(154 167 197);
  --chip-active-fg: #fff;
  --chip-underline: rgb(194 202 220);
  --pager-border: #ddd;
  --pager-bg: #fff;
  --pager-fg: #666;
  --pager-active-fg: #fff;
  --pager-disabled-bg: #f6f7fa;
  --side-title-fg: #444;
  --side-fg: #555;
  --nav-active-bg: #8b9abc;
  --nav-active-fg: #203054;
  --nav-hover-bg: #c1c9dc;
  --nav-hover-fg: #36508c;
  --link-quiet: #999;
  --link-foot: #888;
  /* ---- 引用块 / 评论组件强调色（同样随 skin 变化） ---- */
  --quote-border: rgb(154 167 197);
  --quote-bg: rgb(194 202 220);
  --quote-fg: #3d4450;
  --accent-dark-1: #2f4679;
  --accent-dark-2: #253a66;
  --muted-2: #d7dce8;
  --muted-3: #e6e9f1;
}

html[data-skin='default'] body {
  --accent: #36508c !important;
  --page-bg: #e8e9ec !important;
}

/* 春 */
html[data-skin='spring'] {
  --accent: #4e8f57;
  --accent-rgb: 78 143 87;
  --page-bg: #f1f8ef;
  --side-bg: #e2efe0;
  --line: rgb(201 223 198);
  --line-soft: rgb(201 223 198 / 60%);
  --chip-bg: rgb(216 230 218);
  --chip-fg: #37643d;
  --chip-hover-bg: rgb(198 219 201);
  --chip-active-bg: rgb(174 203 178);
  --chip-active-fg: #2c5031;
  --chip-underline: #4e8f57;
  --pager-border: rgb(202 221 205);
  --pager-bg: #fff;
  --pager-fg: #3d7044;
  --pager-active-fg: #fff;
  --pager-disabled-bg: rgb(244 248 245);
  --side-title-fg: #335d39;
  --side-fg: #407547;
  --nav-active-bg: #98bf9c;
  --nav-active-fg: #2b4f30;
  --nav-hover-bg: #c7dec7;
  --nav-hover-fg: #37643d;
  --link-quiet: #427a4a;
  --link-foot: #407547;
  /* ---- 引用块 / 评论组件强调色（同样随 skin 变化） ---- */
  --quote-border: rgb(166 199 171);
  --quote-bg: rgb(202 221 205);
  --quote-fg: #35613b;
  --accent-dark-1: #437b4b;
  --accent-dark-2: #35613b;
  --muted-2: rgb(220 233 221);
  --muted-3: rgb(234 242 235);
}

html[data-skin='spring'] body {
  --accent: #4e8f57 !important;
  --page-bg: #f1f8ef !important;
}

/* 夏 */
html[data-skin='summer'] {
  --accent: #2f7fb8;
  --accent-rgb: 47 127 184;
  --page-bg: #eff8fd;
  --side-bg: #deeff8;
  --line: rgb(196 224 240);
  --line-soft: rgb(196 224 240 / 60%);
  --chip-bg: rgb(209 227 239);
  --chip-fg: #215981;
  --chip-hover-bg: rgb(188 214 232);
  --chip-active-bg: rgb(159 196 222);
  --chip-active-fg: #1a4767;
  --chip-underline: #2f7fb8;
  --pager-border: rgb(193 217 234);
  --pager-bg: #fff;
  --pager-fg: #256390;
  --pager-active-fg: #fff;
  --pager-disabled-bg: rgb(243 247 251);
  --side-title-fg: #1f5378;
  --side-fg: #276897;
  --nav-active-bg: #86b7d8;
  --nav-active-fg: #1a4665;
  --nav-hover-bg: #bfdbec;
  --nav-hover-fg: #235f8a;
  --link-quiet: #286c9c;
  --link-foot: #276897;
  /* ---- 引用块 / 评论组件强调色（同样随 skin 变化） ---- */
  --quote-border: rgb(151 191 220);
  --quote-bg: rgb(193 217 234);
  --quote-fg: #20567d;
  --accent-dark-1: #286d9e;
  --accent-dark-2: #20567d;
  --muted-2: rgb(213 229 241);
  --muted-3: rgb(230 240 246);
}

html[data-skin='summer'] body {
  --accent: #2f7fb8 !important;
  --page-bg: #eff8fd !important;
}

/* 秋 */
html[data-skin='autumn'] {
  --accent: #b08327;
  --accent-rgb: 176 131 39;
  --page-bg: #fbf7ea;
  --side-bg: #f3ecd6;
  --line: rgb(230 216 174);
  --line-soft: rgb(230 216 174 / 60%);
  --chip-bg: rgb(238 228 207);
  --chip-fg: #7b5c1b;
  --chip-hover-bg: rgb(230 215 186);
  --chip-active-bg: rgb(219 198 156);
  --chip-active-fg: #634916;
  --chip-underline: #b08327;
  --pager-border: rgb(231 218 190);
  --pager-bg: #fff;
  --pager-fg: #89661e;
  --pager-active-fg: #fff;
  --pager-disabled-bg: rgb(250 248 242);
  --side-title-fg: #725519;
  --side-fg: #906b20;
  --nav-active-bg: #d2b87e;
  --nav-active-fg: #584214;
  --nav-hover-bg: #e7d9b7;
  --nav-hover-fg: #725519;
  --link-quiet: #966f21;
  --link-foot: #906b20;
  /* ---- 引用块 / 评论组件强调色（同样随 skin 变化） ---- */
  --quote-border: rgb(216 193 147);
  --quote-bg: rgb(231 218 190);
  --quote-fg: #78591b;
  --accent-dark-1: #977122;
  --accent-dark-2: #78591b;
  --muted-2: rgb(239 230 212);
  --muted-3: rgb(246 240 229);
}

html[data-skin='autumn'] body {
  --accent: #b08327 !important;
  --page-bg: #fbf7ea !important;
}

/* 冬 */
html[data-skin='winter'] {
  --accent: #4a5fc1;
  --accent-rgb: 74 95 193;
  --page-bg: #f2f4fd;
  --side-bg: #e3e7f7;
  --line: rgb(204 211 238);
  --line-soft: rgb(204 211 238 / 60%);
  --chip-bg: rgb(215 220 241);
  --chip-fg: #344287;
  --chip-hover-bg: rgb(197 204 235);
  --chip-active-bg: rgb(172 181 226);
  --chip-active-fg: #29356c;
  --chip-underline: #4a5fc1;
  --pager-border: rgb(201 207 236);
  --pager-bg: #fff;
  --pager-fg: #3a4a97;
  --pager-active-fg: #fff;
  --pager-disabled-bg: rgb(244 245 251);
  --side-title-fg: #303e7d;
  --side-fg: #3d4e9e;
  --nav-active-bg: #96a3dc;
  --nav-active-fg: #29346a;
  --nav-hover-bg: #c7cfed;
  --nav-hover-fg: #3f51a4;
  --link-quiet: #3f51a4;
  --link-foot: #3d4e9e;
  /* ---- 引用块 / 评论组件强调色（同样随 skin 变化） ---- */
  --quote-border: rgb(164 175 224);
  --quote-bg: rgb(201 207 236);
  --quote-fg: #324183;
  --accent-dark-1: #4052a6;
  --accent-dark-2: #324183;
  --muted-2: rgb(219 223 243);
  --muted-3: rgb(233 236 248);
}

html[data-skin='winter'] body {
  --accent: #4a5fc1 !important;
  --page-bg: #f2f4fd !important;
}

/* 激情红 */
html[data-skin='hot'] {
  --accent: #c0392b;
  --accent-rgb: 192 57 43;
  --page-bg: #fdf1f0;
  --side-bg: #f6e0dd;
  --line: rgb(238 198 193);
  --line-soft: rgb(238 198 193 / 60%);
  --chip-bg: rgb(241 211 208);
  --chip-fg: #86281e;
  --chip-hover-bg: rgb(235 192 187);
  --chip-active-bg: rgb(226 164 157);
  --chip-active-fg: #6c2018;
  --chip-underline: #c0392b;
  --pager-border: rgb(236 196 191);
  --pager-bg: #fff;
  --pager-fg: #962c22;
  --pager-active-fg: #fff;
  --pager-disabled-bg: rgb(251 243 242);
  --side-title-fg: #7d251c;
  --side-fg: #9d2f23;
  --nav-active-bg: #db8c84;
  --nav-active-fg: #601c16;
  --nav-hover-bg: #ecc2bd;
  --nav-hover-fg: #9a2e22;
  --link-quiet: #a33025;
  --link-foot: #9d2f23;
  /* ---- 引用块 / 评论组件强调色（同样随 skin 变化） ---- */
  --quote-border: rgb(224 156 149);
  --quote-bg: rgb(236 196 191);
  --quote-fg: #83271d;
  --accent-dark-1: #a53125;
  --accent-dark-2: #83271d;
  --muted-2: rgb(242 215 213);
  --muted-3: rgb(247 231 230);
}

html[data-skin='hot'] body {
  --accent: #c0392b !important;
  --page-bg: #fdf1f0 !important;
}

/* 少女粉 */
html[data-skin='pink'] {
  --accent: #d6538a;
  --accent-rgb: 214 83 138;
  --page-bg: #fdf2f7;
  --side-bg: #f7e2ec;
  --line: rgb(240 203 221);
  --line-soft: rgb(240 203 221 / 60%);
  --chip-bg: rgb(246 217 229);
  --chip-fg: #963a61;
  --chip-hover-bg: rgb(242 200 218);
  --chip-active-bg: rgb(236 176 201);
  --chip-active-fg: #782e4d;
  --chip-underline: #d6538a;
  --pager-border: rgb(243 203 220);
  --pager-bg: #fff;
  --pager-fg: #a7416c;
  --pager-active-fg: #fff;
  --pager-disabled-bg: rgb(253 245 248);
  --side-title-fg: #8b365a;
  --side-fg: #af4471;
  --nav-active-bg: #e69abb;
  --nav-active-fg: #6b2a45;
  --nav-hover-bg: #f1c8da;
  --nav-hover-fg: #963a61;
  --link-quiet: #b64775;
  --link-foot: #af4471;
  /* ---- 引用块 / 评论组件强调色（同样随 skin 变化） ---- */
  --quote-border: rgb(234 169 196);
  --quote-bg: rgb(243 203 220);
  --quote-fg: #92385e;
  --accent-dark-1: #b84777;
  --accent-dark-2: #92385e;
  --muted-2: rgb(247 221 232);
  --muted-3: rgb(250 234 241);
}

html[data-skin='pink'] body {
  --accent: #d6538a !important;
  --page-bg: #fdf2f7 !important;
}

/* ---- 「更换主题」侧栏菜单项（结构同 .left-ul；图标类型写在模板里
   <li data-ic="theme">，字形与底色见上面的「侧栏菜单」一节；点击行为仍由
   assets/js/skin.js 绑定 #skin-open，不要改这个 id） ---- */
#skin-open {
  cursor: pointer;
}

.skin-box {
  margin-top: 8px;
}

/* ---- 「更换主题」顶部下滑横栏（skin-bar v2） ----
   结构（assets/js/skin.js 运行时创建）：
     .skin-mask  = 整屏透明点击层（点空白关闭，不压暗页面）
       .skin-panel = 顶部整宽白色横栏（translateY(-100%) ⇄ 0）
         .skin-inner = 1200px 居中内容列
           .skin-close（右上角 ×）+ .skin-list（色块左对齐自然换行） */
.skin-mask {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: block;
  padding: 0;
  background: transparent;
}

.skin-mask[hidden] {
  display: none;
}

.skin-panel {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid rgb(0 0 0 / 6%);
  box-shadow: 0 8px 20px rgb(15 23 42 / 10%);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  will-change: transform;
}

.skin-mask.skin-on .skin-panel {
  transform: translateY(0);
}

.skin-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 40px 26px;
}

.skin-close {
  position: absolute;
  top: 6px;
  right: 12px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #5a5f6b;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: color 0.25s, background-color 0.25s;
}

.skin-close:hover {
  background: #f3f4f6;
  color: #b6bac3;
}

.skin-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 18px 24px;
  margin: 0;
  padding: 28px 0 0;
}

.skin-item {
  flex: 0 0 auto;
  width: 200px;
  height: 56px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  color: #3f4553;
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition: filter 0.25s, box-shadow 0.25s;
}

.skin-item:hover {
  filter: brightness(1.06);
  box-shadow: 0 1px 4px rgb(0 0 0 / 8%);
}

.skin-item:focus-visible {
  outline: 2px solid rgb(0 0 0 / 22%);
  outline-offset: 2px;
}

/* 当前项不再用边框 / 加粗圈选，只靠文字后的 ✓ 标识 */
.skin-item[data-on='1'] {
  font-weight: 400;
}

.skin-name,
.skin-tick {
  vertical-align: middle;
}

.skin-tick {
  margin-left: 6px;
  color: #3a4152;
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
}

.skin-tick[hidden] {
  display: none;
}

@media (max-width: 600px) {
  .skin-inner {
    padding: 20px 16px 24px;
  }

  .skin-list {
    gap: 14px 16px;
    padding-top: 26px;
  }
}

/* 桌面：滚动后左栏固定、只有右列滚动（对齐参考站 .main-left 的 fixed 机制） */
@media (min-width: 992px) {
  .main-left-box.is-side-fixed {
    position: fixed;
    top: 0;
    z-index: 200;
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    float: none;
  }
}

/* =========================================================
   22. 面包屑（当前位置：首页 > …）
   颜色全部取自随配色变化的变量：
     链接/前缀/分隔 → --link-quiet / --line，当前项 → --chip-fg，悬停 → --accent
   （--text-2/--text-3 是固定值、不随 7 套配色变化，故不使用）
   ========================================================= */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 6px;
  row-gap: 2px;
  margin: 14px 0 16px;
  padding: 0 15px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--link-quiet);
}

.breadcrumb .bc-label {
  flex: 0 0 auto;
  white-space: nowrap;
  color: var(--link-quiet);
}

.breadcrumb .bc-trail {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 6px;
  row-gap: 2px;
  min-width: 0;
}

.breadcrumb .bc-sep {
  flex: 0 0 auto;
  color: var(--line);
  font-size: 12px;
}

.breadcrumb .bc-link {
  color: var(--link-quiet);
  transition: color 0.2s;
}

.breadcrumb .bc-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.breadcrumb .bc-cur {
  min-width: 0;
  color: var(--chip-fg);
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 600px) {
  .breadcrumb {
    margin: 12px 0 14px;
    padding: 0 12px;
    font-size: 12px;
  }

  .breadcrumb .bc-sep {
    font-size: 11px;
  }
}

/* 侧栏滚动条隐藏（保留可滚动，只是不显示可见滚动条） */
.main-left-box {
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;      /* 旧 Edge / IE */
}

.main-left-box::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none;
}

/* == mobile-drawer BEGIN ==
   手机端抽屉：左上角浮动方形按钮（开/关）+ 抽屉内左上角关闭 ✕。
   · 白底写死（#fff）+ 图标色 var(--accent)：--accent 由主题设置与 7 套
     html[data-skin=…] 配色块共同覆盖，所以按钮会跟着配色走，不用改这段。
   · 图标是 currentColor 描边的内联 SVG（见 nav.html / layout.html），无外链。
   · z-index 250 < 抽屉 300 ⇒ 抽屉打开时自然盖住按钮；≥992px 两个按钮都 display:none。
   · 本段由 deploy/lalmes/apply-mobile-drawer-btn.py 维护，重跑脚本会整段重写。
   ========================================================= */
.m-drawer-btn,
.m-drawer-close {
  display: none;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: var(--accent);
  box-shadow: 0 2px 10px rgb(7 17 27 / 20%);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.m-drawer-btn .m-drawer-ic,
.m-drawer-close .m-drawer-ic {
  display: block;
  width: 22px;
  height: 22px;
  pointer-events: none;
}

.m-drawer-btn:active,
.m-drawer-close:active {
  transform: scale(0.94);
}

@media (max-width: 991px) {
  /* 左上角浮动方形按钮：压在轮播图上（对齐参考站），25×25 视觉尺寸 */
  .m-drawer-btn {
    position: fixed;
    top: 9px;
    left: 9px;
    z-index: 250;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
  }

  /* 抽屉内左上角关闭 ✕：sticky 让它在抽屉滚动时也钉在顶部 */
  .m-drawer-close {
    position: sticky;
    top: 8px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 8px 0 0 8px;
  }
}
/* == mobile-drawer END == */

/* 瞬间详情页（插件自带模板，无主题骨架）：收窄到与文章内容列同宽并居中 */
body.lalmes > section.moment {
  max-width: 840px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  box-sizing: border-box;
}

body.lalmes > section.moment > article {
  background: var(--panel-bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 20px 20px 22px;
  box-shadow: var(--shadow);
}

body.lalmes > section.moment .moment-media img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
}

body.lalmes > section.moment .moment-comments {
  margin-top: 20px;
  background: var(--panel-bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 18px 16px 22px;
}

/* 窄屏：去掉多余左右留白，卡片圆角收掉，跟站内其它页一致 */
@media (max-width: 768px) {
  body.lalmes > section.moment {
    padding: 12px 10px 28px;
  }
  body.lalmes > section.moment > article,
  body.lalmes > section.moment .moment-comments {
    border-radius: 0;
    padding: 14px 12px 16px;
  }
}

/* 瞬间详情页底部「返回瞬间列表」：裸链接 → 与「提交评论」同款按钮 */
body.lalmes > section.moment > a[href] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 1px 2px rgb(7 17 27 / 12%);
  transition: filter 0.18s, transform 0.12s;
}

/* 前置小箭头：用 mask 让图标自动跟随文字色（白） */
body.lalmes > section.moment > a[href]::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M15%2018l-6-6%206-6'%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M15%2018l-6-6%206-6'%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
}

body.lalmes > section.moment > a[href]:hover {
  filter: brightness(0.94);
  text-decoration: none;
}

body.lalmes > section.moment > a[href]:active {
  transform: translateY(1px);
}

@media (max-width: 768px) {
  body.lalmes > section.moment > a[href] {
    padding: 7px 14px;
    font-size: 12px;
  }
}

/* ---------- 轮播图固定文案（大字左下 + 小字右下，对齐参考站 .wr 结构） ---------- */
.hero-slogan {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 26px;
  z-index: 3;
  padding: 0 20px;
  box-sizing: border-box;
  pointer-events: none;
  text-shadow: 0 1px 3px rgb(0 0 0 / 60%), 0 0 1px rgb(0 0 0 / 45%);
}
.hero-slogan .hs-main {
  display: block;
  font-size: 32px;
  font-weight: bolder;
  color: #fff;
  letter-spacing: 2px;
  line-height: 1.3;
}
.hero-slogan .hs-sub {
  display: block;
  font-size: 16px;
  font-weight: normal;
  color: #fff;
  letter-spacing: 1px;
  text-align: right;
}
@media (max-width: 768px) {
  .hero-slogan {
    bottom: 20px;
    padding: 0 12px;
  }
  .hero-slogan .hs-main {
    font-size: 18px;
    letter-spacing: 1px;
  }
  .hero-slogan .hs-sub {
    font-size: 12px;
    letter-spacing: 0;
  }
}

/* ================= 手机端排版整理（≤768px） =================
   改前实测（390px）：详情页元信息 3 行且左边缘 12/28/28 不齐；列表卡片「查看全文」独占一行贴左。
   目标：项内永不拆行、行左边缘对齐、末项（查看全文）安置到右侧；桌面样式完全不动。 */
@media (max-width: 768px) {
  /* ① 详情页元信息：flex 均匀换行，预计 3 行 → 2 行 */
  .article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 14px;
    row-gap: 5px;
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.5;
  }
  .article-meta .mi {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
  }
  .article-meta .mi + .mi {
    margin-left: 0;
  }
  .article-meta .mi-ic {
    width: 12px;
    height: 12px;
    margin-right: 3px;
    background-size: 12px 12px;
    vertical-align: 0;
  }

  /* ② 列表卡片元信息：项内不断行；「查看全文」= 靠右小胶囊 */
  .news-meta {
    column-gap: 12px;
    row-gap: 6px;
    margin-top: 8px;
  }
  .news-meta .mi {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
  }
  .news-meta .mi + .mi.mi-more {
    margin-left: auto;
    padding: 2px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
  }
  .news-meta .mi-more .mi-ic {
    display: none;
  }

  /* ③ 图集卡片手机端「先摘要后缩略图」的顺序调整放在 gallery.css 里做
        （gallery.css 在 main.css 之后加载，同一选择器写在这里会被它覆盖） */

  /* ④ 分类胶囊：手机上收一圈，避免两行大色块占掉半屏 */
  .catelist a {
    font-size: 13px;
    padding: 5px 12px;
    margin: 0 6px 6px 0;
  }
}

/* ── 作者徽标底色：固定红色（2026-09-30 按用户要求，不随换肤变化）── */
:root { --author-tag-bg: #e53935 !important; }
