/* =========================================================
   手绘风覆盖式样式（不修改 main.css，一键回退：删此文件 link）
   ========================================================= */

/* 本地书法字体（马善政楷体，避免依赖 Google Fonts） */
@font-face {
  font-family: "Ma Shan Zheng";
  src: url('/static/fonts/MaShanZheng-Regular.woff2') format('woff2'),
       url('/static/fonts/MaShanZheng-Regular.ttf') format('truetype');
  font-display: swap;
}

:root {
  --hand: "Ma Shan Zheng","Kaiti SC","STKaiti","KaiTi","楷体","cursive";
  --ink: #5B4632;
  --ink-dark: #4A3728;
  --ink-soft: #8A6D4F;
  --paper: #FDF8EE;
  --paper-soft: #FAF3E3;
  --orange: #E8703A;
  --green: #8FAE6B;
  --yellow: #EBB944;
}

/* ---------- 全站基础 ---------- */
html, body { background-color: var(--paper); }
body {
  color: var(--ink);
  font-family: "Open Sans", "PingFang SC", "Microsoft YaHei", "Kaiti SC", "楷体", sans-serif;
  background-image: radial-gradient(circle, rgba(120,90,60,.05) 1px, transparent 1.3px);
  background-size: 24px 24px;
  background-attachment: fixed;
}
/* 自定义手绘鼠标光标（热点在箭头尖端 (23,1)）
   通用选择器 * 覆盖所有元素的所有状态；
   .js-cursor-refresh 用于 JS 强制刷新：先把全站光标切成系统默认，
   再切回自定义，逼浏览器重新下发 OS 光标（修复点击后卡默认样式） */
*,
*::before,
*::after {
  cursor: url('/static/img/cursor.png') 23 1, auto !important;
}
html.js-cursor-refresh *,
html.js-cursor-refresh *::before,
html.js-cursor-refresh *::after {
  cursor: default !important;
}
h1, h2, h3, h4, h5, h6 { color: var(--ink-dark); }
a { color: var(--ink-dark); }
a:hover,
a:focus {
  text-decoration: none;
  color: var(--orange);
}

/* ---------- 顶栏 ---------- */
.header {
  background-color: var(--paper) !important;
  border-bottom: 1px dashed rgba(91, 70, 50, .18);
}
.header.is-scroll { box-shadow: 0 2px 24px rgba(91, 70, 50, .08); }
.header__logo img { max-height: 40px; }

/* 桌面顶栏导航：默认隐藏（移动端走汉堡），≥992px 显示 */
.hand-nav { display: none; }

/* 桌面端：显示顶栏，隐藏汉堡+遮罩 */
@media (min-width: 992px) {
  .hand-nav {
    display: flex;
    align-items: center;
    font-family: var(--hand);
  }
  .navbar-toggle,
  .fullscreenmenu__module { display: none !important; }
}

