<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <author>
    <name>MC昦坰</name>
  </author>
  <generator uri="https://hexo.io/">Hexo</generator>
  <icon>https://mchaojiongblog.ccwu.cc/favicon.ico</icon>
  <id>https://mchaojiongblog.ccwu.cc/</id>
  <link href="https://mchaojiongblog.ccwu.cc/" rel="alternate"/>
  <link href="https://mchaojiongblog.ccwu.cc/atom.xml" rel="self"/>
  <rights>All rights reserved 2026, MC昦坰</rights>
  <subtitle>欢迎来到MC昦坰博客</subtitle>
  <title>Haojiong's McBlog</title>
  <updated>2026-05-10T13:55:24.479Z</updated>
  <entry>
    <author>
      <name>MC昦坰</name>
    </author>
    <content>
      <![CDATA[<style>/* 轻量重置 · 无性能损耗 */* {box-sizing:border-box;margin:0;padding:0}.mc-egg-container {  margin:20px 0;  font-family:system-ui,"Minecraft","Microsoft YaHei",sans-serif;  max-width:500px;  width:100%;  contain:layout style paint; /* 核心性能：隔离渲染层级 */}/* MC风格按钮 · 高性能hover + 新增呼吸灯特效 */.mc-egg-btn {  background:#5c5c5c;  border:2px solid #2d2d2d;  color:#fff;  padding:9px 18px;  border-radius:5px;  cursor:pointer;  font-size:15px;  transition:all .18s ease;  will-change:transform; /* 动画硬件加速 */  /* 新增呼吸动画 */  animation: mc-breath 2s infinite ease-in-out;  position: relative;  overflow: hidden;}/* 新增按钮流光特效（解锁后） */.mc-egg-btn.disabled::after {  content: '';  position: absolute;  top: 0;  left: -100%;  width: 100%;  height: 100%;  background: linear-gradient(90deg, transparent, rgba(255,215,0,0.2), transparent);  animation: mc-shine 3s infinite linear;}.mc-egg-btn:hover:not(.disabled) {  background:#7a7a7a;  border-color:#4a4a4a;  transform:translateY(-1px);}.mc-egg-btn.disabled {  background:#888;  border-color:#5c5c5c;  cursor:not-allowed;  transform:none;  opacity:.8;  animation: none; /* 解锁后关闭呼吸灯 */}/* 输入框组 */.mc-egg-input-wrap {  margin-top:10px;  display:none;  gap:8px;  width:100%;}.mc-egg-input {  padding:7px 11px;  border:2px solid #333;  border-radius:5px;  font-size:14px;  flex:1;  outline:none;  transition:all .2s ease; /* 新增放大过渡 */}/* 新增输入框聚焦放大特效 */.mc-egg-input:focus {  border-color:#ffd700;  transform: scale(1.02);  box-shadow: 0 0 8px rgba(255,215,0,0.3);}.mc-egg-submit {  background:#43a947;  border:2px solid #2b7a2f;  color:#fff;  padding:7px 14px;  border-radius:5px;  cursor:pointer;  white-space:nowrap;  transition:background .2s;}.mc-egg-submit.disabled {  background:#7ccc80;  border-color:#56b65b;  cursor:not-allowed;}/* 高颜值永久成就弹窗 · 高性能动画 */.mc-achievement-popup {  margin-top:12px;  background:linear-gradient(145deg,#1a1a1a,#252525);  border:3px solid #666;  border-left-color:#888;  border-top-color:#888;  padding:14px;  display:flex;  flex-direction:column;  align-items:center;  gap:10px;  border-radius:8px;  opacity:0;  transform:translateY(-12px);  transition:all .5s cubic-bezier(0.25, 1, 0.5, 1);  box-shadow:0 0 12px rgba(255,215,0,0.25);  width:100%;  text-align:center;  contain:layout style;}.mc-achievement-popup.show {  opacity:1;  transform:translateY(0);  box-shadow:0 0 28px rgba(255,215,0,0.7),0 0 45px rgba(255,215,0,0.4);}.mc-achievement-icon {  border:2px solid #fff;  border-radius:6px;  object-fit:cover;  max-width:130px;  max-height:130px;  box-shadow:0 0 8px rgba(255,215,0,0.5);}/* 新增文字渐显缩放动画 */.mc-achievement-text {  opacity: 0;  transform: scale(0.9);  transition: all 0.4s 0.2s ease forwards;}.mc-achievement-popup.show .mc-achievement-text {  opacity: 1;  transform: scale(1);}.mc-achievement-title {  font-size:19px;  color:#ffd700;  font-weight:500;  margin-bottom:5px;  text-shadow:0 1px 2px rgba(0,0,0,.8);}.mc-achievement-desc {  font-size:15px;  color:#f0f0f0;  opacity:.95;  line-height:1.4;}/* 高性能粒子 · 全屏不阻塞 */.mc-particle-container {  position:fixed;  inset:0;  width:100vw;  height:100vh;  pointer-events:none;  z-index:9998;  overflow:hidden;  contain:layout size;}.mc-particle {  position:absolute;  border-radius:50%;  opacity:.85;  will-change:transform,opacity;  animation:mc-fall 1.8s ease-out forwards, mc-rotate 1.8s linear forwards;}@keyframes mc-fall {  0%{transform:translateY(-8px) scale(1);opacity:.85}  100%{transform:translateY(100vh) scale(.2);opacity:0}}/* 新增粒子旋转动画 */@keyframes mc-rotate {  0%{transform: rotate(0deg);}  100%{transform: rotate(360deg);}}/* 新增按钮呼吸灯动画 */@keyframes mc-breath {  0%,100%{filter: brightness(1);}  50%{filter: brightness(1.15);}}/* 新增按钮流光动画 */@keyframes mc-shine {  0%{left: -100%;}  100%{left: 100%;}}/* 字体懒加载 · 不阻塞首屏 */@font-face {  font-family:"Minecraft";  src:url("https://cdn.jsdelivr.net/gh/chuanshuo520/minecraft-font/Minecraft.ttf") format("truetype");  font-weight:normal;  font-style:normal;  font-display:swap; /* 关键：字体不阻塞渲染 */}/* 极致移动端适配 */@media(max-width:768px){  .mc-egg-container{padding:0 10px;margin:15px 0}  .mc-achievement-popup{padding:11px;gap:8px}  .mc-achievement-icon{max-width:90px;max-height:90px}  .mc-achievement-title{font-size:17px}  .mc-achievement-desc{font-size:14px}  /* 移动端适配新特效 */  .mc-egg-input:focus{transform: scale(1);}}</style><div class="mc-egg-container">  <button class="mc-egg-btn">点我触发彩蛋的大门</button>  <div class="mc-egg-input-wrap">    <input type="text" class="mc-egg-input" placeholder="输入彩蛋密码...">    <button class="mc-egg-submit">确认</button>  </div>  <div class="mc-achievement-popup">    <img class="mc-achievement-icon" src="" alt="成就纪念" loading="lazy">    <div class="mc-achievement-text">      <div class="mc-achievement-title">解锁隐藏成就</div>      <div class="mc-achievement-desc">你找到了专属隐藏彩蛋</div>    </div>  </div></div><p><div class="mc-particle-container"></div></p><audio id="mc-egg-audio" preload="none"><script>// 轻量配置 · 集中管理const CONFIG = {  triggerKeyword: "minecrafthaojiong",  achievementImage: "/img/mc.webp",  title: "永久纪念成就",  desc: "恭喜你解锁彩蛋,永久留存！",  btnText: "你找到彩蛋了😃",  soundUrl: "/o/m.ogg",  particleCount: 35,  cookieKey: "mc_egg_memorial",  cookieYears: 10}// 高性能Cookie工具 · 极简读写const Cookie = {  set(name,val,years){    const exp = new Date();    exp.setFullYear(exp.getFullYear() + years);    document.cookie = `${name}=${val};expires=${exp.toUTCString()};path=/;SameSite=Lax`;  },  get(name){    const v = document.cookie.match('(^|;)\\s*' + name + '\\s*=\\s*([^;]+)');    return v ? v[2] : null;  }}// DOM缓存 · 只查询1次 · 性能核心const DOM = {  btn: document.querySelector(".mc-egg-btn"),  inputWrap: document.querySelector(".mc-egg-input-wrap"),  input: document.querySelector(".mc-egg-input"),  submit: document.querySelector(".mc-egg-submit"),  popup: document.querySelector(".mc-achievement-popup"),  icon: document.querySelector(".mc-achievement-icon"),  title: document.querySelector(".mc-achievement-title"),  desc: document.querySelector(".mc-achievement-desc"),  particleBox: document.querySelector(".mc-particle-container"),  audio: document.getElementById("mc-egg-audio")}// 初始化资源 · 懒加载DOM.icon.src = CONFIG.achievementImage;DOM.title.textContent = CONFIG.title;DOM.desc.textContent = CONFIG.desc;DOM.audio.src = CONFIG.soundUrl;// 状态判断const triggered = Cookie.get(CONFIG.cookieKey) === "1";// 页面加载时直接渲染 · 无闪烁、无抖动if(triggered){  DOM.popup.classList.add("show");  DOM.btn.textContent = CONFIG.btnText;  DOM.btn.disabled = DOM.submit.disabled = DOM.input.disabled = true;  DOM.btn.classList.add("disabled");  DOM.submit.classList.add("disabled");  DOM.inputWrap.style.display = "none";}// 打开输入框DOM.btn.onclick = () => {  if(triggered) return;  DOM.inputWrap.style.display = "flex";  DOM.input.focus();}// 触发彩蛋 · 极简逻辑const trigger = () => {  if(triggered) return alert("彩蛋已永久解锁！");  const val = DOM.input.value.trim();  if(val !== CONFIG.triggerKeyword) return alert("密码错误！"), DOM.input.value = "";  // 永久标记  Cookie.set(CONFIG.cookieKey, "1", CONFIG.cookieYears);  // 更新UI  DOM.btn.textContent = CONFIG.btnText;  DOM.btn.disabled = DOM.submit.disabled = DOM.input.disabled = true;  DOM.btn.classList.add("disabled");  DOM.submit.classList.add("disabled");  DOM.inputWrap.style.display = "none";  DOM.popup.classList.add("show");  // 播放音效  DOM.audio.play().catch(()=>{});  // 高性能粒子  createParticles();}// 提交事件DOM.submit.onclick = trigger;DOM.input.onkeydown = e => e.key === "Enter" && trigger();// 高性能粒子 · 使用DocumentFragment · 只操作1次DOMfunction createParticles(){  const frag = document.createDocumentFragment();  const colors = ["#FFD700","#50C878","#4169E1"];  for(let i=0;i<CONFIG.particleCount;i++){    const p = document.createElement("div");    p.className = "mc-particle";    const size = (Math.random()*4 + 5)|0;    p.style.cssText = `      left:${Math.random()*100}vw;      top:${Math.random()*55}vh;      width:${size}px;      height:${size}px;      animation-duration:${(Math.random()*0.8 + 1).toFixed(2)}s;      background:radial-gradient(circle,${colors[Math.random()*3|0]},transparent);      transform: rotate(${Math.random()*360}deg);    `;    frag.appendChild(p);  }  DOM.particleBox.appendChild(frag);  // 统一清理粒子  setTimeout(()=>DOM.particleBox.innerHTML = "", 2000);}</script>]]>
    </content>
    <id>https://mchaojiongblog.ccwu.cc/posts/2/</id>
    <link href="https://mchaojiongblog.ccwu.cc/posts/2/"/>
    <published>2026-03-25T06:20:52.000Z</published>
    <summary>
      <![CDATA[<style>
/* 轻量重置 · 无性能损耗 */
* {box-sizing:border-box;margin:0;padding:0}
.mc-egg-container {
  margin:20px 0;
  font-family:system-ui,"Minecr]]>
    </summary>
    <title>m</title>
    <updated>2026-05-10T13:55:24.479Z</updated>
  </entry>
  <entry>
    <author>
      <name>MC昦坰</name>
    </author>
    <category term="博客使用指南" scheme="https://mchaojiongblog.ccwu.cc/categories/%E5%8D%9A%E5%AE%A2%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97/"/>
    <category term="入手博客" scheme="https://mchaojiongblog.ccwu.cc/tags/%E5%85%A5%E6%89%8B%E5%8D%9A%E5%AE%A2/"/>
    <content>
      <![CDATA[<h1 id="开篇序言"><a href="#开篇序言" class="headerlink" title="开篇序言"></a>开篇序言</h1><p>欢迎各位Minecraft读者老爷来到<a href="https://minecraftyunyao.github.io">MC昦坰博客</a>。</p><p>不管你是深耕红石指令等领域的大佬还是刚入坑的萌新以及再普通不过的MC玩家，大朋友小朋友们以及纯路人。特别感谢大家抽出宝贵的时间来阅览我的博客。博主MC昦坰在此热烈地欢迎大家的到来。</p><h1 id="关于博主的自我介绍"><a href="#关于博主的自我介绍" class="headerlink" title="关于博主的自我介绍"></a>关于博主的自我介绍</h1><p>天阔坰无边，声起是昦坰。Hello，大家好，这里是MC昦坰。很多朋友可能会好奇”昦坰”二字怎么念 —— 昦 (hào)，如昊天广阔；坰 (jiōng)，是远方原野。象征着无限的探索、自由的创造。也正如MC的世界 ——无边界，不设限，尽可随心而行。这便是我名字的由来。博主是一名痴迷钻研Minecraft的 “奇葩” 玩家，若问我偏爱MC里的什么玩法，还真没法给出单一答案——毕竟人本就该多方面发展，兴趣爱好自然也不必设限。因为我觉得每一位玩家都有自己的玩法，MC的乐趣从不该被单一玩法限制，即使沉迷于一种玩法也没有问题。各有所爱。我们的世界，由我们自己定义。博主也有自己的玩法，也愿意与在读的各位在此分享。</p><h1 id="为什么开这个博客？"><a href="#为什么开这个博客？" class="headerlink" title="为什么开这个博客？"></a>为什么开这个博客？</h1><p>博主开这个博客只是想把多年玩MC的思考、技巧、脑洞好好记录下来还有个人的学习经验与踩过的坑。打造一个能看、能学、能交流的地方。<br>为刚入坑MC的小伙伴提供一些学习的经验，为不同领域的伙伴提供思路及一些学习见解及建议。不整多么复杂晦涩的专业话术，也不为炫耀流量。<br>主打通俗易懂，让各位MC读者伙伴能看懂，能学到有用的知识。不管你是刚接触 MC 的萌新，还是钻研多年的技术大佬，或是只是路过看看的朋友，这里没有门槛，没有高低，只有一起热爱MC的同好。</p><h1 id="这个博客的更新方向及内容？"><a href="#这个博客的更新方向及内容？" class="headerlink" title="这个博客的更新方向及内容？"></a>这个博客的更新方向及内容？</h1><p>这里会记录我在Minecraft里学到的各种经验知识，为了大家能学的方便，博主先从入门开始，在慢慢的进阶。学习的过程就是一步一步来，博主将按不同阶段教大家，大家按顺序学习就可以了。<br>博客的内容将包括①红石②命令③游戏特性④开发相关等<br>当然内容不受到任何局限，不做高冷教程，不写难懂内容，只分享真正好玩、能看懂、用得上的东西。</p><h1 id="关于博客文章的更新频率"><a href="#关于博客文章的更新频率" class="headerlink" title="关于博客文章的更新频率"></a>关于博客文章的更新频率</h1><p>主打『质大于量』！灵感爆棚时 1 天 2 更，常规状态无特殊情况下尽量日更，最慢也会 3 天 1 更，绝不凑数敷衍</p><h1 id="博主的理念"><a href="#博主的理念" class="headerlink" title="博主的理念"></a>博主的理念</h1><p>不局限于单一玩法，只分享真正有趣、有价值的东西。</p><h1 id="互动方式"><a href="#互动方式" class="headerlink" title="互动方式"></a>互动方式</h1><p>博主也是第一次写作,有不足或错误的地方还请大家指出来。欢迎大家在评论区留言交流，分享你的见解也可以聊聊你的游戏日常。有问题或不会的地方欢迎大家随时向博主反馈。博主会耐心解答每一位读者朋友的问题的。另外，<br>博主创建了一个QQ交流群，有兴趣的伙伴可以随时加入。群里面也是一群热爱MC的玩家。在群里你可以找人聊天或者请教问题，也可以找群友一起玩。</p><h1 id="博主的联系方式"><a href="#博主的联系方式" class="headerlink" title="博主的联系方式"></a>博主的联系方式</h1><p>QQ:2893313594<br>QQ聊天群：<br>邮箱：2893313594@qq.com<br>推荐大家直接加我QQ或者聊天群，毕竟博主有时候很忙，如果信息没回就说明博主很忙，这里请大家谅解一下，博主有时间会回复大家的。</p><h1 id="结语"><a href="#结语" class="headerlink" title="结语"></a>结语</h1><p>愿各位都能在MC昦坰博客里，获得快乐，学到有用的知识。最重要的是保持自己的热爱，祝福大家有充实美好的一天。MC昦坰博客将陪伴你走下去。</p><h1 id="结尾彩蛋"><a href="#结尾彩蛋" class="headerlink" title="结尾彩蛋"></a>结尾彩蛋</h1><p><strong>这里给大家留个解密小彩蛋，感谢大家对博主的支持</strong><br><strong>关于彩蛋密码的密码在博主的文章中找哦ദ്ദി˶ｰ̀֊ｰ́ )✧</strong><br><strong>小提示:注意博主写过的所有文章中有“神秘代码”的字段</strong></p><style>/* 轻量重置 · 无性能损耗 */* {box-sizing:border-box;margin:0;padding:0}.mc-egg-container {  margin:20px 0;  font-family:system-ui,"Minecraft","Microsoft YaHei",sans-serif;  max-width:500px;  width:100%;  contain:layout style paint; /* 核心性能：隔离渲染层级 */}/* MC风格按钮 · 高性能hover + 新增呼吸灯特效 */.mc-egg-btn {  background:#5c5c5c;  border:2px solid #2d2d2d;  color:#fff;  padding:9px 18px;  border-radius:5px;  cursor:pointer;  font-size:15px;  transition:all .18s ease;  will-change:transform; /* 动画硬件加速 */  /* 新增呼吸动画 */  animation: mc-breath 2s infinite ease-in-out;  position: relative;  overflow: hidden;}/* 新增按钮流光特效（解锁后） */.mc-egg-btn.disabled::after {  content: '';  position: absolute;  top: 0;  left: -100%;  width: 100%;  height: 100%;  background: linear-gradient(90deg, transparent, rgba(255,215,0,0.2), transparent);  animation: mc-shine 3s infinite linear;}.mc-egg-btn:hover:not(.disabled) {  background:#7a7a7a;  border-color:#4a4a4a;  transform:translateY(-1px);}.mc-egg-btn.disabled {  background:#888;  border-color:#5c5c5c;  cursor:not-allowed;  transform:none;  opacity:.8;  animation: none; /* 解锁后关闭呼吸灯 */}/* 输入框组 */.mc-egg-input-wrap {  margin-top:10px;  display:none;  gap:8px;  width:100%;}.mc-egg-input {  padding:7px 11px;  border:2px solid #333;  border-radius:5px;  font-size:14px;  flex:1;  outline:none;  transition:all .2s ease; /* 新增放大过渡 */}/* 新增输入框聚焦放大特效 */.mc-egg-input:focus {  border-color:#ffd700;  transform: scale(1.02);  box-shadow: 0 0 8px rgba(255,215,0,0.3);}.mc-egg-submit {  background:#43a947;  border:2px solid #2b7a2f;  color:#fff;  padding:7px 14px;  border-radius:5px;  cursor:pointer;  white-space:nowrap;  transition:background .2s;}.mc-egg-submit.disabled {  background:#7ccc80;  border-color:#56b65b;  cursor:not-allowed;}/* 高颜值永久成就弹窗 · 高性能动画 */.mc-achievement-popup {  margin-top:12px;  background:linear-gradient(145deg,#1a1a1a,#252525);  border:3px solid #666;  border-left-color:#888;  border-top-color:#888;  padding:14px;  display:flex;  flex-direction:column;  align-items:center;  gap:10px;  border-radius:8px;  opacity:0;  transform:translateY(-12px);  transition:all .5s cubic-bezier(0.25, 1, 0.5, 1);  box-shadow:0 0 12px rgba(255,215,0,0.25);  width:100%;  text-align:center;  contain:layout style;}.mc-achievement-popup.show {  opacity:1;  transform:translateY(0);  box-shadow:0 0 28px rgba(255,215,0,0.7),0 0 45px rgba(255,215,0,0.4);}.mc-achievement-icon {  border:2px solid #fff;  border-radius:6px;  object-fit:cover;  max-width:130px;  max-height:130px;  box-shadow:0 0 8px rgba(255,215,0,0.5);}/* 新增文字渐显缩放动画 */.mc-achievement-text {  opacity: 0;  transform: scale(0.9);  transition: all 0.4s 0.2s ease forwards;}.mc-achievement-popup.show .mc-achievement-text {  opacity: 1;  transform: scale(1);}.mc-achievement-title {  font-size:19px;  color:#ffd700;  font-weight:500;  margin-bottom:5px;  text-shadow:0 1px 2px rgba(0,0,0,.8);}.mc-achievement-desc {  font-size:15px;  color:#f0f0f0;  opacity:.95;  line-height:1.4;}/* 高性能粒子 · 全屏不阻塞 */.mc-particle-container {  position:fixed;  inset:0;  width:100vw;  height:100vh;  pointer-events:none;  z-index:9998;  overflow:hidden;  contain:layout size;}.mc-particle {  position:absolute;  border-radius:50%;  opacity:.85;  will-change:transform,opacity;  animation:mc-fall 1.8s ease-out forwards, mc-rotate 1.8s linear forwards;}@keyframes mc-fall {  0%{transform:translateY(-8px) scale(1);opacity:.85}  100%{transform:translateY(100vh) scale(.2);opacity:0}}/* 新增粒子旋转动画 */@keyframes mc-rotate {  0%{transform: rotate(0deg);}  100%{transform: rotate(360deg);}}/* 新增按钮呼吸灯动画 */@keyframes mc-breath {  0%,100%{filter: brightness(1);}  50%{filter: brightness(1.15);}}/* 新增按钮流光动画 */@keyframes mc-shine {  0%{left: -100%;}  100%{left: 100%;}}/* 字体懒加载 · 不阻塞首屏 */@font-face {  font-family:"Minecraft";  src:url("https://cdn.jsdelivr.net/gh/chuanshuo520/minecraft-font/Minecraft.ttf") format("truetype");  font-weight:normal;  font-style:normal;  font-display:swap; /* 关键：字体不阻塞渲染 */}/* 极致移动端适配 */@media(max-width:768px){  .mc-egg-container{padding:0 10px;margin:15px 0}  .mc-achievement-popup{padding:11px;gap:8px}  .mc-achievement-icon{max-width:90px;max-height:90px}  .mc-achievement-title{font-size:17px}  .mc-achievement-desc{font-size:14px}  /* 移动端适配新特效 */  .mc-egg-input:focus{transform: scale(1);}}</style><div class="mc-egg-container">  <button class="mc-egg-btn">点我触发彩蛋的大门</button>  <div class="mc-egg-input-wrap">    <input type="text" class="mc-egg-input" placeholder="输入彩蛋密码...">    <button class="mc-egg-submit">确认</button>  </div>  <div class="mc-achievement-popup">    <img class="mc-achievement-icon" src="" alt="成就纪念" loading="lazy">    <div class="mc-achievement-text">      <div class="mc-achievement-title">解锁隐藏成就</div>      <div class="mc-achievement-desc">你找到了专属隐藏彩蛋</div>    </div>  </div></div><p><div class="mc-particle-container"></div></p><audio id="mc-egg-audio" preload="none"><script>// 轻量配置 · 集中管理const CONFIG = {  triggerKeyword: "minecrafthaojiong",  achievementImage: "https://cdn.osyb.cn/gh/minecraftyunyao/haojiongblog-ziyuan/caidan/mc.webp",  title: "永久纪念成就",  desc: "恭喜你解锁彩蛋,永久留存！",  btnText: "你找到彩蛋了😃",  soundUrl: "https://cdn.osyb.cn/gh/minecraftyunyao/haojiongblog-ziyuan/caidan/caidan.ogg",  particleCount: 35,  cookieKey: "mc_egg_memorial",  cookieYears: 10}// 高性能Cookie工具 · 极简读写const Cookie = {  set(name,val,years){    const exp = new Date();    exp.setFullYear(exp.getFullYear() + years);    document.cookie = `${name}=${val};expires=${exp.toUTCString()};path=/;SameSite=Lax`;  },  get(name){    const v = document.cookie.match('(^|;)\\s*' + name + '\\s*=\\s*([^;]+)');    return v ? v[2] : null;  }}// DOM缓存 · 只查询1次 · 性能核心const DOM = {  btn: document.querySelector(".mc-egg-btn"),  inputWrap: document.querySelector(".mc-egg-input-wrap"),  input: document.querySelector(".mc-egg-input"),  submit: document.querySelector(".mc-egg-submit"),  popup: document.querySelector(".mc-achievement-popup"),  icon: document.querySelector(".mc-achievement-icon"),  title: document.querySelector(".mc-achievement-title"),  desc: document.querySelector(".mc-achievement-desc"),  particleBox: document.querySelector(".mc-particle-container"),  audio: document.getElementById("mc-egg-audio")}// 初始化资源 · 懒加载DOM.icon.src = CONFIG.achievementImage;DOM.title.textContent = CONFIG.title;DOM.desc.textContent = CONFIG.desc;DOM.audio.src = CONFIG.soundUrl;// 状态判断const triggered = Cookie.get(CONFIG.cookieKey) === "1";// 页面加载时直接渲染 · 无闪烁、无抖动if(triggered){  DOM.popup.classList.add("show");  DOM.btn.textContent = CONFIG.btnText;  DOM.btn.disabled = DOM.submit.disabled = DOM.input.disabled = true;  DOM.btn.classList.add("disabled");  DOM.submit.classList.add("disabled");  DOM.inputWrap.style.display = "none";}// 打开输入框DOM.btn.onclick = () => {  if(triggered) return;  DOM.inputWrap.style.display = "flex";  DOM.input.focus();}// 触发彩蛋 · 极简逻辑const trigger = () => {  if(triggered) return alert("彩蛋已永久解锁！");  const val = DOM.input.value.trim();  if(val !== CONFIG.triggerKeyword) return alert("密码错误！"), DOM.input.value = "";  // 永久标记  Cookie.set(CONFIG.cookieKey, "1", CONFIG.cookieYears);  // 更新UI  DOM.btn.textContent = CONFIG.btnText;  DOM.btn.disabled = DOM.submit.disabled = DOM.input.disabled = true;  DOM.btn.classList.add("disabled");  DOM.submit.classList.add("disabled");  DOM.inputWrap.style.display = "none";  DOM.popup.classList.add("show");  // 播放音效  DOM.audio.play().catch(()=>{});  // 高性能粒子  createParticles();}// 提交事件DOM.submit.onclick = trigger;DOM.input.onkeydown = e => e.key === "Enter" && trigger();// 高性能粒子 · 使用DocumentFragment · 只操作1次DOMfunction createParticles(){  const frag = document.createDocumentFragment();  const colors = ["#FFD700","#50C878","#4169E1"];  for(let i=0;i<CONFIG.particleCount;i++){    const p = document.createElement("div");    p.className = "mc-particle";    const size = (Math.random()*4 + 5)|0;    p.style.cssText = `      left:${Math.random()*100}vw;      top:${Math.random()*55}vh;      width:${size}px;      height:${size}px;      animation-duration:${(Math.random()*0.8 + 1).toFixed(2)}s;      background:radial-gradient(circle,${colors[Math.random()*3|0]},transparent);      transform: rotate(${Math.random()*360}deg);    `;    frag.appendChild(p);  }  DOM.particleBox.appendChild(frag);  // 统一清理粒子  setTimeout(()=>DOM.particleBox.innerHTML = "", 2000);}</script>]]>
    </content>
    <id>https://mchaojiongblog.ccwu.cc/posts/1/</id>
    <link href="https://mchaojiongblog.ccwu.cc/posts/1/"/>
    <published>2026-03-07T10:25:33.000Z</published>
    <summary>
      <![CDATA[<h1 id="开篇序言"><a href="#开篇序言" class="headerlink" title="开篇序言"></a>开篇序言</h1><p>欢迎各位Minecraft读者老爷来到<a href="https://minecraftyunyao.github.io"]]>
    </summary>
    <title>MC昦坰博客开篇序章</title>
    <updated>2026-05-10T13:55:24.479Z</updated>
  </entry>
</feed>
