/* 引用基础样式（供 TinyMCE 编辑器与前台共用） */
blockquote,
.post-content blockquote,
.content blockquote {
    margin: 10px 0;
    padding: 10px 15px;
    border-left: 4px solid #1890ff;
    border-radius: 0 4px 4px 0;
    max-width: 100%;  /* 引用块宽度 */
    display: flex;
    align-items: center;  /* 引用内文字上下居中 */
}
/* 引用多色：后台编辑器「引用」下拉插入的 class（文章正文 .post-content .content 内优先） */
blockquote.bq-blue,
.post-content blockquote.bq-blue,
.content blockquote.bq-blue   { border-left-color: #1890ff; background: rgba(24,144,255,0.08); }
blockquote.bq-red,
.post-content blockquote.bq-red,
.content blockquote.bq-red    { border-left-color: #ff4d4f; background: rgba(255,77,79,0.08); }
blockquote.bq-orange,
.post-content blockquote.bq-orange,
.content blockquote.bq-orange { border-left-color: #fa8c16; background: rgba(250,140,22,0.08); }
blockquote.bq-green,
.post-content blockquote.bq-green,
.content blockquote.bq-green  { border-left-color: #52c41a; background: rgba(82,196,26,0.08); }
blockquote.bq-purple,
.post-content blockquote.bq-purple,
.content blockquote.bq-purple { border-left-color: #722ed1; background: rgba(114,46,209,0.08); }
blockquote.bq-gray,
.post-content blockquote.bq-gray,
.content blockquote.bq-gray   { border-left-color: #595959; background: rgba(0,0,0,0.04); }

.changelog-section {
    margin: 15px 0;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
}

.changelog-section:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.changelog-title {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    border-radius: 8px;
    position: relative;
    font-weight: 500;
    color: #333;
}

.changelog-title:hover {
    background: #f8f9fa;
}

.changelog-title span:first-child {
    font-size: 15px;
}

.changelog-toggle {
    width: 22px;
    height: 22px;
    line-height: 20px;
    text-align: center;
    border-radius: 50%;
    background: #f0f0f0;
    color: #666;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.changelog-title.active .changelog-toggle {
    transform: rotate(45deg);
    background: #2196F3;
    color: #fff;
}

.changelog-content {
    padding: 0 20px 15px;
    display: none;
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

.changelog-content p {
    margin: 8px 0;
    padding-left: 20px;
    position: relative;
}

.changelog-content p:before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: #2196F3;
    border-radius: 50%;
}

/* 动画效果 */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.changelog-content.show {
    animation: slideDown 0.3s ease forwards;
}

/* 文章内容样式 */
/* 图片样式 */
.post-content img {
    position: relative;
    cursor: zoom-in;
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 10px auto;
}

@media screen and (max-width: 768px) {
    .post-content {
        padding: 0 10px;
    }
    .post-content img {
        width: 100% !important;
        margin: 10px 0;
    }
}

.post-content img::after {
    content: "点击可放大查看";
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.post-content img:hover::after {
    opacity: 1;
}

/* 代码块样式 */
.post-content pre {
    position: relative;
    background: #282c34;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
    color: #abb2bf;
    font-family: Consolas, Monaco, 'Andale Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
    overflow-x: auto;
}

/* 代码高亮样式 */
.post-content pre .keyword {
    color: #c678dd;
}
.post-content pre .property {
    color: #56b6c2;
}
.post-content pre .value {
    color: #98c379;
}
.post-content pre .number {
    color: #d19a66;
}
.post-content pre .string {
    color: #98c379;
}
.post-content pre .comment {
    color: #5c6370;
    font-style: italic;
}

.lightbox-tip {
    position: relative;
    padding: 20px 45px 20px 60px;
    margin: 15px 0;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    background: #ff7043;
    border: none;
    box-shadow: 0 2px 8px rgba(255,112,67,0.3);
    transition: all 0.3s ease;
    color: #fff;
    display: flex;
    align-items: center;
}

.lightbox-content {
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: #fff;
    line-height: 1.6;
    font-size: 15px;
    flex: 1;
}

.lightbox-tip::before {
    content: "\f06a";
    font-family: "FontAwesome";
    position: absolute;
    left: 15px;
    font-size: 24px;
    color: #fff;
    opacity: 0.9;
}

.lightbox-close {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    font-size: 14px;
    transition: all 0.3s ease;
    user-select: none;
    color: #fff;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) rotate(180deg);
}

/* 不同类型的提示样式 */
.lightbox-tip.info {
    background: #2196F3;
    box-shadow: 0 2px 8px rgba(33,150,243,0.3);
}
.lightbox-tip.info::before {
    content: "\f05a";
}

.lightbox-tip.success {
    background: #4caf50;
    box-shadow: 0 2px 8px rgba(76,175,80,0.3);
}
.lightbox-tip.success::before {
    content: "\f00c";
}

.lightbox-tip.warning {
    background: #ff9800;
    box-shadow: 0 2px 8px rgba(255,152,0,0.3);
}
.lightbox-tip.warning::before {
    content: "\f071";
}

.lightbox-tip.danger {
    background: #f44336;
    box-shadow: 0 2px 8px rgba(244,67,54,0.3);
}
.lightbox-tip.danger::before {
    content: "\f06a";
}

/* 文章内容列表样式 */
.post-content ul,
.post-content ol {
    margin: 15px 0;
    padding-left: 20px;
    line-height: 1.8;
}

.post-content ul {
    list-style: disc;
}

.post-content ol {
    list-style: decimal;
}

.post-content ul li,
.post-content ol li {
    margin: 8px 0;
    color: #333;
    font-size: 15px;
}

.post-content ul ul,
.post-content ol ol {
    margin: 5px 0;
    padding-left: 15px;
}

.post-content ul ul {
    list-style: circle;
}

.post-content ul ul ul {
    list-style: square;
}

.post-content ol ol {
    list-style: lower-alpha;
}

.post-content ol ol ol {
    list-style: lower-roman;
}

/* 列表项悬停效果 */
.post-content ul li:hover,
.post-content ol li:hover {
    color: #2196F3;
    transition: color 0.3s ease;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .post-content ul,
    .post-content ol {
        padding-left: 15px;
    }
    
    .post-content ul li,
    .post-content ol li {
        font-size: 14px;
    }
}

/* 引言样式 */
.post-content blockquote {
    border-left: 5px solid #1E9FFF;
    background: #f8f8f8;
    padding: 15px;
    border-radius: 0 4px 4px 0;
    margin: 15px 0;
    color: #333;
    font-size: 15px;
    line-height: 1.8;
}

.post-content blockquote p {
    margin: 0;
    padding: 0;
}

.post-content blockquote p:first-child {
    color: #1E9FFF;
    font-weight: 500;
    margin-bottom: 10px;
}

/* 颜色引用块：不需要额外的首行间距，避免影响“上下居中”的观感 */
.post-content blockquote.bq-blue p:first-child,
.post-content blockquote.bq-red p:first-child,
.post-content blockquote.bq-orange p:first-child,
.post-content blockquote.bq-green p:first-child,
.post-content blockquote.bq-purple p:first-child,
.post-content blockquote.bq-gray p:first-child {
    margin-bottom: 0;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .post-content blockquote {
        padding: 12px;
        font-size: 14px;
    }
} 