/* 根元素定义全局颜色变量（可在任意元素中使用） */
:root {
  /* 白色系 */
  --color-white: #f2f2f2;    /* 你指定的white：F2F2F2 */
  /* 浅灰色系 */
  --color-light-gray: #d1d5db; /* 你指定的light-gray：D1D5DB */
  /* 深灰色系 */
  --color-dark-gray: #4b5563;  /* 你指定的dark-gray：4B5563 */
  /* 黑色系 */
  --color-black: #111827;      /* 你指定的Black：111827 */
    /* 基础黑白（通用） */
  --color-white-pure: #ffffff;
  --color-black-pure: #000000;
  --color-royal-blue: #014BAA;
  --color-light-cream: #F8F3F0;
  --color-shock-yellow: #FFEA00;
  --color-urtra-violet: #651FFF;
  --color-aqua-blue: #00E5FF;
  --color-fire-red: #FF1744;
  --color-ice-cyan: #18FFFF;
  --color-power-magenta: #E91E63;
  --color-Flame-orange: #FF9100;
}
:root :where(.wp-block-query-title span) {
  font-style: normal;
}
/*鼠标选择以后的背景颜色*/
::selection {
    color: #fff !important;
    background: #0049FF !important;
}
/*鼠标选择以后的背景颜色*/
::-moz-selection {
    color: #fff !important;
    background: #0049FF !important;
}
:root :where(.wp-block-post-content.is-style-indent p:not(:first-of-type) ) {
    text-indent: 0px;
}
:root :where(.wp-block-search .wp-element-button, .wp-block-search .wp-block-button__link) {
  border-radius: 0;
  margin-left: 1.125rem;
}
root :where(.wp-element-button, .wp-block-button__link) {
  background-color: var(--wp--preset--color--contrast);
  border-width: 0;
  color: var(--wp--preset--color--base);
  font-family: inherit;
  font-size: var(--wp--preset--font-size--medium);
  font-style: inherit;
  font-weight: 500;
  letter-spacing: 1px;
  line-height: inherit;
  padding: 0px!important;
  text-decoration: none;
  text-transform: uppercase;
}
h1, h2, h3, h4, h5, h6 {
    line-height: 1.5;
}
textarea{
    background-color: #F6F5F4;
    font-size: 12px;
    letter-spacing: 1px;
    color: #000;
}
/*网站超链接配置*/
a:link{
text-decoration: none;
}
a:hover{
    text-decoration: underline;
    text-decoration-color: var(--color-ice-cyan);
    text-decoration-style: dashed;
}
a:active{
    border: none;
}
/* 固定导航栏 */
.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container {
  background-color: var(--color-white-pure);
  border: 1px solid var(--color-light-gray);
}
.wp-block-navigation__submenu-container a.wp-block-navigation-item__content:hover {
  background-color: var(--color-white);
  text-decoration: none;
}
:root :where(.wp-block-post-featured-image img, .wp-block-post-featured-image .block-editor-media-placeholder, .wp-block-post-featured-image .wp-block-post-featured-image__overlay) {
  border-radius: 0;
}
/*文章内文字大小*/
.wp-block-post-excerpt__excerpt{
    font-size: var(--wp--preset--font-size--small);
}
.entry-content p{
    line-height: 2;
    letter-spacing: 1px;
    /*font-size: var(--wp--preset--font-size--large)*/
}
.entry-content h2{
    font-size: var(--wp--preset--font-size--large);
}
.entry-content h3{
    font-size: var(--wp--preset--font-size--medium);
    font-weight: 600;
}
.wp-block-file:not(.wp-element-button) {
  font-size: var(--wp--preset--font-size--medium);
  color:#0049FF;
}
/* 特色图片基础样式：重置+过渡动画 */
.wp-block-post-featured-image a img {
  display: block; /* 清除图片底部默认空白 */
  width: 100%; /* 自适应容器宽度 */
  height: auto; /* 保持图片比例 */
  transition: all 0.3s ease; /* 阴影+缩放过渡，更流畅 */
  transform: translateZ(0); /* 开启硬件加速，优化动画性能 */
}

