/* 
	Description: 自定义 CSS（优化版）
*/

.update-time {
    margin-right: 15px;
    display: inline-block;
}

@media (max-width: 768px) {
    .update-time {
        margin-right: 5px;
    }
}

.article-content h3 {
    border-left: 4px solid #6051e6;
}

.article-content a {
    color: #1276e5;
}

.comment a {
    color: #0000EE;
}

.comment .comt-bought {
    margin-left: 5px;
    width: 8px;
    height: 8px;
    display: inline-block;
    background: #08b708;
    border-radius: 50%;
    padding: inherit;
}

/* 针对 Footnotes Made Easy 插件的锚点链接 */
html {
    scroll-padding-top: 90px;
}

/* 关注公众号区域样式（作用域限定在 .ghide-container） */
.ghide-container .post_hide_box,
.ghide-container .secret-password {
    background: none repeat scroll 0 0 #fcffff;
    border: 1px dashed #24b4f0;
    color: #123456;
    padding: 10px;
    border-radius: 9px;
    margin: 18px 0;
    overflow: hidden;
    clear: both;
}

.ghide-container .gzhhide {
    background: #fcffff;
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
    position: relative;
    border: 1px dashed #24b4f0;
}

.ghide-container .gzhhide span {
    color: #e74c3c;
}

.ghide-container .gzhhide .gzhtitle {
    position: relative;
    font-size: 17px;
    font-weight: 700;
    color: #6c80a7;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ghide-container .gzhhide .gzhtitle .fa {
    position: absolute;
    left: 0;
    font-size: 35px;
    top: 0;
}

.ghide-container .gzhhide .gzhtitle i {
    font-style: normal;
}

.ghide-container .gzhhide .gzhcode {
    position: absolute;
    width: 110px;
    height: 110px;
    right: 20px;
    top: 45%;
    margin-top: -50px; /* 微调居中：110/2 = 55 */
}

.ghide-container .gzhbox {
    display: flex;
    align-items: center;
}

.ghide-container .gzhbox input {
    flex: 0 0 40%;
    border: none;
    color: #737373;
    font-size: 10px;
    height: 35px;
    line-height: 35px;
    background: #fff;
    border: 1px solid #24b4f0;
    border-radius: 4px;
    outline: none;
    padding: 0 10px;
}

.ghide-container .gzhbox button {
    flex: 0 0 20%;
    margin-left: 8.8%;
    border: none;
    background: #3b8cff;
    color: #fff;
    padding: 5px 0;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
}

/* 补充 focus 样式（可访问性） */
.ghide-container .gzhbox button:focus {
    outline: 2px solid #3b8cff;
    outline-offset: 2px;
}

.ghide-container .gzh-content {
    padding: 20px 110px 20px 0;
    color: #333;
}

/* 移动端适配 */
@media (max-width: 576px) {
    .ghide-container .gzhhide .gzhcode {
        width: 80px;
        height: 80px;
        right: 10px;
        margin-top: -40px;
    }

    .ghide-container .gzhbox input {
        flex-basis: 50%;
    }

    .ghide-container .gzh-content {
        padding-right: 90px;
    }
}

/* 展开/收缩效果 */
.collapse-wrap {
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.collapse-wrap .xControl {
    padding: 10px;
    background-color: #f7f7f7;
    border-bottom: 1px solid #ddd;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.3s;
}

.collapse-wrap .xControl:hover {
    background-color: #e9e9e9;
}

.collapse-wrap .xControl:focus {
    outline: 2px solid #007cba;
    outline-offset: -2px;
}

.collapse-wrap .xControl i {
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.collapse-wrap .xContent {
    display: none;
    padding: 15px;
    background-color: #fff;
    line-height: 1.6;
}

/* 亮点功能（liangdian） */
.article-content p {
    overflow: hidden;
}

.article-content .liangdian {
    margin: 0 -2% 10px 0;
    padding: 0;
    overflow: hidden;
    clear: both;
    counter-reset: liangdian-counter;
}

.article-content .liangdian li {
    float: left;
    position: relative;
    margin: 0 2% 2% 0;
    width: 31.33333%;
    padding: 20px 20px;
    border-radius: 2px;
    text-align: center;
    border: 2px solid #f5f5f5;
    color: #333;
    font-size: 14px;
    height: 125px;
    overflow: auto;
    line-height: 1.6;
    counter-increment: liangdian-counter;
}

.article-content .liangdian li::before {
    content: counter(liangdian-counter);
    position: absolute;
    top: 0;
    left: 0;
    background-color: #f5f5f5;
    color: #555;
    line-height: 1;
    padding: 4px 5px;
    font-size: 14px;
    border-radius: 0 0 2px 0;
}

.article-content .liangdian strong {
    display: block;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #444;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.article-content .liangdian li:hover {
    border-color: #0ae;
}

.article-content .liangdian li:hover::before {
    background-color: #0ae;
    color: #fff;
}

/* 响应式：平板及以下 */
@media (max-width: 768px) {
    .article-content .liangdian li {
        width: 48%;
    }
}

/* 响应式：手机（统一使用 576px 作为小屏断点） */
@media (max-width: 576px) {
    .article-content .liangdian {
        margin: 0 -2% 20px 0;
    }

    .article-content .liangdian li {
        height: 102px;
        padding: 18px 10px;
        line-height: 1.4;
        font-size: 11px;
    }

    .article-content .liangdian li::before {
        font-size: 14px;
        padding: 2px 4px;
        height: 16px;
    }

    .article-content .liangdian strong {
        font-size: 14px;
    }
}