.hand-nav__list {
  display: flex;
  gap: clamp(14px, 2vw, 32px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.hand-nav__list a {
  color: var(--ink);
  font-size: 19px;
  padding: 6px 4px;
  text-decoration: none;
  position: relative;
  transition: color .2s, transform .2s;
  display: inline-block;
}
.hand-nav__list a:hover {
  color: var(--orange);
  transform: rotate(-1.5deg);
}

/* 当前项：橙色 + 手绘下划线（SVG data-URI） */
.hand-nav__list li.current-menu-item > a { color: var(--orange); }
.hand-nav__list li.current-menu-item > a::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -8px;
  height: 8px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 8" preserveAspectRatio="none"><path d="M2 5 Q14 1,28 4 T56 5 T84 4 T98 5" stroke="%23E8703A" stroke-width="3" fill="none" stroke-linecap="round"/></svg>') no-repeat center/100% 100%;
  pointer-events: none;
}

/* ---------- 移动端全屏菜单（手写化） ---------- */
.fullscreenmenu__module {
  background-color: rgba(253, 248, 238, .97);
}
.fullscreenmenu__module.open .navbar-icon span,
.fullscreenmenu__module.open .navbar-icon span::before,
.fullscreenmenu__module.open .navbar-icon span::after {
  background-color: var(--ink) !important;
}
.overlay-menu ul li a {
  font-family: var(--hand) !important;
  color: var(--ink-dark) !important;
  text-transform: none !important;
  font-size: clamp(28px, 6vw, 44px) !important;
  letter-spacing: 2px;
}
.overlay-menu ul li a:hover,
.overlay-menu ul li.current-menu-item > a {
  color: var(--orange) !important;
}

/* ---------- 通用页标题（about / blog / contact / blog_detail） ---------- */
.page-title__title {
  font-family: var(--hand) !important;
  color: var(--ink-dark) !important;
  text-transform: none;
}
.page-title__text { color: var(--ink-soft) !important; }
.page-title__divider {
  background-color: var(--orange) !important;
  width: 56px;
  height: 3px;
  border-radius: 2px;
}
.title__title {
  font-family: var(--hand) !important;
  color: var(--ink-dark) !important;
  text-transform: none;
}

/* 博客文章内文标题：保留可读（不被手写化） */
.post-detail__entry h1,
.post-detail__entry h2,
.post-detail__entry h3,
.post-detail__entry h4,
.post-detail__entry h5,
.post-detail__entry h6 {
  font-family: "Open Sans", "PingFang SC", "Microsoft YaHei", sans-serif !important;
  color: var(--ink-dark) !important;
}

/* ---------- 分区块背景色（替代原 .bg-gray） ---------- */
.awe-section.bg-gray { background-color: var(--paper-soft) !important; }

/* ---------- 页脚 ---------- */
.footer {
  background-color: transparent !important;
  color: var(--ink-soft) !important;
  border-top: 1px dashed rgba(91, 70, 50, .18);
}
.footer__copy, .footer p { color: var(--ink-soft) !important; }

/* 页脚社交图标：主题色悬浮，替换原红色 */
.footer .social-icon {
  color: var(--ink-soft);
  border-color: rgba(91, 70, 50, .25);
}
.footer .social-icon:hover {
  border-color: var(--orange);
  background-color: var(--orange);
  color: #fff;
}

/* 点击复制提示气泡 */
.copy-tip {
  position: fixed;
  z-index: 9999;
  background: var(--ink-dark);
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.copy-tip.show { opacity: 1; transform: translateY(0); }

/* =========================================================
   首页：Hero 左文右图（高度优先显示 banner）
   ========================================================= */
.hand-hero {
  padding-top: clamp(110px, 14vh, 160px);
  padding-bottom: 60px;
}
.hand-hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hand-hero__title {
  font-family: var(--hand);
  font-size: clamp(34px, 5.4vw, 64px);
  color: var(--ink-dark);
  line-height: 1.2;
  margin: 0 0 18px;
}
.hand-hero__name { color: var(--orange); }
.hand-hero__sub {
  font-family: var(--hand);
  font-size: clamp(26px, 3vw, 40px);
  color: var(--ink);
  margin: 0 0 10px;
  min-height: 1.6em;
}
/* inline-flex 消除「我」与打字内容之间的空白 */
.typing__module { display: inline-flex; align-items: baseline; }
.hand-hero__slogan {
  font-family: "幼圆", "YouYuan", "幼圆体", "Microsoft YaHei", sans-serif;
  color: var(--ink-soft);
  font-size: clamp(21px, 2.2vw, 27px);
  letter-spacing: 2px;
  margin: 0;
}

/* banner：翻转卡片（hover 翻到背面手绘头像） */
.hand-hero__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  perspective: 1400px;
}
.hand-flip {
  width: 100%;
  max-width: 580px;
  transform: rotate(-2deg);
}
.hand-flip__inner {
  position: relative;
  width: 100%;
  aspect-ratio: 1216 / 679;
  transform-style: preserve-3d;
  transition: transform .75s cubic-bezier(.4, .2, .2, 1);
}
.hand-hero__media:hover .hand-flip__inner,
.hand-flip:hover .hand-flip__inner {
  transform: rotateY(180deg);
}
.hand-flip__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.hand-flip__face img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(91, 70, 50, .12));
}
.hand-flip__face--front { transform: rotateY(0deg); }
.hand-flip__face--back { transform: rotateY(180deg); }

