/* your styles go here */
@font-face {
	font-family: 'Tilt Neon';
	src: url('fonts/TiltNeon-Regular.ttf') format('truetype');
}
html,body {
    font-family: 'Hiragino Maru Gothic Pro',Roboto,HelveticaNeue,Arial,sans-serif;
    font-size: 14px;
    line-height: 1.45;
    overflow-wrap: break-word;
}
h1,h2,h3,h4 {
  font-family: "Tilt Neon",'Hiragino Maru Gothic Pro',Roboto,HelveticaNeue,Arial,sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings:
    "XROT" 0,
    "YROT" 0;
}
h5,h6{
    font-family: 'Hiragino Maru Gothic Pro',Roboto,HelveticaNeue,Arial,sans-serif;
}
ol, ul {
    margin-bottom: 20px;
}
ol {
    margin-left: -20px;
}
ol ol, ol ul, ul ol, ul ul {
    margin-left: -20px;
}
blockquote {
    font-size:14px;
}
.credit {
    font-family: Söhne, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 12px;
}
/* 标题字体替换 */
.sidebar-heading {
    font-family:'MiaoXiaoJieJ3d901f09df25a23','Hiragino Maru Gothic Pro',Roboto,HelveticaNeue,Arial,sans-serif;
    font-size:25px;
}
/* 左侧导航栏字体替换 */
.sidebar-menu {
    font-family: "Tilt Neon",'Hiragino Maru Gothic Pro',Roboto,HelveticaNeue,Arial,sans-serif;
    font-weight: 400;
    font-size:16px;
}
.small-navbar-heading {
    font-family:'MiaoXiaoJieJ3d901f09df25a23','Hiragino Maru Gothic Pro',Roboto,HelveticaNeue,Arial,sans-serif;
}
/* img loop css 高度有点问题，没修好，先放置了 */
.swiper-container {
    max-width: 820px;
    margin: 2em auto;
}
.swiper-slide {
    text-align: center;
    font-size: 18px;
    background-color: #fff;
    /* Center slide text vertically */
    display: flex;
    justify-content: center;
    align-items: center;
    img {
        margin: 0 !important;
    }
}
/* 内文图片流 https://immmmm.com/about-images-gird/ */
.content-column-content p:has(> img:nth-child(2)){column-count:2;column-gap:8px;margin:6px 0;}
.content-column-content p:has(> img:nth-child(3)){column-count:3;}
.content-column-content p:has(> img:nth-child(4)){column-count:4;}
.content-column-content p:has(> img:nth-child(5)){column-count:5;}
.content-column-content p:has(> img:nth-child(6)){column-count:4;}
.content-column-content p:has(> img:nth-child(2)) img{display:inherit;}
.content-column-content p:has(> img:nth-child(6)) img{margin-bottom:8px;}
/* 设置一下代码框最大高度，怎么会没设置的，顺便定义一下位置不然空行太明显 */
pre {
    margin:-15px 0 20px 0;
    max-width: 100%;
    max-height: 200px;
    overflow: auto;
    white-space: nowrap;
}
/* icon park 全局定义 */
.iconpark-icon {
    width: 1em;
    height: 1em;
}
.iconpark-icon.target-blank {
       margin:0 0 -1px 1px;
}
.iconpark-icon.toggle-menu{
    width: 20px;
    height: 15px;

}
/* svg在hover时会出现一个外框，原因不明
p.social path {
    fill:none;
}
p.social path:focus {
    outline: none;
    fill: none;
}
p.social a:hover path {
    stroke: red;
    outline: none;
}
*/
p.social a {
    line-height: 42px;
}
p.social.social--big a {
    line-height: 65px;
}
/* 救一下被杀了的fa遗留下来的问题，救不了了，content不能不用，算了留着吧 */
/*
.content-column-content ul li::before {
    background-image: url('/img/li.svg');
    background-repeat: no-repeat;
    background-position-y: 2px;
    font-family: '';
}
.sidebar-menu li::before {
    background-image: url('/img/li.svg');
    background-repeat: no-repeat;
    background-position-y: 5px;
    font-family: '';
    margin:0 0 0 -15px;
}
*/
/* 改变选中时的颜色 */
::selection {
    background-color: #ef5285; /* 设置选中文本的背景颜色 */
    color: #000; /* 设置选中文本的文字颜色 */
}
/* 叫chatgpt写的，真好用 */
    .chat-input {
        display: flex;
        align-items: center;
        width: 100%;
        border: 1px solid #ccc;
        border-radius: 5px;
        padding: 8px;
        margin: 50px 0 20px 0;
    }

    .chat-input input {
        flex: 1;
        border: none;
        outline: none;
        font-size: 14px;
        padding:0 0 0 8px;
    }

    .chat-input button {
        background-color: #ef5285;
        color: white;
        border: none;
        border-radius: 5px;
        padding: 8px 12px;
        margin-left: 8px;
        cursor: pointer;
    }

    .chat-input button:hover {
        background-color: #c7254e;
    }
/* 叫deepseek写的，更好用 */
/* 确保表情图片是内联元素 */
.inline-emoji {
  display: inline; /* 确保图片是内联元素 */
  height: 1em;     /* 与文字高度一致 */
  width: auto;     /* 宽度自适应 */
  vertical-align: middle; /* 与文字垂直对齐 */
  margin: 0 0 0.2em 0; /* icon-park的svg图多少有点往下掉，稍微往上抬一点 */
}
/* 针对列表项的额外调整 */
ul li .inline-emoji,
ol li .inline-emoji {
  display: inline; /* 确保在列表项中也是内联元素 */
  vertical-align: middle; /* 与列表项的基线对齐 */
}
/* ds继续干活，代码框容器 */
.code-block-wrapper {
  position: relative; /* 为按钮定位提供参考 */
}

/* 复制按钮 */
.copy-button {
  position: absolute; /* 绝对定位 */
  top: 0.5em;         /* 距离顶部 */
  right: 0.5em;       /* 距离右侧 */
  padding: 0.25em 0.5em;
  font-size: 0.875em;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 3px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}


/* ds写的，通用样式：所有标题下的链接图标 */
.header-link {
  opacity: 0;
  transition: opacity 0.3s ease;
  text-decoration: none;
  color: #ef5285;
}

/* 鼠标悬停时显示链接图标 */
h1:hover .header-link,
h2:hover .header-link,
h3:hover .header-link,
h4:hover .header-link,
h5:hover .header-link,
h6:hover .header-link {
  opacity: 1;
}

/* 调整链接图标位置（可选） */
.header-link .link-icon {
  vertical-align: middle;
}