/* 鼠标滑过：四周灰色模糊阴影 + 轻微缩放（增强视觉效果） */
.wp-block-post-featured-image a:hover img {
  /* 核心：灰色模糊阴影（适配你的浅灰变量，可自定义） */
  box-shadow: 0 0 20px 8px rgba(209, 213, 219, 0.5); 
  /* 等价于用变量写法：box-shadow: 0 0 20px 8px var(--color-light-gray / 0.5); */
  
  /* 可选：轻微缩放，提升交互感（可删除） */
  transform: scale(1.02);
}

/* 可选：容器溢出隐藏（避免缩放/阴影超出容器） */
.wp-block-post-featured-image {
  overflow: hidden;
  position: relative;
}

/* 移动设备（768px 以下）：.wp-site-blocks 左右padding 20px */
@media (max-width: 768px) {
   h1, h2, h3 {
    line-height: 1.3; /* 移动端大标题行高略宽松 */
  }
  h4, h5, h6 {
    line-height: 1.5; /* 移动端小标题恢复 1.5 行高 */
  }
    .wp-site-blocks {
    padding-left: 20px !important; /* 左内边距20px */
    padding-right: 20px !important; /* 右内边距20px */
    box-sizing: border-box; /* 确保padding不撑大容器宽度 */
  }
    .wp-block-navigation-item__label{
        font-size: 1.5em;
        text-align: center;
    }
    .admonition-meta {
        text-align: center!important;
        font-size: var(--wp--preset--font-size--xsmall)!important;
    }
    .wp-block-search{
        display: none;
    }
    .wp-block-navigation-item__label{
        font-size: var(--wp--preset--font-size--small);
    }
    /* 移动环境下的导航菜单 */
    .wp-block-navigation__responsive-container-content {
        
    }
    .wp-block-navigation__responsive-container-content ul {
        width: 100%;
    }
    .wp-block-navigation__responsive-container-content ul li a.wp-block-navigation-item__content .wp-block-navigation-item__label{
        font-size: var(--wp--preset--font-size--large)!important;
        font-weight: normal!important;
        text-align: center;
        display:block; /* 确保居中生效 */
        width: 100%; /* 可选：让链接占满父li宽度，居中效果更明显 */
        letter-spacing: 5px;
    }
    .wp-block-navigation__responsive-container-content ul li{
        display: flex; /* Flex布局实现垂直居中 */
        justify-content: center; /* 水平居中（核心） */
        align-items: center!important; /* 垂直居中（可选，让文字在链接内垂直居中） */
        text-align: center; /* 兜底：兼容行内元素的水平居中 */
        width: 100%; /* 可选：让链接占满父li宽度，居中效果更明显 */
        padding: 10px 0px;
    }
}

/* 可选：桌面端重置（避免继承多余padding） */
@media (min-width: 769px) {
  .wp-site-blocks {
    padding-left: 30 !important;
    padding-right: 30 !important;
  }
    .wp-block-navigation-item__label{
        font-size: 0.9em;
        letter-spacing: 2px;
    }
    .wp-block-search{
        display: block;
    }
}
/* 基础列表样式 - 清除默认样式 */
.zendog-gallery-list {
  list-style: none; /* 去掉默认圆点 */
  padding: 0;       /* 清除内边距 */
  margin: 2em 0;    /* 上下留白，基于基准字号的间距 */
}

/* 每个列表项样式 - 分隔线 + 内边距 */
.zendog-gallery-list li {
  padding: 1.2em 0;          /* 上下内边距，比之前稍大适配多内容 */
  border-bottom: 1px solid #eee; /* 灰色分隔线 */
  transition: background-color 0.2s ease; /* 悬浮过渡动画 */
}

/* 最后一个li去掉底部分隔线 */
.zendog-gallery-list li:last-child {
  border-bottom: none;
}