@media (max-width: 991.98px) {
  .hand-hero { padding-top: 110px; }
  .hand-hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hand-hero__text { text-align: left; }
  .hand-hero__sub { font-size: clamp(22px, 5.5vw, 30px); }
  .hand-hero__media { order: -1; margin-bottom: 20px; }
  .hand-flip { max-width: 90%; transform: rotate(-1.5deg); }
}

/* =========================================================
   三卡片
   ========================================================= */
.hand-cards-section { padding-top: 40px; padding-bottom: 60px; }
.hand-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.hand-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 616 / 335;
  text-decoration: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  transition: transform .25s ease, filter .25s ease;
}
.hand-card--yellow { background-image: url('/static/img/card-yellow.webp'), url('/static/img/card-yellow.png'); }
.hand-card--green  { background-image: url('/static/img/card-green.webp'),  url('/static/img/card-green.png'); }
.hand-card--orange { background-image: url('/static/img/card-orange.webp'), url('/static/img/card-orange.png'); }

.hand-card__label {
  font-family: var(--hand);
  font-size: clamp(24px, 2.6vw, 36px);
  color: var(--ink-dark);
  letter-spacing: 4px;
  padding-bottom: 6%;
}
.hand-card--green .hand-card__label { color: #FFF7E8; }
.hand-card--orange .hand-card__label { color: #FFF7E8; }

.hand-card:hover {
  transform: rotate(-1.5deg) scale(1.03);
  filter: drop-shadow(0 8px 20px rgba(91, 70, 50, .18));
}

@media (max-width: 991.98px) {
  .hand-cards { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .hand-card__label { font-size: clamp(36px, 11vw, 46px); }
}

/* =========================================================
   底部标语
   ========================================================= */
.hand-slogan {
  padding: 60px 0 80px;
  text-align: center;
}
.hand-slogan__text {
  font-family: var(--hand);
  color: var(--ink);
  font-size: clamp(20px, 2.4vw, 28px);
  margin: 0 0 16px;
  letter-spacing: 4px;
}
.hand-slogan__line {
  width: 140px;
  height: 6px;
  margin: 0 auto;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 6" preserveAspectRatio="none"><path d="M2 4 Q14 1,28 3 T56 4 T84 3 T98 4" stroke="%23E8703A" stroke-width="2.5" fill="none" stroke-linecap="round"/></svg>') no-repeat center/100% 100%;
}

/* =========================================================
   关于我 / 简历页
   ========================================================= */
.hand-page-head { padding-bottom: 10px; }
.hand-section { padding: 46px 0; }

/* 手绘纸张卡片 */
.hand-card-paper {
  background: #FFFDF6;
  border: 1px dashed rgba(91, 70, 50, .28);
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(91, 70, 50, .06);
  padding: clamp(22px, 3.5vw, 40px);
}

/* 章节标题：手写体 + 手绘下划线 */
.hand-section-title { margin-bottom: 26px; }
.hand-section-title h3 {
  display: inline-block;
  font-family: var(--hand);
  font-size: clamp(26px, 3vw, 34px);
  color: var(--ink-dark);
  margin: 0;
  padding-bottom: 10px;
  position: relative;
}
.hand-section-title h3::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -4px;
  height: 8px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 8" preserveAspectRatio="none"><path d="M2 5 Q14 1,28 4 T56 5 T84 4 T98 5" stroke="%23E8703A" stroke-width="3" fill="none" stroke-linecap="round"/></svg>') no-repeat center/100% 100%;
  pointer-events: none;
}

/* 关于我：个人档案 */
.hand-about { padding-top: 10px; padding-bottom: 20px; }
.hand-about__profile {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
}
.hand-about__avatar {
  background: #fff;
  border: 2px dashed var(--orange);
  border-radius: 14px;
  padding: 16px 20px;
  transform: rotate(-2deg);
  box-shadow: 0 4px 14px rgba(91, 70, 50, .08);
}
.hand-about__avatar img {
  display: block;
  width: 100%;
  height: auto;
}
.hand-about__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hand-about__name {
  font-family: var(--hand);
  font-size: clamp(34px, 4vw, 48px);
  color: var(--ink-dark);
  margin: 0;
}
.hand-about__badge,
.hand-resume__badge {
  font-size: 13px;
  color: var(--orange);
  border: 1px dashed var(--orange);
  border-radius: 999px;
  padding: 3px 12px;
  white-space: nowrap;
}
.hand-about__role,
.hand-about__grad {
  font-size: 17px;
  color: var(--ink);
  margin: 10px 0 0;
}
.hand-about__role i,
.hand-about__grad i { color: var(--orange); margin-right: 6px; }

.hand-about__intro {
  margin-top: 26px;
  background: #FFFDF6;
  border: 1px dashed rgba(91, 70, 50, .22);
  border-radius: 10px;
  padding: 18px 24px;
}
.hand-about__intro p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
  margin: 0;
}

/* 联系芯片（点击复制） */
.hand-about__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.hand-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: var(--ink);
  border: 1px dashed rgba(91, 70, 50, .35);
  border-radius: 999px;
  padding: 6px 14px;
  background: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.hand-chip i { color: var(--orange); }
.hand-chip:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: #FFF3E6;
  transform: translateY(-1px);
}
.hand-chip--static { cursor: default; }
.hand-chip--static:hover {
  color: var(--ink);
  border-color: rgba(91, 70, 50, .35);
  background: #fff;
  transform: none;
}

