/**
 * TamdBlog is a theme built on Typecho. It's vibrant and stunning, clear and elegant, with a minimalist white color scheme that makes your site the very definition of elegance
 * 
 * @package Tamd Blog
 * @author KAg Design <3150675236@qq.com,me@gsav.cn>
 * @version 1.0.4
 * @link http://gsav.cn/
 *
 * This file is part of Tamdblog.
 * Tamdblog is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 2 of the License, or
 * (at your option) any later version. 
 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.post-content {
    flex: 1;
    min-width: 0;
    transition: box-shadow 0.2s;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    scroll-margin-top: 80px;
    margin-top: 2.2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
}

.post-content h2 {
    font-size: 1.8rem;
    border-bottom: 1px solid #eef2f6;
    padding-bottom: 0.3rem;
    color: #0f172a;
}

.post-content h3 {
    font-size: 1.4rem;
    color: #1e293b;
}

.post-content h4 {
    font-size: 1.2rem;
    color: #334155;
}

.post-content p {
    margin-bottom: 1.2rem;
    color: #1e293b;
}

.post-content ul,
.post-content ol {
    margin: 0.8rem 0 1.2rem 1.8rem;
}

.post-content li {
    margin-bottom: 0.3rem;
}

.post-content code {
    background: #f1f5f9;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #0f172a;
}

.post-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.2rem;
    border-radius: 14px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.toc-wrapper {
    flex: 0 0 280px;
    width: 280px;
    position: sticky;
    top: 84px;
    background: white;
    border-radius: 18px;
    padding: 1.5rem 1.2rem;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f2f5;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.toc-wrapper.hidden {
    display: none;
}

.toc-title {
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid #eef2f6;
    padding-bottom: 0.6rem;
}

.toc-title svg {
    width: 20px;
    height: 20px;
    stroke: #3b82f6;
    stroke-width: 2;
    fill: none;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.toc-list li {
    margin: 0;
    padding: 0;
    line-height: 1.4;
    position: relative;
}

.toc-link {
    display: block;
    padding: 0.45rem 0.75rem;
    border-radius: 5px;
    color: #1e293b;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.15s, color 0.15s, padding-left 0.15s;
    border-left: 3px solid transparent;
    font-weight: 450;
}

.toc-link:hover {
    background: #818b9826;
    color: #25292e;
}

.toc-link.active {
    background: #818b9826;
    color: #000000;
    font-weight: 500;
    padding-left: 1rem;
}

.toc-link.active::after {
    background: #0969da;
    border-radius: 0.375rem;
    content: "";
    height: calc(100% - 0.5rem);
    left: calc(0.5rem * -1);
    top: 0.25rem;
    width: 0.25rem;
    position: absolute;
}

.toc-level-2 {
    padding-left: 0.2rem;
}
.toc-level-2 .toc-link {
    padding-left: 0.75rem;
}
.toc-level-2 .toc-link.active::after {
    left: calc(0.5rem * -1);
}

.toc-level-3 {
    padding-left: 1.6rem;
    font-size: 0.85rem;
}
.toc-level-3 .toc-link {
    padding-left: 0.75rem;
}
.toc-level-3 .toc-link.active::after {
    left: calc(0.5rem * -1);
}

.toc-level-4 {
    padding-left: 2.8rem;
    font-size: 0.8rem;
    color: #475569;
}
.toc-level-4 .toc-link {
    padding-left: 0.75rem;
}
.toc-level-4 .toc-link.active::after {
    left: calc(0.5rem * -1);
}

.toc-empty {
    color: #94a3b8;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    text-align: center;
}

.toc-fab-wrapper {
    display: none;
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.toc-fab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: #1e293b;
    color: white;
    border: none;
    border-radius: 60px;
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(2px);
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(255,255,255,0.08);
    letter-spacing: 0.02em;
}
  
.toc-fab:active {
    transform: scale(0.94);
    background: #0f172a;
}
  
.toc-fab svg {
    width: 20px;
    height: 20px;
    stroke: white;
    stroke-width: 2.2;
    fill: none;
}
  
.toc-fab-badge {
    background: #3b82f6;
    color: white;
    border-radius: 30px;
    padding: 0.1rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.1rem;
}
  
.toc-drawer {
    display: none;
    position: fixed;
    bottom: 5.5rem;
    right: 1.5rem;
    width: min(320px, 80vw);
    max-height: 60vh;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
    padding: 1.5rem 1.2rem;
    overflow-y: auto;
    border: 1px solid rgba(0,0,0,0.03);
    z-index: 9998;
    transition: opacity 0.2s, transform 0.2s;
    transform-origin: bottom right;
}
  
.toc-drawer.open {
    display: block;
    animation: slideUp 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
  
@keyframes slideUp {
    0% { opacity: 0; transform: translateY(20px) scale(0.96); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
  
.toc-drawer .toc-title {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}
  
.toc-drawer .toc-list {
    gap: 0.2rem;
}
  
.toc-drawer .toc-link {
    font-size: 0.88rem;
    padding: 0.4rem 0.6rem;
}
  
.toc-drawer .toc-empty {
    padding: 0.8rem 0;
}

.toc-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.15);
    backdrop-filter: blur(2px);
    z-index: 9997;
    transition: opacity 0.2s;
}
  
.toc-overlay.active {
    display: block;
}

@media (max-width: 800px) {
    .container {
        flex-direction: column;
        gap: 1.5rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .toc-wrapper {
        display: none !important;
    }
    .toc-fab-wrapper {
        display: flex;
    }
    .post-title {
        font-size: 1.8rem;
    }
    .post-content h2,
    .post-content h3,
    .post-content h4 {
        scroll-margin-top: 100px;
    }
}
  
@media (max-width: 480px) {
    .post-content {
        padding: 1rem;
    }
    .post-title {
        font-size: 1.5rem;
        padding-left: 0.8rem;
    }
    .toc-fab {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    .toc-fab svg {
        width: 18px;
        height: 18px;
    }
    .toc-drawer {
        right: 1rem;
        width: calc(100vw - 2rem);
        max-height: 55vh;
        padding: 1.2rem 1rem;
    }
}
  
.demo-highlight {
    background: #eef2ff;
}

/* ==========================================================================
   TamdBlog - 阳光明媚青少年风排版系统 (Production Ready)
   特点：多用清爽彩块、Mac浅色视窗、纯净代码高亮、零视觉噪音
   ========================================================================== */

