/** Custom style defined file **/

.mydefined {
  font-size: 0.65em;
  color: #ed6c24;
}

.custom-footer {
  color: #ed6c24;
}

.custom-head5 {
  font-size: 1.2em;
  color: #ed6c24;
  font-weight: bold;
}

.grayscale_without_hover{
  filter: grayscale(100%);
}

.grayscale_without_hover:hover {
  filter: none;
}

:root[data-theme="dark"] .bright-mode-display{
  display: none;
}

.dark-mode-display{
  display: none;
}
:root[data-theme="dark"] .dark-mode-display{
  display: block;
}

/* ==================================================
   Hyperlink Card（链接卡片）— 复刻 Halo plugin-editor-hyperlink-card
   Regular 风格：左侧缩略图 + 右侧 URL/标题/描述
   ================================================== */
.linkcard {
  margin: 1.5em 0;
}

/* 降级纯链接（抓取失败时） */
.linkcard-plain {
  font-size: 0.9em;
}

/* 卡片主体 */
.linkcard-link {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--content-bg-color);
  color: var(--text-color);
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.linkcard-link:hover {
  border-color: var(--link-hover-color);
  color: var(--text-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* 左侧缩略图 */
.linkcard-img {
  flex: 0 0 200px;
  max-width: 40%;
  background: var(--body-bg-color);
  position: relative;
  overflow: hidden;
}

.linkcard-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  min-height: 100px;
}

/* 右侧文字区 */
.linkcard-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 14px 18px;
}

.linkcard-url {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75em;
  color: var(--link-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.linkcard-favicon {
  width: 16px;
  height: 16px;
  flex: none;
  margin: 0;
  border-radius: 3px;
}

.linkcard-host {
  overflow: hidden;
  text-overflow: ellipsis;
}

.linkcard-title {
  font-size: 1em;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-color);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.linkcard-desc {
  font-size: 0.85em;
  line-height: 1.5;
  color: var(--text-color);
  opacity: 0.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 移动端：缩略图置顶全宽 */
@media (max-width: 767px) {
  .linkcard-link {
    flex-direction: column;
  }

  .linkcard-img {
    flex: none;
    max-width: none;
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

/* ==================================================
   Poesia 诗歌模块（{{< poesia >}}）— 居中 + 华文行楷 + 换行即换行
   ================================================== */

@font-face {
  font-family: 'STXingkai';
  src: url('/fonts/STXINGKA.ttf') format('truetype');
  font-display: swap;
}

.poesia-body {
  text-align: center;
  font-family: 'STXingkai', '华文行楷', 'STXingkai', 'KaiTi', cursive, serif;
  margin: 1.5em 0;
  font-size: 1.2em;
}

.poesia-body p {
  margin: 0 0 1.2em;
}