/* 关于我：教育卡片 */
.hand-edu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.hand-edu-card {
  background: #FFFDF6;
  border: 1px dashed rgba(91, 70, 50, .28);
  border-radius: 10px;
  padding: 22px 26px;
  box-shadow: 0 4px 18px rgba(91, 70, 50, .05);
}
.hand-edu-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hand-edu-card__school {
  font-family: var(--hand);
  font-size: 24px;
  color: var(--ink-dark);
}
.hand-edu-card__degree {
  font-size: 15px;
  color: var(--ink);
  margin: 8px 0;
}
.hand-edu-card__meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-soft);
}
.hand-edu-card__meta i { color: var(--orange); margin-right: 4px; }
.hand-edu-card__awards {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-soft);
  border-top: 1px dashed rgba(91, 70, 50, .2);
  padding-top: 10px;
}
.hand-edu-card__awards i { color: var(--yellow); margin-right: 5px; }

/* 关于我：技能卡片 */
.hand-skill-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.hand-skill-card {
  background: #FFFDF6;
  border: 1px dashed rgba(91, 70, 50, .25);
  border-radius: 10px;
  padding: 18px 22px;
}
.hand-skill-card__name {
  display: inline-block;
  font-family: var(--hand);
  font-size: 20px;
  color: var(--orange);
  margin-bottom: 10px;
  border-bottom: 2px dotted rgba(232, 112, 58, .5);
  padding-bottom: 4px;
}
.hand-skill-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.hand-skill-card li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink);
}
.hand-skill-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  background: var(--orange);
  border-radius: 2px;
  transform: rotate(45deg);
}

