/* 控制按钮样式 */
.control-btn-list {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 0 0 10px 0;
    padding: 8px;
    align-items: center;
    background: #f0f9ef;
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px rgba(44, 62, 80, 0.05);
}

.control-btn-list .btn-item {
    height: 32px;
    line-height: 32px;
    padding: 0 16px;
    border-radius: 6px;
    background: #ffffff;
    font-size: 13px;
    color: #4a6572;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    border: 1px solid #e0f1d8;
}

.control-btn-list .btn-item.selected {
    background: #27ae60;
    color: #ffffff;
    font-weight: 500;
    border-color: #27ae60;
}

.control-btn-list .btn-item:hover {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border-color: #27ae60;
}

.control-btn-list .btn-item.selected:hover {
    background: #2ecc71;
    color: #ffffff;
    border-color: #2ecc71;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .control-btn-list {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .control-btn-list .btn-item {
        font-size: 12px;
        padding: 0 12px;
    }
}

/* 文章内容图片样式 */
.content {
    text-align: left;
    font-size: 16px;
    line-height: 1.6;
}

.content p {
    margin: 0;
    padding: 0;
    line-height: 1.6; 
    text-align: left;
}

.content p:not(:last-child) {
    margin-bottom: 20px;
}

.content p:has(img) {
    text-align: left;
    font-size: 0;
}

.content img {
    transition: all 0.3s ease;
    width: 23%;
    margin: 1%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: inline-block;
    vertical-align: top;
    cursor: zoom-in;
}

.content.small-image-ctrl img {
    width: 10.5%;
    margin: 1%;
}

.content.image-list-circle img {
    border-radius: 50%;
    overflow: hidden;
}

.content p:not(:has(img)) {
    line-height: 1.6;
    font-size: 16px;
    margin: 1em 0;
    text-align: left;
}

.content a {
    font-size: 16px;
    line-height: 1.6;
}

@media screen and (max-width: 768px) {
    .content img {
        width: 48%;
        margin: 1%;
    }
    
    .content.small-image-ctrl img {
        width: 23%;
        margin: 1%;
    }
}

/* 图片弹出层样式 */
.popup-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

.popup-image.show {
    display: flex;
}

.popup-image img {
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: zoom-out;
}

.popup-image img.loaded {
    opacity: 1;
}

.popup-image .close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.popup-image .close-button:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
} 