@charset "UTF-8";
/* ============================================================
 * 霍州比特人博客 · 二版组件样式（依赖 theme.css / site.css / skins.css）
 * 1 导航下拉 · 2 倒计时与编码小人 · 3 科技栏头 · 4 软件网格
 * 5 霍州影像 · 6 关于我 · 7 动态页脚与皮肤切换 · 8 文章动作
 * 9 赞赏/分享弹窗 · 10 评论 · 11 归档 · 12 文档侧栏修复
 * ============================================================ */

/* ---------- 1. 顶部导航下拉 ---------- */
.main-nav { gap: 0; }
.nav-item { position: relative; display: inline-flex; align-items: center; }
.nav-item > a { display: inline-flex; align-items: center; gap: 4px; }
.nav-caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .45; transition: transform .2s var(--ease); }
.nav-item.open .nav-caret, .nav-item:hover .nav-caret { transform: rotate(180deg); opacity: .9; }
.nav-drop {
  position: absolute; top: calc(100% + 9px); left: -6px; z-index: 65;
  min-width: 208px; max-width: 260px; padding: 9px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.97);
  transform-origin: top left; transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.nav-drop::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-drop::after { content: "QUICK LINKS / 子目录"; display: block; padding: 4px 10px 8px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em; color: var(--text-3); border-bottom: 1px dashed var(--line); margin-bottom: 5px; }
.nav-drop a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 9px; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.nav-drop a + a { margin-top: 1px; }
.nav-drop a:hover, .nav-drop a:focus-visible { background: var(--brand-soft); color: var(--brand); }
.nav-drop a i { font-style: normal; font-size: 11px; color: var(--text-3); }
.nav-drop a:hover i { color: var(--brand); }
.nav-item:hover .nav-drop, .nav-item:focus-within .nav-drop, .nav-item.open .nav-drop { opacity: 1; visibility: visible; transform: none; }
.mobile-nav .m-subs { display: none; flex-wrap: wrap; gap: 6px; padding: 0 12px 10px; }
.mobile-nav .m-subs a { display: inline-flex; padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; font-size: 11.5px; color: var(--text-2); background: var(--surface-2); }
.mobile-nav .m-subs a:hover { color: var(--brand); border-color: var(--brand); }
.mobile-nav .m-subs a + a { border-top: 1px solid var(--line); border-radius: 999px; }
.mobile-nav .m-subs.open { display: flex; }
.m-nav-toggle { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-left: auto; border: 1px solid var(--line); border-radius: 7px; background: transparent; color: var(--text-3); font-size: 10px; }

