/* =========================
 * 独立短代码样式
 * ========================= */

/* ---------- toggle_content ---------- */
.lingxyh-aum-toggle-content {
    margin-bottom: 10px;
    overflow: visible;
    line-height: 1.9;
}

.lingxyh-aum-toggle-header {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 10px 0 5px;
}

.lingxyh-aum-toggle-title {
    margin: 0;
    font-size: 18px;
    font-size: 1.8rem;
    font-weight: bold;
}

.lingxyh-aum-toggle-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lingxyh-aum-toggle-expand-btn {
    padding: 2px 15px;
    background: #666666b3;
    border: 0;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: all .3s; 
    transition: transform 0.5s ease;
}

.lingxyh-aum-toggle-expand-btn:hover {
    background: #333333b3;
    transform: translateY(-3px);
}

.lingxyh-aum-toggle-body {
    overflow: hidden;
    padding-bottom: 20px;
}

.lingxyh-aum-toggle-body.collapsed {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.lingxyh-aum-content-border {
    position: relative;
    padding: 15px;
    border: 1px solid rgb(0 0 0 / 10%);
    border-radius: 10px;
}

.lingxyh-aum-content-main {
    margin-bottom: 15px;
}

.lingxyh-aum-content-translation { 
    padding-top: 10px;
}

.lingxyh-aum-content-translation[hidden] {
    display: none !important;
}

.lingxyh-aum-toggle-switch-container {
    position: absolute;
    right: 0;
    bottom: 0;
    transform: translate(-50%, 50%);
}

.lingxyh-aum-toggle-switch-btn {
    cursor: pointer;
    border: 0;
    padding: 5px 10px;
    border-radius: 5px;
    background: #666666b3;
    color: #fff;
    transition: all .3s; 
    transition: transform 0.5s ease;
}

.lingxyh-aum-toggle-switch-btn:hover {
    background: #333333b3;
    transform: translateY(-3px);
}

.lingxyh-aum-toggle-content p {
    text-align: justify;
    margin: 10px 0;
}

/* ---------- custom_title / 译文标题 ---------- */
.lingxyh-aum-content-subtitle-box {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lingxyh-aum-content-subtitle-box h3,
.lingxyh-aum-content-subtitle-box h4 {
    flex: 0 0 auto;
}

.single-content .lingxyh-aum-toggle-content .lingxyh-aum-content-subtitle-box h3 {
    border-left: 24px solid #dd3333b3 !important;
}

.lingxyh-aum-content-title-line {
    display: block;
    height: 1px;
    border-top: 1px solid rgb(0 0 0 / 10%);
    flex: 1;
}

@media screen and (max-width: 440px) {
    .lingxyh-aum-toggle-content .lingxyh-aum-content-subtitle-box h3 {
        border-left-width: 10px !important;
    }
}

@media screen and (max-width: 768px) {
    .lingxyh-aum-toggle-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .lingxyh-aum-toggle-buttons {
        width: 100%;
        justify-content: flex-start;
    }
}

/* ---------- note / tips ---------- */
.x-zhushi a {
    color: #dd3333b3 !important;
    cursor: pointer;
    font-weight: bold;
    font-style: normal;
}

.x-wzsm em {
    font-style: normal !important;
}

.x-wzsm .zm {
    position: relative;
    top: -10px;
    right: 5px;
    margin-right: -8px;
    opacity: .8;
}

.x-wzsm .zm em {
    position: relative;
    right: 5px;
    font-weight: bold;
}

.x-wzsm a {
    color: #dd3333b3 !important;
}

.tooltip_templates {
    display: none !important;
}

/* 独立 tooltip，不再依赖 Text Hover / Tooltipster */
.lingxyh-shortcode-tooltip {
    position: fixed;
    display: none;
    z-index: 999999;
    box-sizing: border-box;
    max-width: 300px;
    padding: 15px;
    color: #333;
    background: #fff;
    border: 1px solid rgb(0 0 0 / 10%);
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    font-size: 14px;
    line-height: 1.5;
    pointer-events: none;
}

.lingxyh-shortcode-tooltip.is-visible {
    display: block;
}

/* ---------- tu / tuwen ---------- */
.x-img {
	width: 16px !important;
    height: 16px !important;
    display: inline !important;
    transform: translateY(3px);
}
.single-content .x-img {
    transform: translateY(0px);
}
.x-hide {
    display: none !important;
}

/* [tuwen] 切换按钮不提供 CSS；按钮结构由用户自行放置和定义样式。 */

.x-text.missing {
    background: #ffffffb3;
    color: #dd3333b3;
    border: 2px solid #dd3333b3;
    font-size: 1rem;
    font-weight: bold;
}
