/**
 * isdo 主题 · 正文短代码统一样式层
 * ============================================================================
 * 主题自带的 style.css 是十多年前一路叠起来的：同一个组件在不同段落各有一套
 * 规则（例如 .tooltip 有两份、.marks 三份），圆角、阴影、间距、按钮高度
 * 互相打架。这里不改老规则，只在**最后**加载一层「收口样式」，把所有
 * 短代码的前台输出统一到一套设计语言上：
 *
 *   圆角 8px / 边框 1px #e6e8eb / 阴影 0 1px 3px rgba(16,24,40,.06)
 *   主色 #2271b1（蓝）/ 强调 #f0f6fc / 灰字 #6b7280
 *
 * 作用域：优先挂在 .single-content 下，避免污染小工具、导航等其它区块。
 * 兼容：body.night 下单独给一套深色值。
 * ========================================================================== */

/* --------------------------------------------------------------------------
 * 0. 变量
 * -------------------------------------------------------------------------- */
.single-content,
.isdo-fold {
    --sc-line: #e6e8eb;
    --sc-line-strong: #d5d9de;
    --sc-ink: #1f2328;
    --sc-ink-2: #4b5563;
    --sc-ink-3: #8b919b;
    --sc-brand: #2271b1;
    --sc-brand-soft: #f0f6fc;
    --sc-bg: #f7f8fa;
    --sc-radius: 10px;
    --sc-shadow: 0 1px 3px rgba(16, 24, 40, .06);
    --sc-shadow-hover: 0 6px 18px rgba(16, 24, 40, .10);
}

/* --------------------------------------------------------------------------
 * 0.1 收口：主题的全局规则会污染短代码内部
 * -------------------------------------------------------------------------- */

/* style.css 里有一条 `em, h2 strong { color: red }`。
   短代码里大量用 <em> 做「按钮文字 / 单位 / 次要说明」（折叠按钮、记住登录、
   二维码空态…），套上去全变成刺眼的红色斜体。这里在这些容器内恢复继承色。 */
.single-content .isdo-fold em,
.single-content .hide-content-boxs em,
.single-content .wechat-key-form em,
.single-content .reply-read em,
.single-content .reply-pass em,
.single-content .down em,
.single-content .popup-trigger-1 em,
.single-content .isdo-login-box em,
.single-content .isdol-box em,
.single-content .wplist-item em,
.single-content .insert-post em {
    font-style: normal;
    color: inherit;
}

/* --------------------------------------------------------------------------
 * 1. 折叠面板 [fold]
 * -------------------------------------------------------------------------- */
.isdo-fold {
    margin: 22px 0;
    padding: 4px 18px 6px;
    background: #fff;
    border: 1px solid var(--sc-line);
    border-left: 3px solid var(--sc-brand);
    border-radius: var(--sc-radius);
    box-shadow: var(--sc-shadow);
}

.isdo-fold-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 12px 0;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--sc-brand);
    text-align: left;
    background: none;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    box-shadow: none;
}

.isdo-fold-btn:hover,
.isdo-fold-btn:focus {
    color: #135e96;
    background: none;
    outline: none;
}

.isdo-fold-btn:focus-visible {
    outline: 2px solid var(--sc-brand);
    outline-offset: 3px;
}

.isdo-fold-ico {
    font-size: 15px;
    line-height: 1;
}

/* 主题对正文 em 统一加了红色+斜体（.single-content em 优先级 0,1,1），
   按钮文字正好是 <em>，必须用同等以上优先级盖掉 */
.single-content .isdo-fold-label,
.isdo-fold .isdo-fold-label {
    font-style: normal;
    color: inherit;
}

.isdo-fold-caret {
    width: 16px;
    height: 16px;
    margin-left: auto;
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}

.isdo-fold.is-open .isdo-fold-caret {
    transform: rotate(180deg);
}

.isdo-fold-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .32s cubic-bezier(.4, 0, .2, 1);
}

.isdo-fold.is-open .isdo-fold-body {
    max-height: none;
}

.isdo-fold-inner {
    padding: 2px 0 10px;
    border-top: 1px dashed var(--sc-line);
}

.isdo-fold-inner > :first-child {
    margin-top: 12px;
}

.isdo-fold-inner > :last-child {
    margin-bottom: 0;
}

/* 老版 [s] / [p] 两步折叠：只补一下间距，结构不动 */
.single-content .show-more {
    display: inline-block;
}

/* --------------------------------------------------------------------------
 * 2. 标签页 [tabs][tab]
 * -------------------------------------------------------------------------- */
.single-content .tab-group {
    position: relative;
    margin: 24px 0;
    padding: 0;
}

.single-content .tab-group .tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    height: auto;
    margin: 0;
    padding: 0 0 0 2px;
    overflow: visible;
    list-style: none;
    border-bottom: 1px solid var(--sc-line);
}