/* 简历页：头部 */
.hand-resume { padding-top: 10px; padding-bottom: 20px; }
.hand-resume__head-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.hand-resume__id { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hand-resume__name {
  font-family: var(--hand);
  font-size: clamp(40px, 5vw, 56px);
  color: var(--ink-dark);
  margin: 0;
}
.hand-resume__intention {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hand-resume__role { font-size: 18px; color: var(--ink-dark); font-weight: 600; }
.hand-resume__grad { font-size: 14px; color: var(--ink-soft); }

/* 教育背景（简历行式） */
.hand-edu__row {
  background: #FFFDF6;
  border: 1px dashed rgba(91, 70, 50, .25);
  border-radius: 10px;
  padding: 18px 24px;
  margin-bottom: 14px;
}
.hand-edu__main { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hand-edu__school { font-family: var(--hand); font-size: 22px; color: var(--ink-dark); }
.hand-edu__degree { font-size: 15px; color: var(--ink); }
.hand-edu__tag {
  font-size: 12px;
  color: var(--orange);
  border: 1px dashed var(--orange);
  border-radius: 999px;
  padding: 2px 10px;
}
.hand-edu__meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}
.hand-edu__meta i { color: var(--orange); margin-right: 4px; }
.hand-edu__awards { margin-top: 10px; font-size: 13px; color: var(--ink-soft); }
.hand-edu__awards i { color: var(--yellow); margin-right: 5px; }

/* 专业技能（简历行式） */
.hand-skill__row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(91, 70, 50, .18);
}
.hand-skill__row:last-child { border-bottom: none; }
.hand-skill__name {
  font-family: var(--hand);
  font-size: 20px;
  color: var(--orange);
}
.hand-skill__items { margin: 0; padding: 0; list-style: none; }
.hand-skill__items li {
  position: relative;
  padding-left: 16px;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--ink);
}
.hand-skill__items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 2px;
  transform: rotate(45deg);
}

/* 实习经历 */
.hand-exp {
  background: #FFFDF6;
  border: 1px dashed rgba(91, 70, 50, .28);
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(91, 70, 50, .05);
  padding: clamp(18px, 2.5vw, 30px);
  margin-bottom: 24px;
}
.hand-exp__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(91, 70, 50, .25);
}
.hand-exp__company {
  font-family: var(--hand);
  font-size: clamp(22px, 2.6vw, 28px);
  color: var(--ink-dark);
}
.hand-exp__company i { color: var(--orange); margin-right: 8px; }
.hand-exp__role {
  font-size: 14px;
  color: var(--orange);
  border: 1px dashed var(--orange);
  border-radius: 999px;
  padding: 2px 10px;
  margin-left: 10px;
  vertical-align: middle;
}
.hand-exp__period { font-size: 13px; color: var(--ink-soft); }
.hand-exp__period i { color: var(--orange); margin-right: 4px; }

.hand-project {
  margin-top: 18px;
  padding-left: 14px;
  border-left: 2px dashed rgba(232, 112, 58, .45);
}
.hand-project__title {
  font-size: 17px;
  color: var(--orange);
  margin: 0 0 8px;
  font-weight: 600;
}
.hand-project__tech {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.hand-project__bg {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink);
  margin: 0 0 10px;
}
.hand-project__label {
  display: inline-block;
  font-size: 13px;
  color: var(--green);
  font-weight: 600;
  border: 1px dashed rgba(143, 174, 107, .6);
  border-radius: 999px;
  padding: 1px 10px;
  margin-bottom: 6px;
}
.hand-project__bg .hand-project__label { margin-right: 8px; }
.hand-project__ach ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.hand-project__ach li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink);
}
.hand-project__ach li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  background: var(--yellow);
  border-radius: 2px;
  transform: rotate(45deg);
}

/* 自我评价 */
.hand-selfeval {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hand-selfeval li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink);
  margin-bottom: 12px;
}
.hand-selfeval li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--orange);
  font-size: 15px;
}

/* 关于页 CTA 按钮 */
.hand-about__cta { margin-top: 30px; text-align: center; }
.hand-btn {
  display: inline-block;
  font-family: var(--hand);
  font-size: 20px;
  color: var(--orange);
  border: 2px dashed var(--orange);
  border-radius: 999px;
  padding: 10px 34px;
  background: #FFFDF6;
  text-decoration: none;
  transition: all .25s ease;
}
.hand-btn:hover {
  background: var(--orange);
  color: #fff;
  transform: rotate(-1deg);
}