/* ---------- 2. 倒计时条 + 不停写代码的小人 ---------- */
.notice-inner { gap: 12px; flex-wrap: wrap; }
.notice-welcome { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; letter-spacing: .02em; }
.notice-welcome::before { content: "✦"; opacity: .8; }
.notice-sep { opacity: .45; }
.coder { width: 96px; height: 32px; flex: none; filter: drop-shadow(0 2px 4px rgba(0,0,0,.18)); }
.coder .scr { fill: rgba(255,255,255,.16); stroke: rgba(255,255,255,.85); stroke-width: 1.4; }
.coder .line { fill: #fff; opacity: .85; }
.coder .line-roll { animation: coderScroll 2.6s linear infinite; }
.coder .line:nth-child(2) { opacity: .55; }
.coder .caret { fill: #ffe08a; animation: coderBlink .7s steps(1) infinite; }
.coder .head { fill: #fff; animation: coderNod 2.2s ease-in-out infinite; transform-origin: 63px 17px; }
.coder .body { fill: #fff; }
.coder .arm-l { stroke: #fff; stroke-width: 2.4; stroke-linecap: round; animation: coderType .38s ease-in-out infinite alternate; transform-origin: 66px 26px; }
.coder .arm-r { stroke: #fff; stroke-width: 2.4; stroke-linecap: round; animation: coderType .38s .19s ease-in-out infinite alternate-reverse; transform-origin: 70px 26px; }
.coder .spark { fill: #ffe08a; animation: coderBlink 1.4s steps(1) infinite; }
@keyframes coderType { from { transform: translateY(-1.5px) rotate(-6deg); } to { transform: translateY(1px) rotate(6deg); } }
@keyframes coderNod { 0%,100% { transform: rotate(0); } 50% { transform: rotate(5deg); } }
@keyframes coderBlink { 50% { opacity: 0; } }
@keyframes coderScroll { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(-4px); opacity: .7; } 100% { transform: translateY(-4px); opacity: 0; } }
@media (max-width: 620px) {
  .coder, .notice-sep, .notice-inner .mono { display: none; }
  .notice-inner { display: block; font-size: 11.5px; line-height: 1.55; padding: 6px 12px; }
  .notice-inner .notice-dot { display: inline-block; vertical-align: middle; margin-right: 6px; }
  .notice-inner strong { font-size: 12.5px; }
  .notice-welcome { white-space: nowrap; }
}

/* ---------- 3. 科技感动态栏头 ---------- */
.tech-hero { isolation: isolate; background: linear-gradient(120deg, var(--surface), var(--surface-2)); }
.tech-layers { position: absolute !important; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.tech-layers .t-grid { position: absolute; inset: -40%; opacity: .5;
  background-image: linear-gradient(var(--brand-soft) 1px, transparent 1px), linear-gradient(90deg, var(--brand-soft) 1px, transparent 1px);
  background-size: 30px 30px; transform: perspective(320px) rotateX(48deg) translateY(-8%);
  animation: techGrid 14s linear infinite; mask-image: radial-gradient(ellipse at 60% 30%, #000 10%, transparent 70%); }
.tech-layers .t-sweep { position: absolute; top: -60%; left: -30%; width: 42%; height: 220%; transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--brand-2) 18%, transparent), transparent);
  animation: techSweep 7s ease-in-out infinite; }
.tech-layers .t-orb { position: absolute; border-radius: 50%; filter: blur(22px); opacity: .5; animation: techFloat 9s ease-in-out infinite; }
.tech-layers .t-orb.a { width: 190px; height: 190px; right: 6%; top: -70px; background: var(--brand); }
.tech-layers .t-orb.b { width: 150px; height: 150px; right: 22%; bottom: -90px; background: var(--brand-2); animation-delay: -3s; }
.tech-layers .t-orb.c { width: 110px; height: 110px; left: 32%; top: -60px; background: var(--brand-3); animation-delay: -6s; }
.tech-layers .t-dots { position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--brand) 1px, transparent 1.4px);
  background-size: 46px 46px; opacity: .2; animation: techDots 12s linear infinite; }
.tech-layers .t-scanline { position: absolute; left: 0; right: 0; height: 2px; top: 0;
  background: linear-gradient(90deg, transparent, var(--brand-2), transparent); opacity: .7;
  animation: techScan 5.5s linear infinite; }
@keyframes techGrid { to { background-position: 30px 30px; } }
@keyframes techSweep { 0%, 8% { left: -40%; } 55%, 100% { left: 120%; } }
@keyframes techFloat { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-24px, 18px) scale(1.12); } }
@keyframes techDots { to { background-position: 46px 46px; } }
@keyframes techScan { 0% { top: 0; opacity: 0; } 12% { opacity: .7; } 88% { opacity: .7; } 100% { top: 100%; opacity: 0; } }
.tech-hero > :not(.tech-layers) { position: relative; z-index: 1; }
.tech-hero .page-hero-deco { z-index: 0 !important; }
.hero-tech-tag { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 3px 10px; border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); border-radius: 999px; background: var(--brand-soft); font-family: var(--font-mono); font-size: 10.5px; color: var(--brand); }
.hero-tech-tag i { width: 5px; height: 5px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 8px var(--brand-2); animation: pulse 1.8s infinite; }

/* ---------- 4. 软件栏目网格 ---------- */
.software-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.software-card { display: flex; flex-direction: column; overflow: hidden; }
.software-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.software-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.software-card:hover .software-cover img { transform: scale(1.06); }
.software-cover .sw-badge { position: absolute; left: 12px; top: 12px; padding: 3px 9px; border-radius: 999px; background: rgba(10, 18, 35, .55); backdrop-filter: blur(6px); color: #fff; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; }
.software-body { padding: 16px 17px 18px; display: flex; flex-direction: column; flex: 1; }
.software-body h3 { font-size: 16px; line-height: 1.45; margin-bottom: 8px; }
.software-card:hover h3 { color: var(--brand); }
.software-body p { font-size: 12.8px; line-height: 1.75; color: var(--text-2); margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.software-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3); }
.software-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.software-chips .tag { font-size: 10px; padding: 1px 7px; }
@media (min-width: 620px) { .software-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .software-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- 5. 霍州影像专题 ---------- */
.hz-cinema { position: relative; isolation: isolate; overflow: hidden; min-height: 340px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 4px;
  border-radius: var(--radius-lg); border: 1px solid var(--line); margin-bottom: 22px;
  background: #0b1e3c url('../img/huozhou-scene.svg') center/cover no-repeat; color: #fff; padding: 34px 26px; }
.hz-cinema::before { content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(90deg, rgba(6, 18, 36, .88), rgba(6, 18, 36, .42) 55%, rgba(6, 18, 36, .12)); }
.hz-cinema::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 4px); animation: hzFlicker 7s linear infinite; }
.hz-cinema > * { position: relative; z-index: 1; }
.hz-cinema h1 { font-size: clamp(27px, 5.6vw, 44px); letter-spacing: -.03em; margin: 12px 0 10px; text-shadow: 0 3px 18px rgba(0,0,0,.45); }
.hz-cinema h1 em { font-style: normal; background: linear-gradient(100deg, #ffe6a7, #8ff0e0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hz-cinema p { color: rgba(255,255,255,.88); font-size: 14px; max-width: 42em; margin: 0 0 16px; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.hz-cinema .hz-badges { display: flex; flex-wrap: wrap; gap: 7px; }
.hz-cinema .hz-badges span { padding: 4px 11px; border: 1px solid rgba(255,255,255,.32); border-radius: 999px; background: rgba(255,255,255,.12); backdrop-filter: blur(6px); font-family: var(--font-mono); font-size: 10.5px; }
.hz-cinema .hz-sun { position: absolute; z-index: 0; right: 16%; top: 22%; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, rgba(255,214,150,.75), rgba(255,150,90,.12) 65%, transparent 72%); animation: hzSun 8s ease-in-out infinite; }
@keyframes hzSun { 0%,100% { transform: translateY(0) scale(1); opacity: .9; } 50% { transform: translateY(-10px) scale(1.08); opacity: 1; } }
@keyframes hzFlicker { to { background-position: 0 40px; } }
.hz-letter { position: relative; padding: 22px 24px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: linear-gradient(135deg, var(--surface), var(--surface-2)); font-size: 14.5px; line-height: 2; color: var(--text-2); }
.hz-letter::before { content: "「"; position: absolute; left: 6px; top: 0; font-size: 44px; color: var(--brand-soft); }
.media-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.media-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.media-frame { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0d1726; }
.media-frame img, .media-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-frame a { display: block; height: 100%; }
.media-frame img { transition: transform .6s var(--ease); }
.media-card:hover .media-frame img { transform: scale(1.05); }
.media-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 13px 11px; color: #fff; font-size: 12px; background: linear-gradient(transparent, rgba(6, 14, 28, .85)); pointer-events: none; }
.media-cap b { display: block; font-size: 13.5px; }
.media-cap small { opacity: .8; }
.media-play { position: absolute; left: 50%; top: 45%; transform: translate(-50%,-50%); width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.9); color: #0d1726; font-size: 17px; pointer-events: none; box-shadow: 0 6px 22px rgba(0,0,0,.3); }
.media-body { padding: 12px 14px 14px; }
.media-body p { font-size: 12.3px; color: var(--text-2); line-height: 1.7; margin: 0; }
@media (min-width: 620px) { .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .media-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- 6. 关于我 / 照片墙 ---------- */
.about-hero { position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line); padding: 26px 22px; margin-bottom: 20px;
  background: linear-gradient(120deg, var(--surface), var(--surface-2)); }
.about-hero .about-head { position: relative; z-index: 1; }
.avatar-photo { width: 78px !important; height: 78px !important; border-radius: 20px !important; object-fit: cover; flex: none; box-shadow: 0 10px 26px var(--brand-glow); border: 2px solid var(--surface); }
.about-name { font-size: 24px; }
.about-name small { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-family: var(--font-mono); font-size: 10.5px; vertical-align: 3px; }
.photo-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.photo-card { overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.photo-card img { width: 100%; height: 190px; object-fit: cover; transition: transform .5s var(--ease); }
.photo-card:hover img { transform: scale(1.05); }
.photo-card .pc-body { padding: 11px 13px 13px; }
.photo-card b { display: block; font-size: 13.5px; margin-bottom: 3px; }
.photo-card p { font-size: 12px; color: var(--text-2); line-height: 1.7; margin: 0; }
@media (min-width: 620px) { .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- 7. 动态页脚 / 二维码 / 皮肤切换 ---------- */
.site-footer { position: relative; overflow: hidden; border-top: 0;
  background: linear-gradient(115deg, #f2f7ff 0%, #f6f1ff 42%, #eefaf7 100%); }
html[data-theme="dark"] .site-footer { background: linear-gradient(115deg, #0c1530 0%, #1a1236 45%, #082824 100%); }
.footer-fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.footer-fx .f-grid { position: absolute; inset: -30%; opacity: .5;
  background-image: linear-gradient(color-mix(in srgb, var(--brand) 16%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--brand) 16%, transparent) 1px, transparent 1px);
  background-size: 34px 34px; animation: fGrid 18s linear infinite; mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 72%); }
.footer-fx .f-orb { position: absolute; border-radius: 50%; filter: blur(38px); opacity: .38; animation: techFloat 11s ease-in-out infinite; }
.footer-fx .f-orb.a { width: 300px; height: 300px; left: -60px; top: -120px; background: var(--brand); }
.footer-fx .f-orb.b { width: 260px; height: 260px; right: 6%; bottom: -140px; background: var(--brand-2); animation-delay: -4s; }
.footer-fx .f-orb.c { width: 200px; height: 200px; left: 45%; top: -100px; background: var(--brand-3); animation-delay: -7s; }
.footer-fx .f-wave { position: absolute; left: -10%; right: -10%; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), var(--brand-2), var(--brand-3), transparent);
  background-size: 200% 100%; animation: fWave 6s linear infinite; }
.footer-fx .f-star { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--brand-2); opacity: .45; animation: fStar 5s ease-in-out infinite; }
.footer-fx .f-star:nth-of-type(1) { left: 12%; top: 30%; }
.footer-fx .f-star:nth-of-type(2) { left: 38%; top: 68%; animation-delay: -1.6s; }
.footer-fx .f-star:nth-of-type(3) { left: 72%; top: 22%; animation-delay: -3.1s; }
.footer-fx .f-star:nth-of-type(4) { left: 88%; top: 60%; animation-delay: -2.2s; }
@keyframes fGrid { to { background-position: 34px 34px; } }
@keyframes fWave { to { background-position: 200% 0; } }
@keyframes fStar { 0%,100% { transform: translateY(0) scale(1); opacity: .25; } 50% { transform: translateY(-12px) scale(1.5); opacity: .85; } }
.site-footer > .wrap { position: relative; z-index: 1; }
.site-footer .footer-bottom { border-top-color: color-mix(in srgb, var(--brand) 18%, var(--line)); }
.footer-qr { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.qr-box { padding: 9px; border-radius: 14px; background: #fff; border: 1px solid rgba(20,40,90,.08); box-shadow: 0 10px 30px rgba(20,40,90,.16); }
.qr-box img, .qr-box svg { display: block; width: 118px; height: 118px; }
.footer-qr .qr-tip { font-size: 11.5px; line-height: 1.6; color: var(--text-2); }
.footer-qr .qr-tip b { color: var(--text); }
.footer-extras { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-block: 16px; border-top: 1px solid color-mix(in srgb, var(--brand) 16%, var(--line)); }
.skin-switcher { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.skin-switcher > span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; color: var(--text-3); margin-right: 3px; }
.skin-dot { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface) 78%, transparent); color: var(--text-2); font-size: 11.5px; transition: all .2s var(--ease); }
.skin-dot i { width: 15px; height: 15px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.skin-dot:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.skin-dot.active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 700; box-shadow: 0 0 0 2px var(--brand-soft); }
.footer-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-shortcuts a { font-size: 11.5px; color: var(--text-2); padding: 4px 9px; border: 1px dashed var(--line-strong); border-radius: 8px; }
.footer-shortcuts a:hover { color: var(--brand); border-color: var(--brand); }
@media (min-width: 860px) { .site-footer .footer-grid { grid-template-columns: 1.5fr .9fr .9fr .8fr 150px; } }

/* ---------- 8. 文章动作：赞赏 + 分享 ---------- */
.article-actions { margin-top: 28px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.action-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.action-row + .action-row { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.action-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); font-family: var(--font-mono); margin-right: 2px; }
.reward-btn { border: 0; color: #fff; background: linear-gradient(120deg, #ff7a45, #ff4d8d 55%, #a855f7); box-shadow: 0 8px 22px rgba(255, 90, 130, .28); animation: rewardGlow 3.2s ease-in-out infinite; }
.reward-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255, 90, 130, .42); }
@keyframes rewardGlow { 0%,100% { box-shadow: 0 8px 22px rgba(255, 90, 130, .26); } 50% { box-shadow: 0 8px 30px rgba(168, 85, 247, .44); } }
.reward-btn svg, .share-btn svg { width: 15px; height: 15px; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--text-2); font-size: 12px; transition: all .2s var(--ease); }
.share-btn:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); transform: translateY(-2px); }
.share-btn.primary { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); background: var(--brand-soft); }
.share-btn .ico { width: 17px; height: 17px; border-radius: 5px; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #fff; font-family: var(--font-mono); }
.ico.wechat { background: #07c160; } .ico.weibo { background: #e6162d; } .ico.qq { background: #12b7f5; } .ico.qzone { background: #fdbe2d; }
.ico.zhihu { background: #0084ff; } .ico.douban { background: #2e963d; } .ico.mail { background: #6b7a99; }
.ico.x { background: #111827; } .ico.fb { background: #1877f2; } .ico.in { background: #0a66c2; } .ico.tg { background: #229ed9; } .ico.wa { background: #25d366; } .ico.reddit { background: #ff4500; }
.share-divider { width: 1px; height: 20px; background: var(--line-strong); margin: 0 3px; }

/* ---------- 9. 弹窗：赞赏 / 微信分享 ---------- */
.reward-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.reward-qr { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); text-align: center; }
.reward-qr img { width: 100%; max-width: 190px; margin: 0 auto 10px; border-radius: 8px; background: #fff; }
.reward-qr b { display: block; font-size: 13.5px; margin-bottom: 3px; }
.reward-qr small { color: var(--text-3); font-size: 11px; }
.reward-note { margin: 14px 0 0; font-size: 12.5px; line-height: 1.8; color: var(--text-2); text-align: center; }
.wx-share { text-align: center; }
.wx-share .wx-qr { display: inline-block; padding: 12px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-sm); margin-bottom: 12px; }
.wx-share .wx-qr svg, .wx-share .wx-qr img { width: 190px; height: 190px; display: block; }
.wx-share p { font-size: 12.5px; color: var(--text-2); margin: 0; }
.modal-mask .modal-close { position: relative; z-index: 2; }
.hz-toast { position: fixed; left: 50%; bottom: 30px; z-index: 200; transform: translate(-50%, 14px); padding: 10px 18px; border-radius: 999px; background: rgba(18, 26, 45, .92); color: #fff; font-size: 13px; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: all .25s var(--ease); }
.hz-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 10. 评论区 ---------- */
.comment-panel { margin-top: 30px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.comment-panel h2 { font-size: 18px; margin-bottom: 4px; }
.comment-panel .cp-sub { font-size: 12px; color: var(--text-3); margin: 0 0 18px; }
.comment-form { display: grid; gap: 10px; }
.comment-form .cf-row { display: flex; flex-wrap: wrap; gap: 10px; }
.comment-form input, .comment-form textarea { width: 100%; padding: 10px 13px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface-2); outline: none; font-size: 13.5px; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.comment-form input.nick { width: auto; flex: 1; min-width: 170px; }
.comment-form textarea { min-height: 96px; resize: vertical; line-height: 1.7; }
.comment-form .cf-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.comment-form .cf-hint { font-size: 11.5px; color: var(--text-3); }
.comment-form .hp { position: absolute; left: -9999px; }
.comment-list { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line); }
.comment-item { display: flex; gap: 11px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.comment-item:last-child { border-bottom: 0; }
.comment-item .ci-avatar { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-3)); color: #fff; font-size: 14px; font-weight: 700; }
.comment-item .ci-body { min-width: 0; flex: 1; }
.comment-item .ci-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; font-size: 12px; }
.comment-item .ci-head b { font-size: 13px; }
.comment-item .ci-head time { color: var(--text-3); font-family: var(--font-mono); font-size: 10.5px; }
.comment-item p { margin: 4px 0 0; font-size: 13.3px; line-height: 1.8; color: var(--text-2); white-space: pre-wrap; word-break: break-word; }
.comment-empty { font-size: 12.5px; color: var(--text-3); text-align: center; padding: 16px 0; }
.comment-msg { font-size: 12.5px; margin-top: 10px; color: var(--brand); min-height: 18px; }

/* 文章正文里的照片与视频 */
.article-body figure.article-figure { margin: 20px 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.article-body figure.article-figure img { width: 100%; max-height: 460px; object-fit: cover; display: block; }
.article-body figure.article-figure figcaption { padding: 9px 14px; font-size: 12px; color: var(--text-3); border-top: 1px solid var(--line); }
.article-body video { display: block; background: #0d1726; box-shadow: var(--shadow-sm); }
.article-body figure.article-figure img[src*="meatpie"] { max-height: 520px; object-position: center 42%; }

/* ---------- 11. 年份 + 标签归档页 ---------- */
.archive-filter { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 18px; }
.archive-filter .af-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.archive-filter .af-row + .af-row { margin-top: 13px; padding-top: 13px; border-top: 1px dashed var(--line); }
.archive-filter .af-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--text-3); min-width: 58px; }
.af-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--text-2); font-size: 12.5px; }
.af-chip:hover { border-color: var(--brand); color: var(--brand); }
.af-chip.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.af-chip small { opacity: .65; font-family: var(--font-mono); font-size: 10px; }
.archive-group { margin-top: 26px; }
.archive-year { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.archive-year b { font-family: var(--font-mono); font-size: 24px; color: var(--brand); }
.archive-year .line { flex: 1; height: 1px; background: var(--line); }
.archive-year small { font-size: 11.5px; color: var(--text-3); }
.archive-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; }

/* ---------- 12. 文档页左侧固定条 ---------- */
@media (min-width: 1080px) {
  .doc-layout { align-items: start; }
  .doc-side { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; padding-right: 4px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
  .doc-side::-webkit-scrollbar { width: 5px; }
  .doc-side::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 5px; }
  .doc-side .toc { position: static; }
}

/* ---------- 13. 代码块更接近 Markdown 阅读体验 ---------- */
.cb { box-shadow: var(--shadow-sm); }
.cb-head { background: linear-gradient(90deg, var(--surface-2), var(--surface)); }
.cb-lang { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--text-2); }
.cb-lang::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.cb pre { max-height: 460px; overflow: auto; }
.cb pre::-webkit-scrollbar { height: 7px; width: 7px; }
.cb pre::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 6px; }

/* ---------- 14. 归档/独立页的简易头部 ---------- */
.mini-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.mini-header .wrap { height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mini-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.mini-nav a { padding: 6px 10px; border-radius: 8px; font-size: 13px; color: var(--text-2); }
.mini-nav a:hover, .mini-nav a.on { background: var(--brand-soft); color: var(--brand); }
.mini-foot { margin-top: 40px; padding: 22px 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-3); }

@media (prefers-reduced-motion: reduce) {
  .coder *, .tech-layers *, .footer-fx *, .hz-cinema::after, .reward-btn { animation: none !important; }
}