.single-content .tab-group .tab-nav li {
    display: block;
    margin: 0 !important;
}

.single-content .tab-group .tab-nav li a {
    display: block;
    float: none;
    position: relative;
    top: 1px;
    margin: 0;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--sc-ink-2);
    text-decoration: none;
    background: var(--sc-bg);
    border: 1px solid var(--sc-line);
    border-bottom-color: transparent;
    border-radius: 9px 9px 0 0;
    transition: color .15s ease, background-color .15s ease;
}

.single-content .tab-group .tab-nav li a:hover {
    color: var(--sc-brand);
    background: var(--sc-brand-soft);
}

.single-content .tab-group .tab-nav li.active a {
    color: var(--sc-brand);
    font-weight: 600;
    background: #fff;
    border-color: var(--sc-line);
    border-bottom: 1px solid #fff;
    box-shadow: 0 -2px 0 var(--sc-brand) inset;
}

.single-content .tab-group > section {
    opacity: 0;
    height: 0;
    padding: 0 18px;
    overflow: hidden;
}

.single-content .tab-group > section.active {
    height: auto;
    opacity: 1;
    overflow: visible;
    margin: 0;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--sc-line);
    border-top: 0;
    border-radius: 0 0 var(--sc-radius) var(--sc-radius);
    box-shadow: var(--sc-shadow);
    transition: opacity .2s ease;
}

.single-content .tab-group > section.active > :first-child {
    margin-top: 0;
}

.single-content .tab-group > section.active > :last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
 * 3. 按钮：[url] 下载按钮 / [link] 链接按钮 / [button] 弹窗下载 / [go] 直达
 * -------------------------------------------------------------------------- */
.single-content .down.down-link {
    float: none;
    width: auto;
    margin: 18px 0;
    padding: 0;
    background: none;
    box-shadow: none;
    color: inherit !important;
}

.single-content .down.down-link > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    min-width: 0;
    max-width: 100%;
    padding: 11px 26px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    color: #fff !important;
    text-decoration: none !important;
    background: linear-gradient(180deg, #2f80ed, #2271b1);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(34, 113, 177, .24);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.single-content .down.down-link > a:hover {
    color: #fff !important;
    filter: brightness(1.04);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(34, 113, 177, .30);
}

.single-content .down.down-link > a:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(34, 113, 177, .22);
}

.single-content .down.down-link > a > i {
    font-size: 16px;
    line-height: 1;
}

/* 未填地址时的降级态（只有管理员看得到 title 提示） */
.single-content .down.down-link.isdo-link-empty {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    color: var(--sc-ink-3);
    background: var(--sc-bg);
    border: 1px dashed var(--sc-line-strong);
    border-radius: 999px;
}

/* 弹窗下载 [button]
   老样式把 .popup-trigger-1 写死成 180×45 + 右上角一条「下载」斜带，
   文字稍长就被 overflow:hidden 裁掉。这里改成自适应宽度的胶囊。 */
.single-content .popup-trigger-1.isdo-popup-download {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    height: auto;
    margin: 18px 0;
    padding: 11px 26px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
    text-shadow: none;
    background: linear-gradient(180deg, #f59e0b, #d97706);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(217, 119, 6, .24);
    overflow: visible;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

.single-content .popup-trigger-1.isdo-popup-download::after {
    display: none;
}

.single-content .popup-trigger-1.isdo-popup-download:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(217, 119, 6, .30);
}

/* 直达 [go] */
.single-content .content-more > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    font-weight: 600;
    color: #fff !important;
    text-decoration: none;
    background: #16a34a;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(22, 163, 74, .22);
}

/* --------------------------------------------------------------------------
 * 4. 内容保护：密码 / 微信 / 回复 / 登录 / 网盘 / 解压 / 下载地址
 * -------------------------------------------------------------------------- */
.single-content .hide-content-boxs,
.single-content .hide-content-box {
    position: relative;
    margin: 22px 0;
    padding: 22px 24px;
    background: #fbfcfd;
    border: 1px solid var(--sc-line);
    border-radius: var(--sc-radius);
    box-shadow: var(--sc-shadow);
}

.single-content .hide-content-boxs::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, #2f80ed, #2271b1);
    border-radius: var(--sc-radius) 0 0 var(--sc-radius);
}

.single-content .hide-content-boxs .post-password-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0;
    text-align: left;
}

/* 老结构里 input 和 button 之间有一个 <br>，在 flex 里会撑出一行空行 */
.single-content .hide-content-boxs .post-password-form > br {
    display: none;
}

.single-content .post-secret {
    flex: 1 0 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    font-size: 15px;
    font-weight: 600;
    color: var(--sc-ink);
}

.single-content .post-secret > i {
    color: var(--sc-brand);
}

