/* ArticleSummary.css */
:root {
    --handsome-white: #fff;
    --handsome-black: #000;
    --handsome-gray: #999999;
    --handsome-main: #425AEF;
    --handsome-card-border: #e3e8f7;
    --style-border: 1px solid var(--handsome-card-border);
    --style-border-hover: 1px solid var(--handsome-main);
    /*--style-border-dashed: 1px dashed var(--handsome-theme-op);*/
}

/* 默认主题 */
.gpttheme_default.post-SummaraidGPT {
    background: #f7f9fe;
    border: 1px solid #e3e8f7;
}

.gpttheme_default .SummaraidGPT-title-text {
    color: #363636;
}

.gpttheme_default .SummaraidGPT-explanation {
    background: #fff;
    border: 1px solid #e3e8f7;
    color: #2c3e50;
}

.gpttheme_default #SummaraidGPT-tag {
    color: rgba(60, 60, 67, 0.6);
}

/* Simple主题 */
.gpttheme_simple.post-SummaraidGPT {
    background: #f0f0f0;
    border-color: #e0e0e0;
}

.gpttheme_simple .SummaraidGPT-title-text {
    font-weight: 400;
    font-size: 14px;
    color: #26b373;
}

.gpttheme_simple .SummaraidGPT-explanation {
    background: #fff;
    color: #000;
    border-color: #e0e0e0;
}

.gpttheme_simple #SummaraidGPT-tag {
    color: #666;
}

/* Yanzhi主题 */
.gpttheme_yanzhi.post-SummaraidGPT {
    background: linear-gradient(180deg, rgba(249, 238, 255, 0.54), rgba(191, 223, 255, .35));
    border-color: #f8bbd0;
}

.gpttheme_yanzhi .SummaraidGPT-title-text {
    font-size: 14px;
    font-weight: 700;
    background-image: linear-gradient(to right, #ed9dff, #8f89ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gpttheme_yanzhi .SummaraidGPT-explanation {
    background: #fce4ec;
    color: #d5006d;
    border-color: #f8bbd0;
}

.gpttheme_yanzhi #SummaraidGPT-tag {
    color: #880e4f;
}

/* Menghuan主题 */
.gpttheme_menghuan.post-SummaraidGPT {
    background-color: #f3e5f5;
    border: none;
}

.gpttheme_menghuan .SummaraidGPT-title-text {
    color: #ffeb3b;
}

.gpttheme_menghuan .SummaraidGPT-explanation {
    background: #e1bee7;
    color: #ffeb3b;
    border-color: #f1f8e9;
}

.gpttheme_menghuan #SummaraidGPT-tag {
    color: #33691e;
}

.gpttheme_menghuan.post-SummaraidGPT::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    filter: blur(8px);
    opacity: .4;
    background-image: conic-gradient(from 1.5708rad at 50% 50%, #d6b300 0%, #42A2FF 54%, #d6b300 100%);
    transform: scaleX(.99) scaleY(.95) translateY(2px);
}

/* 黑暗主题 */
.gpttheme_dark.post-SummaraidGPT {
    background: #1d1e22;
    border: 1px solid #3d3d3f;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gpttheme_dark .SummaraidGPT-explanation {
    background: #30343f;
    border: 1px solid #3d3d3f;
    color: #e4e4e4;
}

.gpttheme_dark .SummaraidGPT-title-text {
    color: #F7F7FA;
}

.gpttheme_dark #SummaraidGPT-tag {
    color: #a1a2b8;
}

/* 基础样式 */
.post-SummaraidGPT {
    border-radius: 12px;
    padding: 16px;
    line-height: 1.4;
    margin: 1.5rem auto;  /* 增加上下间距 */
    display: flex;
    flex-direction: column;
    gap: 8px;  /* 增加间距 */
    position: relative;
    z-index: 0;
    box-sizing: border-box;
    width: 100%;
    max-width: 895px;  /* 限制最大宽度 */
    transition: all 0.3s ease;  /* 添加过渡效果 */
}

.SummaraidGPT-title {
    display: flex;
    align-items: center;
    padding: 0 12px;
    cursor: default;
    position: relative;
    margin-bottom: 8px;  /* 增加标题和内容的间距 */
}

.SummaraidGPT-title-text {
    font-weight: 700;
    margin-left: 8px;
    line-height: 1;
    font-size: 16px;
}

.SummaraidGPT-explanation {
    padding: 12px 16px;  /* 增加内容区域内边距 */
    border-radius: 8px;
    line-height: 1.8;  /* 增加行高 */
    display: block;
    text-align: justify;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: 14px;  /* 设置合适的字体大小 */
}

/* 添加新的样式规则 */
.SummaraidGPT-explanation p {
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

.SummaraidGPT-title-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
}

.SummaraidGPT-title-icon .icon {
    font-size: 18px;
}

#SummaraidGPT-tag {
    position: relative;
    font-size: 12px;
    border-radius: 12px;
    margin-left: auto;
    line-height: 12px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .3s;
    opacity: .9;
    overflow: hidden; /* 添加溢出隐藏 */
}

/* 添加扫光动画效果 */
#SummaraidGPT-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    animation: shine 3s infinite linear;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    20% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* 响应式布局优化 */
@media screen and (min-width: 896px) {
    .post-SummaraidGPT {
        width: 895px;
        margin: 2rem auto;  /* 大屏幕增加间距 */
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);  /* 添加阴影效果 */
    }
}

@media screen and (max-width: 895px) {
    .post-SummaraidGPT {
        width: calc(100% - 2rem);
        padding: 12px;  /* 小屏幕减小内边距 */
    }
    
    .SummaraidGPT-explanation {
        padding: 10px 12px;  /* 小屏幕减小内容区域内边距 */
        font-size: 13px;  /* 小屏幕减小字体 */
        line-height: 1.6;  /* 小屏幕减小行高 */
    }
}

.typing-effect {
    border-right: 2px solid black; /* 光标效果 */
    white-space: nowrap; /* 防止换行 */
    overflow: hidden; /* 隐藏超出部分 */
    animation: typing 4s steps(30, end), blink-caret 0.75s step-end infinite; /* 动画效果 */
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: black; }
} 
