/* --- 表单组（复用 .field 和 .publish 的样式体系） --- */
.form-group {
    margin-bottom: 10px;
    overflow: hidden;
}
.form-group::after {
    content: "";
    display: table;
    clear: both;
}

/* --- 自定义单选框（复用 .btn 的视觉风格） --- */
.custom-input {
    display: inline-block;
    margin-right: 15px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}
.custom-input input[type="radio"] {
    margin-right: 5px;
    vertical-align: middle;
    cursor: pointer;
}

/* --- 输入框组（复用 #search 的 flex 布局和现有 input 样式） --- */
.form-control{
    padding: 8px 10px !important;
}
.input-group-append{
    margin-top: 5px;

}
.input-group-text {
    display: inline-block;
    padding: 4px 10px;
    background-color: #f2f2f2;
    border: 1px solid rgba(60, 60, 70, 0.3);
    border-radius: 3px;
    font-size: 13px;
    color: #333;
    line-height: 24px;
    height: 24px;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0px 1px 0px rgba(66, 66, 77, 0.1);
}
.input-group-text:hover {
    background-color: #eee;
    border-color: rgba(60, 60, 70, 0.5);
}
.input-group-text span {
    cursor: pointer;
    display: block;
    height: 24px;
}

/* --- 小头像预览（复用 img.avatar 的圆角，调整尺寸） --- */
.avatar-2 {
    width: 24px;
    height: 24px;
    border-radius: 3px;
    vertical-align: middle;
}

/* --- 编辑器容器（复用 .box 的内边距概念） --- */
#editor-container {
    min-height: 200px;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 10px;
    background: #fff;
}

/* --- 提交按钮（复用 .btn 的全部样式） --- */
/* .btn 已有完整样式，无需新增 */

/* --- 加载状态（复用 .btn:disabled 的灰色效果） --- */
[data-loading-text] {
    position: relative;
}

/* ==================== 响应式（复用现有 @media） ==================== */
@media (max-width: 768px) {
    .form-group .input-group-text {
        display: inline-block;
        margin: 2px 5px 2px 0;
    }
}

.grid {
    overflow: hidden;
    margin: 0;
    padding: 0;
    list-style: none;
}
.grid > li {
    transition: box-shadow 0.2s;
    float: left;
    width: 16.66666%;
    text-align: center;
    padding: 20px 0;
    margin: 0;
    list-style: none;
    vertical-align: top;
}
.grid > li:hover {
    background-color: #f0f0f0;
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.08) inset;
    cursor: pointer;
    text-decoration: none;
}
.grid > li .con {
    display: block;
    text-decoration: none;
    color: #333;
    padding: 0 10px;
}
.grid > li .con:hover {
    text-decoration: none;
}
.grid > li .con img {
    display: block;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    margin: 0 auto 10px;
    background: #fff;
    border: 1px solid #f0f0f0;
}
.grid > li .con .tit {
    display: block;
    font-size: 14px;
    line-height: 130%;
    text-shadow: 0px 1px 0px #FFF;
    word-wrap: break-word;
    hyphens: auto;
    color: #333;
    margin: 0 0 5px;
    font-weight: 400;
}
.grid > li .con .info {
    display: none;
    font-size: 12px;
    line-height: 1.5;
    color: #888;
    word-break: break-all;
    word-wrap: break-word;
    margin: 0;
    height: 36px;
    overflow: hidden;
}


/* ==================== 响应式（复用现有 @media 断点） ==================== */
@media (max-width: 970px) {
    .grid > li {
        width: 33.333%;
    }
}
@media (max-width: 768px) {
    .grid > li {
        width: 50%;
    }
}
@media (max-width: 640px) {
    .grid > li {
        width: 33.33333%;
        padding: 15px 0;
    }
    .grid > li .con img {
        width: 80px;
        height: 80px;
    }
}


/* 标题区域 */
.show h1.title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.4;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.show h1.title .avatar {
    width: 32px;
    height: 32px;
    border-radius: 5px;
    margin-right: 8px;
    vertical-align: middle;
    border: 1px solid #e2e2e2;
}

.show h1.title .mr-2 {
    margin-right: 8px;
}

.show h1.title .post_update {
    font-size: 12px;
    font-weight: normal;
    color: #999;
    margin-left: 10px;
    padding: 2px 8px;
    background: #f5f5f5;
    border-radius: 3px;
    text-decoration: none;
}

.show h1.title .post_update:hover {
    background: #e2e2e2;
    color: #666;
}

/* 元数据区域 */
.show .data {
    color: #999;
    font-size: 12px;
    margin-bottom: 15px;
}

.show .data span {
    margin-right: 15px;
    display: inline-flex;
    align-items: center;
}

.show .data span i {
    margin-right: 4px;
    font-size: 13px;
}

.show .mb-2 {
    margin-bottom: 15px;
}

.show .mb-3 {
    margin-bottom: 20px;
}

.show .mt-3 {
    margin-top: 15px;
}

/* 内容区域 */
.show .content {
    font-size: 14px;
    line-height: 1.8;
    color: #333;
    word-break: break-all;
    word-wrap: break-word;
}

.show .content p {
    margin: 8px 0;
}
.show .info{
    text-align: center;
    margin-bottom: 15px;
}
/* 网站直达按钮 */
.show .goto {
    display: inline-block;
    padding: 3px 14px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #9ea59e;
}

.show .goto:hover {
    transform: translateY(-1px);
}

.show .goto:active {
    transform: translateY(0);
}

/* 点赞按钮 */
.show .info .zan {
    display: inline-flex;
    align-items: center;
    background: #f5f5f5;
    border: 1px solid #e2e2e2;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.show .info .zan i {
    margin: 0 4px;
    font-size: 14px;
}

.show .info .zan em {
    font-style: normal;
    font-weight: 500;
}

.show .info .zan:hover {
    background: #fff0f0;
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.show .info .zan.zan_on {
    background: #ff6b6b;
    border-color: #ff6b6b;
    color: #fff;
}

.show .info .zan.zan_on:hover {
    background: #ff5252;
    border-color: #ff5252;
}

/* 相关博客区域 */
 .related {
    padding: 10px;
    list-style: none;
    margin: 0;
}

 .related li {
    margin-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
}

 .related li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

 .related li a.con {
    display: flex;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

 .related li a.con:hover {
    background: #f9f9f9;
    text-decoration: none;
}

 .related li a.con img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    margin-right: 12px;
    flex-shrink: 0;
    object-fit: cover;
    border: 1px solid #e8e8e8;
    background: #fff;
}

 .related li a.con div {
    flex: 1;
    min-width: 0;
}

 .related li a.con div h3.tit {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 6px 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

 .related li a.con:hover div h3.tit {
    color: #485CC7;
}

 .related li a.con div .info {
    font-size: 12px;
    color: #999;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .show h1.title {
        font-size: 17px;
    }
    
    .show h1.title .avatar {
        width: 28px;
        height: 28px;
    }
    
     .related li a.con img {
        width: 40px;
        height: 40px;
    }
    
     .related li a.con div h3.tit {
        font-size: 13px;
    }
}

@media (max-width: 640px) {
    .show .data span {
        margin-right: 10px;
        font-size: 11px;
    }
    
    .show .goto {
        padding: 6px 16px;
        font-size: 12px;
    }
}