.single-content .isdo-pw-input {
    display: block;
    flex: 0 1 320px;
    width: 100%;
    max-width: 320px;
    height: 42px;
    margin: 0;
    padding: 0 14px;
    font-size: 14px;
    color: var(--sc-ink);
    background: #fff;
    border: 1px solid var(--sc-line-strong);
    border-radius: 8px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.single-content .isdo-pw-input:focus {
    border-color: var(--sc-brand);
    box-shadow: 0 0 0 3px rgba(34, 113, 177, .14);
    outline: none;
}

.single-content .isdo-pw-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    height: 42px;
    margin: 0;
    padding: 0 22px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--sc-brand);
    border: 0;
    border-radius: 8px;
    box-shadow: none;
    cursor: pointer;
    transition: background-color .15s ease, transform .15s ease;
}

.single-content .isdo-pw-button:hover {
    background: #135e96;
    transform: translateY(-1px);
}

/* 微信验证 */
.single-content .wechat-key-form {
    display: flex;
    align-items: stretch;
    gap: 18px;
    margin: 22px 0;
    padding: 20px 22px;
    background: #fbfcfd;
    border: 1px solid var(--sc-line);
    border-radius: var(--sc-radius);
    box-shadow: var(--sc-shadow);
}

.single-content .wechat-key-form .wechat-left {
    flex: 1 1 auto;
    min-width: 0;
    /* 主题给 .post-password-form 设了 text-align:center，这里统一靠左 */
    text-align: left;
}

.single-content .wechat-key-form #wpbox {
    height: 40px;
    max-width: 260px;
    padding: 0 12px;
    border: 1px solid var(--sc-line-strong);
    border-radius: 8px;
}

.single-content .wechat-key-form input[type="submit"] {
    height: 40px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--sc-brand);
    border: 0;
    border-radius: 8px;
    /* 主题的提交按钮带一圈蓝色光晕，和本页的扁平按钮冲突 */
    box-shadow: none;
    cursor: pointer;
    transition: background-color .15s ease;
}

.single-content .wechat-key-form input[type="submit"]:hover {
    color: #fff;
    background: #135e96;
}

.single-content .wechat-key-form .post-secret,
.single-content .wechat-key-form .wechat-box {
    text-align: left;
}

.single-content .wechat-secret {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.9;
    color: var(--sc-ink-2);
}

.single-content .wechat-follow .wechat-w {
    font-weight: 600;
    color: #d97706;
}

.single-content .wechat-key-form .wechat-right {
    flex: 0 0 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-left: 18px;
    border-left: 1px dashed var(--sc-line-strong);
}

.single-content .wechat-key-form .wechat-right img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
}

.single-content .wechat-qr-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 120px;
    padding: 16px 8px;
    font-size: 12px;
    /* 「未设置二维码」是提示而不是报错，别用主题的大红字 */
    color: var(--sc-ink-3) !important;
    background: #fff;
    border: 1px dashed var(--sc-line-strong);
    border-radius: 8px;
}

.single-content .wechat-qr-empty i {
    font-size: 26px;
}

/* 回复可见 / 登录可见 的提示块 */
.single-content .reply-read {
    margin: 22px 0;
    padding: 20px 22px;
    text-align: center;
    background: var(--sc-brand-soft);
    border: 1px dashed #b9d4ec;
    border-radius: var(--sc-radius);
}

.single-content .reply-read .read-top {
    font-size: 15px;
    font-weight: 600;
    color: var(--sc-ink);
}

.single-content .reply-read .read-top > i {
    margin-right: 6px;
    color: var(--sc-brand);
}

.single-content .reply-read .read-sm {
    margin-top: 6px;
    font-size: 13px;
    color: var(--sc-ink-2);
}

.single-content .reply-read .read-pl {
    margin-top: 14px;
}

.single-content .reply-read .flatbtn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 22px;
    font-size: 14px;
    font-weight: 600;
    color: #fff !important;
    text-decoration: none;
    background: var(--sc-brand);
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(34, 113, 177, .22);
}

/* 已解锁后的「隐藏的内容」块 */
.single-content .hide-content-box .hide-t {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--sc-ink);
    border-bottom: 1px dashed var(--sc-line);
}

.single-content .hide-content-box .hide-t > i {
    color: #16a34a;
}

.single-content .hide-content-box .secret-password > p:last-child {
    margin-bottom: 0;
}

/* 网盘密码 / 解压密码 / 下载地址（评论可见） */
.single-content .reply-pass {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
    padding: 12px 16px;
    font-size: 14px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
}

.single-content .reply-pass strong {
    color: #92400e;
}

.single-content .reply-pass .reply-prompt {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--sc-ink-2);
}

.single-content .reply-pass .reply-prompt > i {
    color: #d97706;
}

/* --------------------------------------------------------------------------
 * 5. 图片类：[tuwen] [img] [full_img] [hide_img]
 * -------------------------------------------------------------------------- */