@media (max-width: 991.98px) {
  .hand-about__profile { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .hand-about__head { justify-content: center; }
  .hand-about__chips { justify-content: center; }
  .hand-resume__intention { text-align: center; width: 100%; }
  .hand-edu-grid,
  .hand-skill-grid { grid-template-columns: 1fr; }
  .hand-skill__row { grid-template-columns: 1fr; gap: 6px; }
}

/* =========================================================
   我的博客
   ========================================================= */
.hand-blog-head {
  padding-top: clamp(80px, 9vh, 100px);
  padding-bottom: 8px;
}
.hand-blog-head__inner {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}
.hand-blog-head__name {
  font-family: var(--hand);
  font-size: clamp(34px, 4.5vw, 52px);
  color: var(--ink-dark);
  margin: 0 0 6px;
}
.hand-blog-head__sub {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 10px;
}
.hand-blog-head__line {
  width: 120px;
  height: 8px;
  margin: 0 auto 18px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 8" preserveAspectRatio="none"><path d="M2 5 Q14 1,28 4 T56 5 T84 4 T98 5" stroke="%23E8703A" stroke-width="3" fill="none" stroke-linecap="round"/></svg>') no-repeat center/100% 100%;
}
.hand-blog-head .hand-cat-filter { justify-content: center; }
.hand-blog-body { padding-top: 20px !important; }

.hand-cat-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.hand-cat {
  padding: 6px 18px;
  font-size: 14px;
  color: var(--ink);
  border: 1px dashed rgba(91, 70, 50, .4);
  border-radius: 999px;
  background: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: all .2s ease;
}
.hand-cat:hover { border-color: var(--orange); color: var(--orange); }
.hand-cat.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.hand-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.hand-post {
  display: flex;
  flex-direction: column;
  background: #FFFDF6;
  border: 1px dashed rgba(91, 70, 50, .28);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(91, 70, 50, .05);
  transition: transform .25s ease, box-shadow .25s ease;
}
.hand-post:hover {
  transform: translateY(-4px) rotate(-.5deg);
  box-shadow: 0 10px 26px rgba(91, 70, 50, .14);
}
.hand-post__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #F2EAD8;
}
.hand-post__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform .45s ease;
}
.hand-post:hover .hand-post__media img { transform: scale(1.08); }
.hand-post__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: var(--hand);
  font-size: 56px;
  color: var(--ink-soft);
}
.hand-post__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px 20px 22px;
}
.hand-post__date {
  font-size: 12px;
  color: var(--ink-soft);
}
.hand-post__date i { color: var(--orange); margin-right: 5px; }
.hand-post__title {
  font-family: var(--hand);
  font-size: 22px;
  color: var(--ink-dark);
  line-height: 1.3;
  margin: 8px 0 6px;
}
.hand-post__title a { color: var(--ink-dark); text-decoration: none; transition: color .2s ease; }
.hand-post__title a:hover { color: var(--orange); }
.hand-post__text {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0;
}
.hand-blog-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ink-soft);
  padding: 40px 0;
  font-size: 16px;
}

/* 作品页卡片：绿色点缀（与绿色卡片呼应） */
.hand-post--work:hover { box-shadow: 0 10px 26px rgba(143, 174, 107, .22); }
.hand-post--work .hand-post__title a:hover { color: var(--green); }

.hand-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.hand-page {
  min-width: 38px;
  padding: 8px 12px;
  text-align: center;
  font-size: 14px;
  color: var(--ink);
  border: 1px dashed rgba(91, 70, 50, .4);
  border-radius: 999px;
  background: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: all .2s ease;
}
.hand-page:hover { border-color: var(--orange); color: var(--orange); }
.hand-page.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

@media (max-width: 991.98px) {
  .hand-blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
  .hand-blog-grid { grid-template-columns: 1fr; }
}