/* --- 1. 基础全局：阳光清爽 --- */
.tamd-article {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #334155; /* 阳光深灰，比死黑更具现代感 */
    word-wrap: break-word;
}

.tamd-article p {
    margin-bottom: 1.6em;
}

/* --- 2. 统一风格的标题（带明快彩块前缀） --- */
.tamd-article h2 {
    font-size: 1.45em;
    color: #0f172a;
    font-weight: 700;
    margin: 2em 0 1em;
    display: flex;
    align-items: center;
    gap: 10px;
}
/* 统一使用充满活力的明亮蓝方块作为前缀 */
.tamd-article h2::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 1.25em;
    background-color: #0969da; /* 晴空蓝 */
    border-radius: 4px;
}

/* --- 3. 阳光多色彩块 (Callout / Blockquote) --- */
/* 默认引用框：清爽晴空蓝彩块 */
.tamd-article blockquote, .tamd-article .block-info {
    margin: 1.8em 0;
    padding: 16px 20px;
    background-color: #f0f9ff; /* 温柔浅蓝底 */
    border: 1px solid #e0f2fe;
    border-left: 4px solid #3b82f6; /* 动感蓝边 */
    color: #0369a1;
    border-radius: 8px;
}
.tamd-article blockquote p { margin: 0; font-weight: 500; }

/* --- 4. 纯正 Mac 风格浅色代码框 --- */
.tamd-article pre {
    background: #f8fafc; /* 极其干净的浅灰 Mac 视窗底色 */
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 44px 20px 20px; /* 留出顶部 Mac 按钮空间 */
    margin: 1.8em 0;
    overflow-x: auto;
    position: relative;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03); /* 极轻舒适的空气感阴影 */
}

/* Mac 标志性红黄绿三色小圆点 */
.tamd-article pre::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 18px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ff5f56; /* 苹果红 */
    box-shadow: 16px 0 0 #ffbd2e, 32px 0 0 #27c93f; /* 苹果黄、苹果绿 */
}