/* ---- 图配文 [tuwen] ----
   老样式把 .full-img 做成「通栏大图 + 图注压在图片正中」（原本是给
   [full_img] 通栏图用的），[tuwen] 复用了同一个外层，于是说明文字也
   飘到了图片中央。现在两条短代码分开：.isdo-tuwen 是「图 + 下方图注」。 */
.single-content .full-img {
    margin: 22px 0;
}

.single-content .full-img.isdo-tuwen {
    margin: 22px 0;
}

.single-content .full-img.isdo-tuwen .wp-caption {
    max-width: 100%;
    padding: 0;
    background: none;
    border: 0;
    border-radius: var(--sc-radius);
    overflow: hidden;
}

.single-content .full-img.isdo-tuwen .wp-caption > a {
    display: block;
    border-radius: var(--sc-radius);
    overflow: hidden;
}

.single-content .full-img.isdo-tuwen .wp-caption a::before {
    display: none;
}

/* 取景框伪元素（原本给 [full_img] 的悬停效果）在图配文里没有意义，去掉 */
.single-content .full-img.isdo-tuwen .wp-caption::before,
.single-content .full-img.isdo-tuwen .wp-caption::after {
    display: none;
    content: none;
}

.single-content .full-img.isdo-tuwen .aligncenters img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    margin: 0 !important;
    border-radius: var(--sc-radius);
    object-fit: contain;
    box-shadow: var(--sc-shadow);
    transition: transform .35s ease, box-shadow .35s ease;
}

.single-content .full-img.isdo-tuwen .wp-caption > a:hover img {
    transform: scale(1.01);
    box-shadow: var(--sc-shadow-hover);
}

/* 图注：从「压在图片中央的大字」改成图下一行小字 */
.single-content .full-img.isdo-tuwen .wp-caption p,
.single-content .full-img.isdo-tuwen .wp-caption-text {
    position: static;
    top: auto;
    left: auto;
    width: auto;
    margin: 9px 0 0;
    padding: 0;
    font-size: 13px !important;
    font-weight: 400;
    line-height: 1.7;
    color: var(--sc-ink-3);
    text-align: center !important;
    text-shadow: none;
    transform: none;
    z-index: auto;
}

/* ---- 通栏宽图 [full_img] ---- */
.single-content .full-img:not(.isdo-tuwen) {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--sc-shadow);
}

.single-content .full-img:not(.isdo-tuwen) img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 !important;
    border-radius: 12px;
    object-fit: cover;
}

/* 多图相册 [img]：等高缩略图，避免几张原图比例不同导致参差不齐 */
.single-content .slider-single {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin: 22px 0;
}

.single-content .slider-single > a,
.single-content .slider-single > .fancybox {
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--sc-shadow);
    transition: transform .3s ease, box-shadow .3s ease;
}

.single-content .slider-single img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    margin: 0 !important;
    border-radius: 0;
    object-fit: cover;
    transition: transform .35s ease;
}

.single-content .slider-single > a:hover,
.single-content .slider-single > .fancybox:hover {
    transform: translateY(-2px);
    box-shadow: var(--sc-shadow-hover);
}

.single-content .slider-single > a:hover img {
    transform: scale(1.04);
}

/* 隐藏图片 [hide_img]
   【修复】style.css 里有一条 `.single-content .hide-img{display:none}`，
   导致这枚短代码在前台**整块不显示**（面板里能选、文章里插了也看不见）。
   这里显式改回 block，再用模糊 + 点击揭开实现「模糊遮罩」的本意。 */
.single-content .hide-img {
    display: block;
    position: relative;
    margin: 22px 0;
    cursor: pointer;
}

.single-content .hide-img::after {
    content: "点击查看原图";
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: rgba(16, 24, 40, .62);
    border-radius: 999px;
    transform: translate(-50%, -50%);
    transition: opacity .25s ease;
    pointer-events: none;
}

.single-content .hide-img.is-show::after {
    opacity: 0;
}

.single-content .hide-img img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--sc-radius);
    filter: blur(10px);
    transition: filter .35s ease;
}

.single-content .hide-img:hover img {
    filter: blur(4px);
}

.single-content .hide-img.is-show img,
.single-content .hide-img.show img {
    filter: none;
}

/* 通栏宽图 [full_img]：突破正文宽度 */
.single-content .full-img.isdo-bleed {
    width: auto;
    max-width: none;
    margin-left: -20px;
    margin-right: -20px;
}

/* --------------------------------------------------------------------------
 * 6. 排版类：[fieldset] [code] [two_column] [colorful] [tips]
 * -------------------------------------------------------------------------- */
.single-content fieldset {
    width: auto;
    margin: 22px 0;
    padding: 18px 20px 20px;
    background: #fff;
    border: 1px solid var(--sc-line);
    border-radius: var(--sc-radius);
    box-shadow: var(--sc-shadow);
}

