/*
 * This file contains the tweaks specific for this Jekyll Read the Docs port.
 * This is so that the original theme.css and theme_extra.css files can be
 * easily compared with the upstream ones from MkDocs:
 * https://github.com/mkdocs/mkdocs/commits/master/mkdocs/themes/readthedocs
 */

/* Footer revision string. */
.commit code {
    font-size: 0.9em !important;
}

/* Reduce padding between <pre> and <code> */
.rst-content div[class^=highlight] pre {
    padding: 6px !important;
}

/* Add an external link icon to external links in the navigation menu. */
.wy-menu.wy-menu-vertical a.reference.external::after {
  /* \00a0 = no break space */
  content: "\00a0\f08e";
  font-family: FontAwesome;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  padding-left: 0.2em;
}

/* Custom AnchorJS class */
.title-anchor {
  color: #2980b9 !important;
  margin-top: 2px !important;
}

/*****************************************************************************/
/* Copy code to clipboard button                                             */
/*****************************************************************************/
.copy-code-wrapper {
    position: relative;
}

.copy-code-btn {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    top: 0px;
    right: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.9em;
    height: 1.9em;
    padding: 0;
    background: rgb(43 135 195 / 10%);
    color: #2980b9e0;
    border: 1px solid #2980b9e0;
    border-radius: 0px 0px 0px 6px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease, color 0.15s ease, background 0.15s ease;
    user-select: none;
}

.copy-code-wrapper:hover .copy-code-btn {
    opacity: 1;
}

.copy-code-btn.copied {
    color: #3c7a2b;
    border-color: #3c7a2b;
}

/*****************************************************************************/
/* Labels                                                                    */
/*****************************************************************************/
.rst-content .label {
    display: inline-block;
    padding: 0.15em 0.5em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1.4;
    border-radius: 4px;
    vertical-align: middle;
    white-space: nowrap;
    background: #2980b9;
    color: #fff;
    margin: 0 0.2em;
}

/* Allow inline labels via *text*{: .label } without italic/bold side-effects */
.rst-content em.label    { font-style: normal; }
.rst-content strong.label { font-weight: 700; }

.rst-content .label-blue   { background: #2980b9; color: #fff; }
.rst-content .label-green  { background: #27ae60; color: #fff; }
.rst-content .label-fuchsia { background: #a0165b; color: #fff; }
.rst-content .label-yellow { background: #f1c40f; color: #333; }
.rst-content .label-red    { background: #e74c3c; color: #fff; }
.rst-content .label-gray   { background: #7f8c8d; color: #fff; }

/* 底部二维码 */

/* 每个卡片：标题在上，图片在下 */
.footer {
    display: flex;
    flex-wrap: wrap;           /* 强制不换行 */
    align-items: center;         /* 垂直居中 */
    justify-content: center;     /* 水平居中（可根据需要改为 flex-start/space-around） */
    gap: 20px;                  /* 卡片间距 */
    overflow-x: auto;           /* 宽度不足时水平滚动 */
    padding: 16px 24px;
    background: #f8f9fa;        /* 示范背景 */
    border-top: 1px solid #e8ecf1;
}
.pic_w {
    display: flex;
    flex-direction: column;     /* 垂直排列标题和图片 */
    align-items: center;        /* 水平居中 */
    flex-shrink: 0;             /* 防止被压缩 */
    text-align: center;
    min-width: 80px;            /* 保证最小宽度，避免过挤 */
}

/* 标题样式 */
.pic_w .t {
    font-size: 13px;
    color: #333;
    margin-bottom: 6px;
    font-weight: 500;
    white-space: nowrap;        /* 标题不换行 */
}

/* 图片容器 */
.pic_w .pic {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 图片本身：固定宽度，高度自适应 */
.pic_w .pic img {
    width: 80px;                /* 根据实际需要调整 */
    height: auto;
    border-radius: 4px;
    display: block;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}