/* 
	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;
    }
}

 .copy-code-btn {
            position: absolute;
            top: 8px;
            right: 8px;
            padding: 4px 8px;
            font-size: 12px;
            background: #f1f1f1;
            border: 1px solid #ccc;
            border-radius: 4px;
            cursor: pointer;
            z-index: 10;
            opacity: 0;
            transition: opacity 0.3s;
        }
        pre:hover .copy-code-btn {
            opacity: 1;
        }
        .copy-code-btn.copied {
            background: #4CAF50;
            color: white;
        }
/* Memcached.css */
.mmc-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 16px;
}
.mmc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 20px 0;
}
.mmc-chart-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 24px 0;
}
.mmc-chart-box {
    flex: 1;
    min-width: 280px;
    background: white;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}
.mmc-svg-pie {
    width: 100%;
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto 12px;
}
.mmc-hit-bar-container {
    display: flex;
    align-items: flex-end;
    height: 180px;
    gap: 16px;
    justify-content: center;
    margin: 0 auto 16px;
    width: fit-content;
}
.mmc-hit-bar {
    width: 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: white;
    text-shadow: 0 0 2px rgba(0,0,0,0.7);
    border-radius: 4px 4px 0 0;
    padding-bottom: 4px;
}
.mmc-legend-item {
    display: flex;
    align-items: center;
    margin-top: 6px;
    font-size: 13px;
}
.mmc-legend-color {
    width: 12px;
    height: 12px;
    margin-right: 6px;
    display: inline-block;
}
.mmc-flush-btn {
    background: #d63638;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
}
.mmc-flush-btn:hover {
    background: #dc3337;
}        


/* ========== OpCache Monitor ========== */
.opcache-monitor {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.opcache-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}
.opcache-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.opcache-chart-container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}
.opcache-chart-box {
    flex: 1;
    min-width: 280px;
    background: white;
    padding: 1.25rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}
.opcache-svg-pie {
    width: 100%;
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto 1rem;
}
.opcache-hit-bar-container {
    display: flex;
    align-items: flex-end;
    height: 180px;
    gap: 16px;
    justify-content: center;
    margin: 0 auto 1rem;
    width: fit-content;
}
.opcache-hit-bar {
    width: 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: white;
    text-shadow: 0 0 2px rgba(0,0,0,0.7);
    border-radius: 4px 4px 0 0;
    padding-bottom: 4px;
}
.opcache-legend {
    display: flex;
    align-items: center;
    margin-top: 6px;
    font-size: 13px;
}
.opcache-legend .color {
    width: 12px;
    height: 12px;
    margin-right: 6px;
    display: inline-block;
}
.opcache-table {
    width: 100%;
    margin-top: 1rem;
    border-collapse: collapse;
}
.opcache-table th,
.opcache-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.opcache-table th {
    width: 30%;
    font-weight: 600;
    color: #4b5563;
}        
        

/* ===== 微分享页面时间线样式 ===== */
.cbp_tmtimeline {
    margin: 30px 0;
    padding: 0;
    list-style: none;
    position: relative;
}

.cbp_tmtimeline > li {
    margin-bottom: 40px;
    position: relative;
}

.cbp_tmtimeline > li .cbp_tmtime {
    display: block;
    color: #666;
    font-size: 14px;
    margin-top: 10px;
    font-style: italic;
}

.cbp_tmtimeline > li .cbp_tmlabel {
    background: #fff;
    color: #444;
    padding: 1.5em;
    font-size: 16px;
    line-height: 1.8;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    overflow-x: visible;
}

.cbp_tmtimeline > li .cbp_tmlabel:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.cbp_tmtimeline > li .cbp_tmlabel p,
.cbp_tmtimeline > li .cbp_tmlabel h2,
.cbp_tmtimeline > li .cbp_tmlabel img,
.cbp_tmtimeline > li .cbp_tmlabel pre {
    margin-bottom: 10px;
}

.cbp_tmtimeline > li .cbp_tmlabel h2 {
    font-size: 22px;
    padding-bottom: 10px;
    border-bottom: 3px solid #ddd;
    font-weight: bold;
    color: #333;
}

.cbp_tmtimeline > li .cbp_tmlabel img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cbp_tmtimeline > li:nth-child(even) .cbp_tmlabel {
    background: #f0f7f9;
}

/* 代码块 */
.cbp_tmtimeline > li .cbp_tmlabel pre {
    white-space: pre;
    overflow-x: auto;
    padding: 10px 20px;
    background: #272822;
    color: #66D9EF;
    border: none;
    border-radius: 0;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 20px;
    margin: 20px 0;
    word-wrap: break-word;
}

.cbp_tmtimeline > li .cbp_tmlabel code {
    background: #e9ebec;
    padding: 0 4px 2px;
    margin: 0 2px;
    border-radius: 2px;
    font-family: Consolas, Monaco, monospace;
    font-size: 0.9em;
    color: inherit;
    white-space: nowrap;
}

/* 响应式 */
@media screen and (max-width: 768px) {
    .cbp_tmtimeline > li .cbp_tmlabel {
        padding: 1.2em;
        font-size: 16px;
    }
    .cbp_tmtime {
        font-size: 12px;
        margin-top: 5px;
    }
}       
        