.single-content fieldset > legend {
    padding: 0 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--sc-brand);
    background: var(--sc-brand-soft);
    border-radius: 999px;
    line-height: 26px;
}

/* 行内 code：只做浅底胶囊，不抢版面 */
.single-content code {
    display: inline;
    padding: 2px 6px;
    margin: 0 2px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: .92em;
    color: #b5316a;
    background: #f4f6fa;
    border: 1px solid var(--sc-line);
    border-radius: 5px;
    white-space: break-spaces;
    word-break: break-word;
}

/* 代码块 [code]：外层 pre，样式挂在 pre 上，内层 code 归零 */
.single-content pre.isdo-code {
    display: block;
    margin: 20px 0;
    padding: 16px 18px;
    color: #e6edf3;
    background: #1f2430;
    border-radius: var(--sc-radius);
    box-shadow: var(--sc-shadow);
    overflow-x: auto;
    tab-size: 4;
}

.single-content pre.isdo-code > code {
    display: block;
    padding: 0;
    margin: 0;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 13.5px;
    line-height: 1.75;
    color: inherit;
    background: none;
    border: 0;
    border-radius: 0;
    white-space: pre;
    word-break: normal;
}

.single-content pre.isdo-code::-webkit-scrollbar {
    height: 8px;
}

.single-content pre.isdo-code::-webkit-scrollbar-thumb {
    background: #3b4356;
    border-radius: 4px;
}

.single-content .two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 22px 0;
    /* style.css 里 .two-column 用的是 column-count:2（多栏流），
       与这里的 grid 冲突会让文字被切成两块并错位，必须显式收口 */
    -webkit-column-count: 1;
    column-count: 1;
    -webkit-column-gap: normal;
    column-gap: normal;
}

/* 只有一段内容时不强行留半栏空白 */
.single-content .two-column:not(:has(> :nth-child(2))) {
    grid-template-columns: minmax(0, 1fr);
}

/* 保险：万一还有 wpautop 留下的空段落，别让它占掉一格 */
.single-content .two-column > :empty {
    display: none;
}

/* 每一栏各自成卡片，左右对照更清楚 */
.single-content .two-column > * {
    margin: 0;
    padding: 14px 16px;
    background: var(--sc-bg);
    border: 1px solid var(--sc-line);
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.85;
}

.single-content .two-column > :last-child {
    margin-bottom: 0;
}

.single-content .two-column > * > :first-child {
    margin-top: 0;
}

/* 彩色标签 [colorful]
   老样式把图标绝对定位到左侧 -20px（跑到正文外面），这里收回成 flex 里的普通元素 */
.single-content .marks {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    padding: 0;
}

.single-content .marks > svg,
.single-content .marks > i {
    position: static;
    left: auto;
    top: auto;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    font-size: 18px;
    color: #b7791f;
}

.single-content .marks > .mark {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 11px 16px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.8;
}

.single-content .marks > .mark > :last-child {
    margin-bottom: 0;
}

/* 提示气泡 [tips] */
.single-content .tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin: 0 3px;
    vertical-align: -3px;
    cursor: help;
}

.single-content .tooltip .tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: var(--sc-brand);
    border: 0;
    border-radius: 50%;
    /* 正文段落有 text-indent:2em，会继承到圆圈里把「?」顶出去，必须归零 */
    text-indent: 0;
    line-height: 1;
    letter-spacing: 0;
    line-height: 1;
}

.single-content .tooltip .tip-content {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    z-index: 30;
    width: max-content;
    max-width: 280px;
    padding: 9px 13px;
    font-size: 13px;
    line-height: 1.7;
    color: #fff;
    text-align: left;
    background: #1f2430;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .22);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 4px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    pointer-events: none;
}

.single-content .tooltip .tip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border: 5px solid transparent;
    border-top-color: #1f2430;
}