.tamd-article pre code {
    font-family: 'Fira Code', Menlo, Monaco, Consolas, monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #334155;
    background: transparent !important;
    padding: 0;
}

.tamd-article pre span {
    background: transparent !important;
    text-shadow: none !important;
}
.hljs-keyword, .token.keyword { color: #d946ef; font-weight: 600; }
.hljs-string, .token.string { color: #16a34a; }
.hljs-comment, .token.comment { color: #94a3b8; font-style: italic; }
.hljs-function, .token.function { color: #2563eb; }
.hljs-number, .token.number { color: #ea580c; }

.tamd-article code:not([class*="language-"]) {
    font-family: monospace;
    font-size: 0.9em;
    background: #f1f5f9;
    color: #0f172a; /* 保持高可读性 */
    padding: 3px 6px;
    border-radius: 4px;
    font-weight: 600;
    margin: 0 4px;
    border: none;
}

/* 图片美化 */
.tamd-article img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2em auto;
    border-radius: 20px;
    border: 1px solid #474747;
}

/* 列表圆点统一蓝色小圆点 */
.tamd-article ul { list-style: none; padding-left: 20px; }
.tamd-article ul li { position: relative; margin-bottom: 6px; }
.tamd-article ul li::before {
    content: '';
    position: absolute;
    left: -14px;
    top: 9px;
    width: 6px;
    height: 6px;
    background-color: #3b82f6;
    border-radius: 50%;
}

/* 链接美化 */
.tamd-article a {
    color: #3b82f6;
    text-decoration: none;
    border-bottom: 1px dashed #3b82f6;
}
.tamd-article a:hover {
    color: #1d4ed8;
    border-bottom-style: solid;
}
/* =======================================
   Typecho 原生标签全局美化 (极简黑白悬浮版)
======================================= */

/* 
  1. 引用块 (克制黑白风)
*/
blockquote {
    margin: 20px 0;
    padding: 16px 20px;
    border-left: 4px solid #000; /* 纯黑左边线，极致利落 */
    background: #f8f9fa; /* 极浅灰底色，与纯白网页拉开层次 */
    color: #111;
    font-size: 15px;
    border-radius: 0 4px 4px 0; 
}
blockquote p {
    margin: 0;
}

/* 
  2. 表格 (修复占满全宽与阴影问题)
*/
/* 
  2. 表格 (黑白极简 + 100%满宽 + 圆角修复版)
*/
table {
    width: 100%;
    margin: 25px 0;
    border-collapse: separate; /* 关键：必须用分离模式，否则圆角失效 */
    border-spacing: 0;
    border-radius: 10px; /* 你的圆角回来了 */
    overflow: hidden; /* 裁剪四角的直角部分 */
    border: 1px solid #e5e7eb; /* 外层边框 */
}
th {
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 600;
    padding: 14px 20px;
    text-align: left;
}
td {
    padding: 14px 20px;
    color: #333;
    border-top: 1px solid #e5e7eb; /* 内部横线 */
}

/* 画内部竖线，同时避免最右侧边框和外边框重叠变粗 */
th:not(:last-child), 
td:not(:last-child) {
    border-right: 1px solid #e5e7eb;
}

/* 黑色表头的竖线用深灰过渡，避免白线太刺眼 */
th:not(:last-child) {
    border-right-color: #e5e7eb; 
}

tbody tr:hover td {
    background-color: #f3f4f6;
}

/* 
  3. 视频 (无边框极简)
*/
iframe, video {
    width: 100%;
    aspect-ratio: 16 / 9; /* 黄金比例 */
    border: none;
    border-radius: 20px;
    margin: 25px 0;
    background: #000;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* 极弱阴影防贴地 */
}

/* 
  4. 黑色悬浮长条状音频播放器
*/
audio {
    width: 100%; /* 撑满文章宽度，形成长条状 */
    height: 48px; /* 压低高度，变得更细长 */
    border-radius: 8px;
    margin: 30px 0;
    outline: none;
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.35); /* 强烈的高级悬浮感阴影 */
    background-color: #111; /* 强制黑底 */
}

/* --- 以下是 WebKit 内核 (Chrome/Edge) 播放器魔改魔法 --- */
audio::-webkit-media-controls-enclosure,
audio::-webkit-media-controls-panel {
    background: #111 !important; /* 覆盖自带面板的浅灰色，强制纯黑 */
    border-radius: 8px;
}

/* 利用滤镜将自带的黑灰色按钮、进度条全部反相为白色，与黑底形成对比 */
audio::-webkit-media-controls-play-button,
audio::-webkit-media-controls-timeline,
audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display,
audio::-webkit-media-controls-mute-button,
audio::-webkit-media-controls-volume-slider {
    filter: invert(1) hue-rotate(180deg); 
}


pre {
    position: relative;
}
.copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 2px 8px;
    font-size: 12px;
    background: #44484e41;
    color: #000000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}
.copy-btn:hover {
    opacity: 1;
}
.copy-btn.copied {

}




/* 成功通知 */
.tamd_notice {
    color: #047857; 
    background: #ecfdf5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='22' height='22'%3E%3Cpath fill='%2310b981' d='M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2Zm-1.25 14L6.5 11.75l1.41-1.41L10.75 13.17l5.34-5.34l1.41 1.41Z'/%3E%3C/svg%3E") no-repeat 16px center;
    border: 1px solid #6ee7b7;
    margin: 15px 0;
    padding: 16px 16px 16px 48px;
    border-radius: 10px;
    line-height: 1.6;
}

/* 警告提醒 */
.tamd_warn {
    color: #b45309;
    background: #fffbeb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='22' height='22'%3E%3Cpath fill='%23f59e0b' d='M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2Zm-1 15h2v-2h-2v2Zm0-4h2V7h-2v6Z'/%3E%3C/svg%3E") no-repeat 16px center;
    border: 1px solid #fcd34d;
    margin: 15px 0;
    padding: 16px 16px 16px 48px;
    border-radius: 10px;
    line-height: 1.6;
}

/* 错误高危 */
.tamd_error {
    color: #b91c1c;
    background: #fef2f2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='22' height='22'%3E%3Cpath fill='%23ef4444' d='M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2Zm3.5 12.09l-1.41 1.41L12 13.41l-2.09 2.09l-1.41-1.41L10.59 12L8.5 9.91l1.41-1.41L12 10.59l2.09-2.09l1.41 1.41L13.41 12Z'/%3E%3C/svg%3E") no-repeat 16px center;
    border: 1px solid #fca5a5;
    margin: 15px 0;
    padding: 16px 16px 16px 48px;
    border-radius: 10px;
    line-height: 1.6;
}

/* 普通提示 */
.tamd_tips {
    color: #1d4ed8;
    background: #eff6ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='22' height='22'%3E%3Cpath fill='%233b82f6' d='M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2Zm1 5h-2v2h2V7Zm0 10h-2v-6h2v6Z'/%3E%3C/svg%3E") no-repeat 16px center;
    border: 1px solid #93c5fd;
    margin: 15px 0;
    padding: 16px 16px 16px 48px;
    border-radius: 10px;
    line-height: 1.6;
}

/**
 * 重点彩条提示框
 */
.tamd_blue {
    border-radius: 5px;
    margin: 10px 0;
    padding: 10px 15px;
    border-left: 8px solid #0d6efd;
    color: #0D6EFD;
    background: rgba(13,110,253,0.1);
}
.tamd_redb {
    color: #99152b;
    border-radius: 5px;
    margin: 10px 0;
    padding: 10px 15px;
    border-left: 8px solid #ED0505;
    background: rgba(220, 53, 69, 0.1);
}
.tamd_pink {
    border-radius: 5px;
    margin: 10px 0;
    padding: 10px 15px;
    border-left: 8px solid #ff85c0;
    color: #c41d7f;
    background: #fff0f6;
}
.tamd_green {
    border-radius: 5px;
    margin: 10px 0;
    padding: 10px 15px;
    border-left: 8px solid #52c41a;
    color: #237804;
    background: #f6ffed;
}
.tamd_purple {
    border-radius: 5px;
    margin: 10px 0;
    padding: 10px 15px;
    border-left: 8px solid #9254de;
    color: #531dab;
    background: #f9f0ff;
}
.tamd_orange {
    border-radius: 5px;
    margin: 10px 0;
    padding: 10px 15px;
    border-left: 8px solid #ff9c6e;
    color: #d4380d;
    background: #fff7e6;
}
.tamd_yellow {
    border-radius: 5px;
    margin: 10px 0;
    padding: 10px 15px;
    border-left: 8px solid #fadb14;
    color: #876800;
    background: #feffe6;
}
/**
 * 白底彩条
 */
.tamd_w_lvb {
    margin: 10px 0;
    padding: 10px 15px;
    border: 1px solid #e3e3e3;
    border-left: 4px solid #05B536; 
    background: #FFF;
    border-radius: 4px;
}
.tamd_w_organge {
    margin: 10px 0;
    padding: 10px 15px;
    border: 1px solid #e3e3e3;
    border-left: 4px solid #EC8006;
    background: #FFF;
    border-radius: 4px;
}

.tamd_black {
    border-width: 1px 4px 4px 1px;
    border-style: solid;
    border-color: #3e3e3e;
    margin: 10px 0;
    padding: 15px 15px 15px 35px;
    border-radius: 4px;
}
.tamd_xuk {
    border: 2px dashed rgb(41, 170, 227);
    background-color: rgb(248, 247, 245);
    margin: 10px 0;
    padding: 15px 15px 15px 35px;
    border-radius: 4px;
}

.tamd_card {
    margin: 10px 0;
    padding: 15px 20px;
    background: #ffffff;
    border: 1px solid #eaedf1;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    color: #4a4a4a;
}
.tamd_terminal {
    margin: 10px 0;
    padding: 12px 15px;
    background: #282a36;
    border-radius: 6px;
    color: #50fa7b;
    font-family: Consolas, Monaco, 'Courier New', monospace;
    border-left: 4px solid #bd93f9;
}

/**
 * 细边彩条提示框
 */
.tamd_l_blue {
    border-radius: 5px;
    margin: 10px 0;
    padding: 14px 20px;
    border-left: 6px solid #0d6efd;
    color: #2b70c9;
    background: #f0f7ff;
}
.tamd_l_red {
    border-radius: 5px;
    margin: 10px 0;
    padding: 14px 20px;
    border-left: 6px solid #ff1c1c;
    color: #d93838;
    background: #fff5f5;
}
.tamd_l_pink {
    border-radius: 5px;
    margin: 10px 0;
    padding: 14px 20px;
    border-left: 6px solid #ff85c0;
    color: #c41d7f;
    background: #fff0f6;
}
.tamd_l_green {
    border-radius: 5px;
    margin: 10px 0;
    padding: 14px 20px;
    border-left: 6px solid #52c41a;
    color: #237804;
    background: #f6ffed;
}
.tamd_l_purple {
    border-radius: 5px;
    margin: 10px 0;
    padding: 14px 20px;
    border-left: 6px solid #9254de;
    color: #531dab;
    background: #f9f0ff;
}
.tamd_l_orange {
    border-radius: 5px;
    margin: 10px 0;
    padding: 14px 20px;
    border-left: 6px solid #ff9c6e;
    color: #d4380d;
    background: #fff7e6;
}
.tamd_l_yellow {
    border-radius: 5px;
    margin: 10px 0;
    padding: 14px 20px;
    border-left: 6px solid #fadb14;
    color: #876800;
    background: #feffe6;
}

/* Notion 风悬浮卡片 */
.tamd_card_notion {
    margin: 20px 0;
    padding: 18px 24px;
    background: #ffffff;
    border: 1px solid #eef1f6;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(149, 157, 165, 0.1);
    color: #444a54;
    font-size: 15px;
}

/* 赛博朋克渐变边框 */
.tamd_gradient_glow {
    margin: 20px 0;
    padding: 16px 22px;
    background: #ffffff;
    border-radius: 12px;
    position: relative;
    color: #333;
    border: 1px solid transparent;
    background-image: linear-gradient(#fff, #fff), linear-gradient(135deg, #818cf8, #e040fb);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

/* 盐系毛玻璃透明框 (微灰质感，适合插入碎碎念、日常、树洞文字) */
.tamd_glass_salt {
    margin: 15px 0;
    padding: 14px 20px;
    background: rgba(241, 243, 246, 0.6);
    border: 1px dashed #ced4da;
    border-radius: 12px;
    color: #6c757d;
    backdrop-filter: blur(4px);
}