/* ============================================
   Handsome emlog 补充样式
   在原版 handsome.min.css 基础上做少量 emlog 适配覆盖
   ============================================ */

/* emlog 文章卡片适配 */
.post-meta.wrapper-lg.padder-v { padding: 18px 24px; }
.hs-post-tags { margin-top: 10px; }
.hs-tag {
    display: inline-block;
    background-color: rgba(35,183,229,0.1);
    color: #23b7e5;
    border-radius: 3px;
    padding: 1px 8px;
    margin: 2px 4px 2px 0;
    font-size: 12px;
}
.hs-tag:hover { background-color: #23b7e5; color: #fff; }
.hs-topflg {
    display: inline-block;
    background-color: #f05050;
    color: #fff;
    font-size: 11px;
    padding: 1px 8px;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: 2px;
}
.hs-list-sort {
    display: inline-block;
    background-color: rgba(114,102,186,0.12);
    color: #7266ba;
    font-size: 11px;
    padding: 1px 8px;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: 2px;
}

/* 分页 */
.hs-pagination { display: inline-flex; gap: 6px; }
.hs-pagination a, .hs-pagination span {
    display: inline-block;
    min-width: 32px;
    padding: 6px 10px;
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 4px;
    color: #3a3f51;
    font-size: 12.5px;
}
.hs-pagination .current { background: #23b7e5; color: #fff; border-color: #23b7e5; }

/* 评论区卡片 */
.hs-comment-section { padding: 20px 24px; }
.hs-comment { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #e8ecf1; }
.hs-comment .hs-comment-avatar { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; }
.hs-comment-children { margin-left: 40px; border-left: 2px solid #e8ecf1; padding-left: 12px; }
.hs-comment-meta { font-size: 13px; }
.hs-comment-time { font-size: 11px; color: #98a6ad; margin-left: 8px; }
.hs-comment-content { font-size: 13px; margin: 4px 0; }
.hs-com-reply { background: none; border: none; color: #23b7e5; font-size: 12px; cursor: pointer; padding: 0; }
.hs-comment-textarea {
    width: 100%;
    border: 1px solid #e8ecf1;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 13px;
    resize: vertical;
}
.hs-comment-info { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.hs-input {
    flex: 1;
    min-width: 100px;
    border: 1px solid #e8ecf1;
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 13px;
}
.hs-btn {
    background: #23b7e5;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 18px;
    cursor: pointer;
    font-size: 13px;
}
.hs-btn:hover { opacity: 0.9; }
.hs-btn-cancel { background: transparent; color: #98a6ad; border: 1px solid #e8ecf1; }

/* 登录弹窗（补充原版未覆盖的部分） */
.auth-modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 2000; }
.auth-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 2001; }
.auth-modal-card { background: #fff; border-radius: 10px; padding: 28px; width: 380px; max-width: 90vw; box-shadow: 0 10px 40px rgba(0,0,0,0.3); }
.auth-modal-close { position: absolute; right: 14px; top: 10px; background: none; border: none; font-size: 22px; cursor: pointer; color: #98a6ad; }
.auth-form-row { margin-bottom: 12px; }
.auth-form-row input { width: 100%; border: 1px solid #e8ecf1; border-radius: 4px; padding: 10px 12px; font-size: 13px; }
.auth-submit { width: 100%; }
.auth-modal-switch { text-align: center; margin-top: 12px; font-size: 12.5px; }
.auth-modal-switch a { color: #23b7e5; margin: 0 8px; }
.auth-checkbox { font-size: 12.5px; display: block; margin-bottom: 12px; }

/* 夜间模式覆盖（跟随原版 theme-dark） */
html.theme-dark .hs-tag { color: #6db7f0; }
html.theme-dark .hs-comment-section { background: #1c2333; }
html.theme-dark .hs-comment { border-bottom-color: #2a3340; }
html.theme-dark .auth-modal-card { background: #1c2333; }
html.theme-dark .hs-input, html.theme-dark .auth-form-row input, html.theme-dark .hs-comment-textarea { background: #1c2333; color: #c8d1dc; border-color: #2a3340; }

/* 轮播 */
.hs-wheel { border-radius: 6px; overflow: hidden; margin-bottom: 16px; }
.hs-wheel-item { display: none; }
.hs-wheel-item:first-child { display: block; }
.hs-wheel-item img { width: 100%; height: 200px; object-fit: cover; }

/* 移动端适配 */
@media (max-width: 767px) {
    .post-meta.wrapper-lg.padder-v { padding: 14px 16px; }
    .hs-comment-section { padding: 14px; }
}