.single-content .tooltip:hover .tip-content,
.single-content .tooltip:focus-within .tip-content {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

/* --------------------------------------------------------------------------
 * 7. 装饰背景 [colorzhi]
 * -------------------------------------------------------------------------- */
.single-content .bjcsssrc {
    margin: 22px 0;
    padding: 0;
    border-radius: var(--sc-radius);
    overflow: hidden;
}

.single-content .bjcsssrc > section {
    padding: 24px 26px;
}

.single-content .bjcsssrc > section > :last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
 * 8. 时间轴 [line]
 * -------------------------------------------------------------------------- */
.single-content .timeline {
    position: relative;
    margin: 26px 0;
    padding: 6px 0 6px 30px;
    border-left: 2px solid var(--sc-line);
}

/* 标题：正文 h3 自带 30px 缩进 + 左侧竖条，放在时间轴里会抢戏，这里去掉 */
.single-content .timeline .timeline-title {
    margin: 0 0 18px -30px !important;
    padding: 0 0 0 30px;
    font-size: 17px;
    line-height: 1.5;
}

.single-content .timeline .timeline-title::after {
    display: none;
}

.single-content .timeline > h5 {
    position: relative;
    /* 正文 h5 的 margin 带 !important，必须同等优先级才能盖掉 */
    margin: 22px 0 6px !important;
    padding: 0;
    font-size: 15px !important;
    font-weight: 700;
    color: var(--sc-ink);
    line-height: 1.6;
    text-shadow: none;
}

/* 主题给每个 h5 都塞了一个小圆点（:after），时间轴里用下面自己的节点 */
.single-content .timeline > h5::after {
    display: none;
}

.single-content .timeline > h5::before {
    content: "";
    position: absolute;
    left: -36px;
    top: 6px;
    width: 10px;
    height: 10px;
    /* 主题原规则在 :before 上留了 padding 与负 margin，不归零会拉成椭圆 */
    margin: 0;
    padding: 0;
    font-size: 0;
    background: #fff;
    border: 2px solid var(--sc-brand);
    border-radius: 50%;
    box-shadow: 0 0 0 3px #fff;
}

.single-content .timeline > h5:first-of-type::before {
    background: var(--sc-brand);
}

/* --------------------------------------------------------------------------
 * 9. 视频 [videos] [mp4]
 * -------------------------------------------------------------------------- */
.single-content .video-content {
    margin: 22px 0;
}

.single-content .video-content > a.videos {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--sc-shadow);
}

.single-content .video-content > a.videos img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform .4s ease;
}

.single-content .video-content > a.videos:hover img {
    transform: scale(1.03);
}

.single-content .video-content > a.videos::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .04), rgba(0, 0, 0, .34));
    pointer-events: none;
}

.single-content .video-content > a.videos > i.be-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    /* 图标字体里的 play 字形偏小且描边奇怪，这里把字号归零，用 CSS 画三角形 */
    font-size: 0;
    line-height: 64px;
    color: #fff;
    text-align: center;
    background: rgba(34, 113, 177, .86);
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
    transition: transform .2s ease, background-color .2s ease;
}

/* 图标字体 .be-play 的字形靠 ::before 输出，字号被别处的规则固定成 14px，
   归零失效；直接去掉字形，只留下面画的三角形 */
.single-content .video-content > a.videos > i.be-play::before {
    content: none;
}

.single-content .video-content > a.videos > i.be-play::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    margin: -12px 0 0 -7px;
    border-style: solid;
    border-width: 12px 0 12px 19px;
    border-color: transparent transparent transparent #fff;
}

.single-content .video-content > a.videos:hover > i.be-play {
    background: #2271b1;
    transform: scale(1.08);
}

.single-content .video-content .wp-video,
.single-content .video-content video {
    width: 100% !important;
    max-width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
 * 10. 广告位 [ad]
 * -------------------------------------------------------------------------- */
.single-content .post-tg {
    margin: 24px 0;
    padding: 10px;
    text-align: center;
    background: var(--sc-bg);
    border: 1px dashed var(--sc-line-strong);
    border-radius: var(--sc-radius);
}

.single-content .post-tg img {
    max-width: 100%;
    height: auto;
}

/* --------------------------------------------------------------------------
 * 11. 文章类：[insert_posts] [tags_post] [wplist]
 * -------------------------------------------------------------------------- */
.single-content .insert-post {
    margin: 14px 0;
    padding: 0;
    background: #fff;
    border: 1px solid var(--sc-line);
    border-radius: var(--sc-radius);
    box-shadow: var(--sc-shadow);
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease;
}

.single-content .insert-post:hover {
    transform: translateY(-2px);
    box-shadow: var(--sc-shadow-hover);
}

.single-content .insert-post > a {
    display: flex;
    align-items: stretch;
    gap: 16px;
    padding: 14px;
    text-decoration: none;
}

.single-content .insert-post .thumbnail {
    flex: 0 0 200px;
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
}

.single-content .insert-post .thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-content .insert-post .right-content {
    flex: 1 1 auto;
    min-width: 0;
}

.single-content .insert-post .entry-title {
    margin: 2px 0 8px;
    font-size: 16px;
    line-height: 1.5;
}

.single-content .insert-post .entry-title a {
    color: var(--sc-ink);
    text-decoration: none;
}

.single-content .insert-post .entry-title a:hover {
    color: var(--sc-brand);
}

.single-content .insert-post .archive-content {
    font-size: 13.5px;
    line-height: 1.8;
    color: var(--sc-ink-2);
}

.single-content .insert-post .posts-mate {
    margin-top: 8px;
    font-size: 12px;
    color: var(--sc-ink-3);
}

/* 标签文章 [tags_post] */
.single-content .Content-tag-article {
    margin: 24px 0;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--sc-line);
    border-radius: var(--sc-radius);
    box-shadow: var(--sc-shadow);
}

