<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/rss/stylesheet/" type="text/xsl"?>
<rss xmlns:content='http://purl.org/rss/1.0/modules/content/' xmlns:taxo='http://purl.org/rss/1.0/modules/taxonomy/' xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#' xmlns:itunes='http://www.itunes.com/dtds/podcast-1.0.dtd' xmlns:googleplay="http://www.google.com/schemas/play-podcasts/1.0" xmlns:dc='http://purl.org/dc/elements/1.1/' xmlns:atom='http://www.w3.org/2005/Atom' xmlns:podbridge='http://www.podbridge.com/podbridge-ad.dtd' version='2.0'>
<channel>
  <title>DBD-博客</title>
  <language>zh-cn</language>
  <generator>microfeed.org</generator>
  <itunes:type>episodic</itunes:type>
  <itunes:explicit>false</itunes:explicit>
  <atom:link rel="self" href="https://cms.4km.qzz.io/rss/" type="application/rss+xml"/>
  <link>https://my-microfeed.z2326173351-8c6.workers.dev</link>
  <description>
    <![CDATA[<style>
        #api-text-container {
            font-size: 20px;
            max-width: 100%;
            text-align: center;
            line-height: 1.6;
            padding: 20px;
            border-left: 4px solid #4CAF50;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
@media (max-width: 768px) {
            #api-text-container {
                font-size: 19px; /* 移动端减小到18px */
                max-width: 100%; /* 移动端宽度占比更大（减少留白） */
                padding: 15px; /* 移动端内边距减小 */
            }
    </style>
<p id="api-text-container"></p>
<script>
  // 调用文字API（以「一言」为例，返回随机句子）
  fetch("https://v1.hitokoto.cn/?c=d") // API地址（返回JSON）
    .then(response => response.json())
    .then(data => {
      // 将API返回的文字填入容器（不添加任何样式，使用网站默认文本样式）
      document.getElementById("api-text-container").textContent = data.hitokoto;
    })
    .catch(error => {
      // 加载失败时显示提示（同样使用默认样式）
      document.getElementById("api-text-container").textContent = "加载失败，请稍后刷新";
    });
</script>
<p>这是一款轻量级的内容管理系统（CMS），可自行托管于Cloudflare平台。通过microfeed，您能够便捷地发布多种形式的内容——包括音频、视频、照片、文档、博客文章及外部链接，并以网页、RSS订阅和JSON格式输出信息流。</p>]]>
  </description>
  <itunes:author>DBD制作组</itunes:author>
  <itunes:image href="https://cms.4km.qzz.io/assets/default/channel-image.png"/>
  <image>
    <title>DBD-博客</title>
    <url>https://cms.4km.qzz.io/assets/default/channel-image.png</url>
    <link>https://my-microfeed.z2326173351-8c6.workers.dev</link>
  </image>
  <copyright>©2026</copyright>
  <item>
    <title>随机API图片 - 网页端</title>
    <guid>hao3XTx1qpp</guid>
    <pubDate>Thu, 03 Sep 2026 03:09:17 GMT</pubDate>
    <itunes:explicit>false</itunes:explicit>
    <description>
      <![CDATA[<!-- 随机图片切换器（博客嵌入）最终版 -->
<style>
.random-img-box {
  max-width: 100%;
  margin: 15px 0;
  text-align: center;
  position: relative;
  /* 核心：容器强制16:9比例，宽度不变，高度自动跟随16/9 */
  aspect-ratio: 16 / 9;
  /* 最小保护，小屏幕不会缩得太矮 */
  min-height: 320px;
  /* 最大上限，防止大屏过高 */
  max-height: 550px;
}

.random-img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* 完整展示原图，不拉伸不裁剪 */
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  background: #fff !important; /* 留白区域纯白色 */
  /* 删除重复冲突的两套max‑height，交给父容器aspect‑ratio管控 */
}
.random-btn { padding: 10px 30px; margin-top: 12px; background: #4299e1; color: #fff; border: none; border-radius: 25px; cursor: pointer; font-size: 14px; }
.random-btn:hover { background: #3182ce; }
.random-loading { 
  color: #666; 
  padding: 20px 0; 
  position: absolute; /* 绝对定位 不占位 */
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
}
</style>
<div class="random-img-box">
  <div class="random-loading" id="imgLoading">加载中...</div>
  <img class="random-img" id="blogRandomImg" alt="随机图片" style="display: none;">
  <br>
  <button class="random-btn" id="refreshImgBtn">换一张图片</button>
</div>
<br>
<script>
const RANDOM_API = "https://www.dmoe.cc/random.php";
const imgDom = document.getElementById("blogRandomImg");
const loadingDom = document.getElementById("imgLoading");
const btnDom = document.getElementById("refreshImgBtn");

function loadNewImg() {
  // 删掉隐藏旧图+显示加载中  实现无缝换图不跳动
  let random = Date.now() + Math.floor(Math.random()*10000);
  imgDom.src = `${RANDOM_API}?t=${random}`;
}

imgDom.onload = () => { loadingDom.style.display = "none"; imgDom.style.display = "block"; };
imgDom.onerror = () => { loadNewImg(); };

setTimeout(()=>{
  loadNewImg();
  btnDom.addEventListener("click", loadNewImg);
},100);
</script>
<br>]]>
    </description>
    <link>https://cmsr.4km.cc.cd/i/api-hao3XTx1qpp/</link>
    <itunes:episodeType>full</itunes:episodeType>
  </item>
</channel>
</rss>