/* 鼠标悬浮li淡灰色背景 */
.zendog-gallery-list li:hover {
  background-color: #f8f8f8;
}

/* 标题样式（h3）- 干净无冗余 */
.zendog-gallery-list li h3 {
  margin: 0 0 0.8em 0; /* 仅底部留白，与下方内容分隔 */
  font-size: var(--wp--preset--font-size--large);
  line-height: 1.4;
}

/* 标题链接样式 */
.zendog-gallery-list li h3 a {
  color: #333;               /* 链接默认颜色 */
  text-decoration: none;     /* 去掉下划线 */
}

.zendog-gallery-list li h3 a:hover {
  text-decoration: underline; /* 悬浮显示下划线 */
  color: #2271b1;             /* 悬浮文字变色（WP默认主色） */
}

/* 所有p标签统一样式（开始/结束/开放时间、费用） */
.zendog-gallery-list li p {
  margin: 0 0 0.5em 0; /* 仅底部留白，段落间紧凑 */
  color: #666;         /* 正文灰色，比标题浅 */
  font-size: var(--wp--preset--font-size--medium);    /* 比基准字号小10% */
  line-height: 1.4;
}

/* 最后一个p标签去掉底部留白（避免li底部多余空隙） */
.zendog-gallery-list li p:last-child {
  margin-bottom: 0;
}
.admonition-item h1{
    margin:0px;
}
.admonition-content{
    font-size: 2em;
    margin:1em 0;
    font-weight:normal;
}
.admonition-meta p{
    text-align: right;
}
.admonition-meta p:last-child{
    text-align: center;
    font-size: 0.8em;
    color:var(--color-dark-gray;)
}
/* 面包屑导航容器基础样式 */
.custom-breadcrumb {
  margin: 1em 0; /* 上下留白 */
  font-size: 0.9em; /* 字号稍小，不抢焦点 */
}

/* 清除ol默认样式，设置弹性布局实现水平排列 */
.custom-breadcrumb ol {
  list-style: none; /* 去掉默认列表圆点 */
  padding: 0;       /* 清除内边距 */
  margin: 0;        /* 清除外边距 */
  display: flex;    /* 核心：水平排列li */
  align-items: center; /* 垂直居中 */
  flex-wrap: wrap;  /* 响应式：内容过长时自动换行 */
  gap: 0.5em;       /* li之间的间距（替代分隔符的间距） */
}

/* 面包屑每个项的样式 */
.custom-breadcrumb li {
  display: inline-flex; /* 确保水平显示 */
  align-items: center;
}

/* 添加分隔符（>），排除最后一个li */
.custom-breadcrumb li:not(:last-child)::after {
  content: ">";
  color: #999; /* 分隔符灰色弱化 */
  margin-left: 0.5em; /* 分隔符与下一个li的间距 */
  font-size: 0.8em;
}

/* 链接样式 */
.custom-breadcrumb li a {
  color: #2271b1; /* WordPress 默认主色，可自定义 */
  text-decoration: none;
}

/* 链接悬浮效果 */
.custom-breadcrumb li a:hover {
  text-decoration: underline;
  color: #135e96; /* 悬浮加深颜色 */
}

/* 当前页样式（最后一个li的span） */
.custom-breadcrumb li[aria-current="page"] span {
  color: #666; /* 灰色弱化，区分链接 */
  font-weight: 500;
}
.simpletoc a:link{
    text-decoration: none;
}
.simpletoc ul li a:hover{
    text-decoration: underline;
    text-decoration-color: #573894;
    text-decoration-style: dashed;
}
.simpletoc-list li{
    padding:5px 0;
}
.zendog-related-post{
    margin-left: 0;
    padding-left: 0;
}
.zendog-related-post li{
    list-style: none;
}
/* 响应式适配：小屏幕字号缩小 */
@media (max-width: 768px) {
  .custom-breadcrumb {
    font-size: 0.8em;
  }
}