.single-content .Content-tag-article .magazine-top {
    margin-bottom: 12px;
}

.single-content .Content-tag-article .magazine-top img {
    max-height: 26px;
    width: auto;
}

.single-content .Content-tag-article .magazine-list-hot {
    padding: 10px 0;
    border-bottom: 1px dashed var(--sc-line);
}

.single-content .Content-tag-article .magazine-list-hot:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.single-content .Content-tag-article .magazine-hot-box {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.single-content .Content-tag-article .magazine-title {
    flex: 0 0 auto;
    padding: 2px 10px;
    font-size: 12px;
    color: var(--sc-brand);
    background: var(--sc-brand-soft);
    border-radius: 999px;
}

.single-content .Content-tag-article .magazine-hot-box > a {
    color: var(--sc-ink);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.single-content .Content-tag-article .magazine-hot-box > a:hover {
    color: var(--sc-brand);
}

/* 商品卡片 [wplist]
   老实现用 float 拼版，而且「立即购买」只在 mouseover 时才显示（触屏永远点不到）。
   这里改成左图右文的网格，按钮常显。 */
.single-content .wplist-item {
    position: relative;
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    align-items: start;
    gap: 8px 18px;
    margin: 24px 0;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--sc-line);
    border-radius: 12px;
    box-shadow: var(--sc-shadow);
    transition: box-shadow .2s ease;
}

.single-content .wplist-item:hover {
    box-shadow: var(--sc-shadow-hover);
}

.single-content .wplist-item-img {
    /* 显式占第 1 列并跨满内容行（用 -1 只对显式行有效，这里必须写死跨度） */
    grid-column: 1;
    grid-row: 1 / span 4;
    width: auto;
    max-width: none;
    float: none;
    clear: none;
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
}

.single-content .wplist-title,
.single-content .wplist-des,
.single-content .wplist-oth,
.single-content .wplist-item .wplist-btn {
    grid-column: 2;
}

.single-content .wplist-item-img img,
.single-content .wplist-item img {
    display: block;
    float: none;
    width: 100%;
    height: 100%;
    min-height: 100px;
    margin: 0;
    border-radius: 10px;
    object-fit: cover;
}

/* 清浮动用的空 div 在网格里会占掉一格，直接隐藏 */
.single-content .wplist-item > .clear {
    display: none;
}

.single-content .wplist-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--sc-ink);
}

.single-content .wplist-des {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.8;
    color: var(--sc-ink-2);
}

.single-content .wplist-oth {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 2px 0 0;
}

.single-content .wplist-res {
    padding: 0;
    border: 0;
    background: none;
}

.single-content .wplist-price {
    float: none;
    margin: 0;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
    color: #e02424;
}

.single-content .wplist-old-price {
    float: none;
    margin: 0;
    font-size: 13px;
    color: var(--sc-ink-3);
}

.single-content .wplist-old-price del {
    text-decoration: line-through;
}

/* 购买按钮：默认就显示，不依赖悬停 */
.single-content .wplist-item .wplist-btn {
    display: block !important;
    float: none;
    margin: 6px 0 0;
    padding: 0;
    line-height: normal;
    background: none !important;
    border: 0;
}

.single-content .wplist-item .wplist-btn > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 24px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #fff !important;
    text-decoration: none;
    background: #e02424;
    border-radius: 999px;
    transition: background-color .2s ease, transform .2s ease;
}

.single-content .wplist-item .wplist-btn > a:hover {
    color: #fff !important;
    background: #c81c1c;
    transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
 * 12. 内嵌网页 [iframe]
 * -------------------------------------------------------------------------- */
.single-content .iframe-class,
.single-content iframe.iframe-class {
    display: block;
    max-width: 100%;
    margin: 20px 0;
    border: 1px solid var(--sc-line) !important;
    border-radius: var(--sc-radius);
    background: #fff;
}

/* --------------------------------------------------------------------------
 * 13. 登录 / 邀请码表格 / FAQ
 * -------------------------------------------------------------------------- */
.single-content .isdo-login-box,
.single-content .isdol-box {
    margin: 24px 0;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--sc-line);
    border-radius: var(--sc-radius);
    box-shadow: var(--sc-shadow);
}

/* 登录 / 注册切换：正文里的 ul 会带项目符号，这里做成两个等宽胶囊 */
.single-content .isdo-login-box {
    /* 主题的 .login-tab 是给登录浮层用的：宽 350px、宽屏下 700×600 且 flex 横向。
       放进正文要还原成普通块级卡片，否则会撑出大片空白。 */
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    top: auto;
}

.single-content .isdo-login-box .isdol-form,
.single-content .isdo-login-box .isdol-register-form {
    width: 100%;
    min-height: 0;
}

.single-content .isdo-login-box .isdol-icon {
    width: 100%;
    margin: 0 0 14px;
}

.single-content .isdo-login-box .isdol-icon input {
    width: 100%;
    box-sizing: border-box;
}

.single-content .isdo-login-box .isdol-submit-button {
    width: 100%;
    margin: 0;
}

.single-content .isdo-login-box .isdol-submit-button input[type="submit"] {
    width: 100%;
    border-radius: 8px;
}

/* 「记住我的登录信息」是 <em>，会被正文的 red + italic 带偏 */
.single-content .isdo-login-box .rememberme em,
.single-content .isdo-login-box .rememberme label {
    font-style: normal;
    font-weight: 400;
    color: var(--sc-ink-2);
}

.single-content .isdo-login-box .tabs-header {
    display: flex;
    gap: 8px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.single-content .isdo-login-box .tabs-header li {
    flex: 1 1 0;
    margin: 0 !important;
    padding: 10px 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    color: var(--sc-ink-2);
    list-style: none;
    background: var(--sc-bg);
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease;
}

.single-content .isdo-login-box .tabs-header li::before {
    content: none;
}

.single-content .isdo-login-box .tabs-header li.current {
    color: #fff;
    background: var(--sc-brand);
}

.single-content .isdo-login-box .tabs-header li.current:hover {
    color: #fff;
}

.single-content table {
    width: 100%;
    margin: 20px 0;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    border: 1px solid var(--sc-line);
    border-radius: var(--sc-radius);
    overflow: hidden;
}

.single-content table th {
    font-weight: 600;
    color: var(--sc-ink);
    background: var(--sc-bg);
}

.single-content table th,
.single-content table td {
    padding: 10px 14px;
    border: 0;
    border-bottom: 1px solid var(--sc-line);
    text-align: left;
}

.single-content table tr:last-child td {
    border-bottom: 0;
}

/* --------------------------------------------------------------------------
 * 14. 响应式
 * -------------------------------------------------------------------------- */
@media screen and (max-width: 782px) {
    .single-content .two-column {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .single-content .wechat-key-form {
        flex-direction: column;
    }

    .single-content .wechat-key-form .wechat-right {
        flex: 0 0 auto;
        flex-direction: row;
        align-items: center;
        gap: 14px;
        padding: 14px 0 0;
        border-left: 0;
        border-top: 1px dashed var(--sc-line-strong);
    }

    .single-content .insert-post > a {
        flex-direction: column;
    }

    .single-content .insert-post .thumbnail {
        flex: 0 0 auto;
        width: 100%;
        max-height: 200px;
    }

    /* 手机上商品卡片回到单列：图在上，文字在下 */
    .single-content .wplist-item {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .single-content .wplist-item-img {
        grid-row: auto;
        width: 100%;
        max-width: 240px;
    }

    .single-content .tab-group .tab-nav li a {
        padding: 8px 12px;
        font-size: 13px;
    }

    .single-content .code,
    .single-content code {
        font-size: 12.5px;
        padding: 13px 14px;
    }

    .single-content .video-content > a.videos > i.be-play {
        width: 50px;
        height: 50px;
        margin: -25px 0 0 -25px;
        font-size: 17px;
        line-height: 50px;
    }
}

/* --------------------------------------------------------------------------
 * 15. 夜间模式
 * -------------------------------------------------------------------------- */
.night .single-content,
.night .isdo-fold {
    --sc-line: #2f3542;
    --sc-line-strong: #3a4150;
    --sc-ink: #e5e9f0;
    --sc-ink-2: #b6bdc9;
    --sc-ink-3: #8b93a1;
    --sc-brand: #5aa9e6;
    --sc-brand-soft: #1d2733;
    --sc-bg: #1a1f27;
    --sc-shadow: 0 1px 3px rgba(0, 0, 0, .4);
    --sc-shadow-hover: 0 6px 18px rgba(0, 0, 0, .55);
}

.night .isdo-fold,
.night .single-content .hide-content-boxs,
.night .single-content .hide-content-box,
.night .single-content .wechat-key-form,
.night .single-content fieldset,
.night .single-content .insert-post,
.night .single-content .Content-tag-article,
.night .single-content .wplist-item,
.night .single-content .isdol-box,
.night .single-content .isdo-login-box {
    background: #1e242d;
}

.night .single-content .tab-group > section.active,
.night .single-content .tab-group .tab-nav li.active a {
    background: #1e242d;
    border-color: #2f3542;
}

.night .single-content .tab-group .tab-nav li.active a {
    border-bottom-color: #1e242d;
}

.night .single-content .isdo-pw-input,
.night .single-content .wechat-key-form #wpbox {
    color: #e5e9f0;
    background: #151a21;
    border-color: #3a4150;
}

.night .single-content .reply-read {
    background: #1d2733;
    border-color: #2b3a4b;
}

.night .single-content .reply-pass {
    color: #e5e9f0;
    background: #2a2416;
    border-color: #4a3d1c;
}
