@charset "UTF-8";

/* ==========================================================================
   Crazydb 主题（提取自 Yii2 线上 crazydb.com 前端模板，适配 Bootstrap 5.3）
   ========================================================================== */

html, body {
    height: 100%;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", sans-serif;
    font-size: 14px;
    color: #333;
}

/* Bootstrap 3 还原：链接默认无下划线（BS5 reboot 默认 underline） */
a {
    color: #337ab7;
    text-decoration: none;
}

a:hover,
a:focus {
    color: #23527c;
    text-decoration: underline;
}

.site-container {
    min-height: 100%;
    height: auto !important;
    position: relative;
}

/* ============ 主区域（格子背景） ============ */
.main {
    background-color: #E2E2E2;
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.2) 75%, transparent 75%, transparent);
    background-size: 12px 12px;
    padding-top: 8px;
    padding-bottom: 200px;
}

/* ============ 页脚 ============ */
#footer {
    background: url("../images/footer-light.jpg") 0 0/100% 100% no-repeat #282828;
    color: #B9B9B9;
    font-size: 13px;
    height: 199px;
    position: absolute;
    bottom: 0;
    width: 100%;
    clear: both;
}

#footer li {
    list-style: none;
}

#copyright {
    border-top: 1px solid #1e1e1e;
    background: #202020;
    color: #636161;
    display: block;
    font-size: 13px;
    height: 34px;
    line-height: 34px;
    text-align: center;
    text-shadow: 1px 1px 1px #000000;
}

#copyright span {
    margin-right: 15px;
}

.more-information {
    height: 165px;
}

#footer h3 {
    color: #325c8c;
    font-size: 20px;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgb(10, 10, 10);
    text-align: center;
    margin-bottom: 10px;
}

#footer .friend-link {
    text-align: center;
}

#footer p {
    font-size: 12px;
    text-align: justify;
    padding: 0 20px 0 0;
    line-height: 21px;
    text-indent: 2em;
}

/* ============ 通用 ============ */
.with-shadow {
    box-shadow: 0 0 5px #999999;
}

.site-index {
    background: #FFF;
    padding: 0 15px 20px;
}

.main-container {
    border-radius: 10px 10px 0 0;
    background: #FFF;
    padding: 0 0 20px;
}

.content {
    padding: 5px 15px;
}

.form-title {
    text-align: center;
}

.no-padding {
    padding: 0 !important;
}

.no-margin {
    margin: 0 !important;
}

.radius-10 {
    border-radius: 10px 10px 0 0;
}

.list-header h1 {
    margin-top: 0;
    padding: 10px 10px 10px 30px;
    background: #F7F7F7;
    border-bottom: 1px solid #EAEAEA;
    font-size: 22px;
}

.list-header i {
    font-size: 0.6em;
    margin-right: 8px;
    color: #E53434;
}

.read-more {
    border: 1px solid #DDDDDD;
    border-top: 1px solid rgba(120, 120, 120, 0.1);
    border-radius: 15px;
    background: #FFFFFF;
    box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.5);
    text-align: center;
    padding: 2px 15px;
    margin-left: 0.5em;
    cursor: pointer;
    color: #333333;
    opacity: 0.7;
    text-decoration: none;
    display: inline-block;
}

.read-more i {
    display: inline;
    margin-right: 4px;
    font-size: 0.8em;
}

a.read-more:hover {
    text-decoration: none;
    color: #333333;
    opacity: 1;
}

/* ============ 顶部 header ============ */
.index-header {
    background: url("../images/blue-bg.png") no-repeat;
    height: 260px;
    background-size: 100% 100%;
}

.index-header .container {
    position: relative;
    top: 50px;
}

.index-navbar {
    margin-top: 50px;
    z-index: 1;
    border-radius: 4px;
    padding-left: 15px;
}

.index-logo {
    padding-right: 0;
    z-index: 2;
    width: 25%;
    flex: 0 0 25%;
}

.index-logo img {
    width: 150px;
    height: 150px;
    box-shadow: -2px 0 5px blue, 0 -2px 5px red, 0 2px 5px yellow, 2px 0 5px green, 2px 0 5px red;
    float: right;
    position: relative;
    left: 20px;
}

/* ============ 文章列表（首页/分类/标签） ============ */
.entry-header h3 {
    margin-top: 0;
    padding-bottom: 4px;
    border-bottom: 2px dashed #DDDDDD;
    font-size: 24px;
}

/* 还原线上 site.css：entry-header 内 span（含分类 label）0.6em + 上移 4px */
.entry-header span {
    font-size: 0.6em;
    position: relative;
    top: -4px;
}

.entry-header .pl-category {
    margin-right: 0.2em;
}

.entry-header a:hover {
    text-decoration: none;
}

.pl-category:hover span {
    background-color: #5CB85C;
}

.entry-content p {
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.8em;
    text-indent: 2em;
}

.entry-content img {
    max-width: 100%;
}

.post-list .entry-content img {
    float: left;
    margin: 0.7em 1em;
}

article.list-group-item:nth-of-type(1) {
    box-shadow: 0 0 3px rgba(153, 153, 153, 0.6);
}

.entry-footer {
    clear: both;
    display: block;
    text-align: right;
    padding-top: 8px;
    padding-bottom: 8px;
    border-top: 1px solid #DDDDDD;
    border-bottom: 1px solid #DDDDDD;
    border-left: 1px solid #DDDDDD;
    background-color: #F7F7F7;
    margin-left: -16px;
    margin-right: -15px;
    color: #555555;
    overflow: hidden;
}

.entry-footer span {
    margin-right: 12px;
    font-size: 12px;
    display: inline-block;
}

.entry-footer i {
    margin-right: 3px;
    color: #999999;
}

.entry-footer a {
    color: #555555;
    text-decoration: none;
}

.post-view .entry-content {
    padding-bottom: 15px;
}

.post-view .entry-footer {
    padding-left: 15px;
    padding-right: 15px;
    margin-left: -15px;
    margin-right: -15px;
}

.post-list {
    border-radius: 10px 10px 0 0;
    background: #FFFFFF;
}

.post-list .list-group-item:hover {
    border-radius: 0 10px 0;
    padding-left: 11px;
    border-left: 5px solid #428BCA;
    background-color: #F8FCFE;
}

.post-list .list-group-item:hover .entry-header h3 {
    border-bottom: 2px dashed orange;
}

.post-list .list-group-item {
    padding-bottom: 0;
    border-top: none;
    border-bottom: none;
    margin-bottom: 0;
    padding-top: 15px;
    border-left: 1px solid rgba(0, 0, 0, 0.125);
}

.list-group-item .entry-content {
    line-height: 1.9em;
    padding-bottom: 8px;
    margin-top: 10px;
}

.list-group-item .entry-content img {
    background-color: #FFFFFF;
    border: 1px solid #DDDDDD;
    border-radius: 4px;
    display: inline-block;
    height: auto;
    line-height: 1.43;
    max-width: 220px;
    max-height: 180px;
    padding: 4px;
    transition: all 0.2s cubic-bezier(0.42, 0, 0.58, 1);
}

/* 分页区（还原线上 panel-footer 视觉） */
.pager-footer {
    padding: 10px 0;
    border-top: 1px solid #DDDDDD;
    background: #F7F7F7;
    margin: 0 -1px -1px;
    border-radius: 0 0 4px 4px;
}

/* ============ 侧边栏 widgets ============ */
.col-md-3.sidebar {
    width: 25%;
    max-width: 285px;
    flex: 0 0 25%;
}

.col-md-9.post-list {
    width: 75%;
    flex: 0 0 75%;
}

.widget {
    margin-bottom: 8px;
}

.widget ul {
    clear: both;
    margin-bottom: 10px;
    background-color: #fff;
    list-style: none outside none;
    padding-left: 0;
}

.widget h3 {
    background-color: #F7F7F7;
    border-bottom: 1px solid #EAEAEA;
    border-radius: 10px 10px 0 0;
    font-size: 15px;
    font-weight: 400;
    line-height: 2.5em;
    height: 2.5em;
    margin: 0;
    padding-left: 20px;
    cursor: pointer;
    position: relative;
}

.widget h3 i {
    margin-right: 1em;
}

.widget ul li {
    border-bottom: 1px solid #EEEEEE;
    border-left: 3px solid transparent;
    color: #999999;
    display: block;
    margin-left: -1px;
    overflow: hidden;
    padding: 6px 15px 6px 10px;
}

.widget ul li a {
    color: #555555;
    text-decoration: none;
}

.widget ul li a:hover {
    color: #2A6496;
}

.aside-comments ul a:hover {
    color: #2A6496;
}

.aside-comments .comment-avatar {
    margin-right: 6px;
    vertical-align: middle;
}

.aside-tags div {
    background-color: #fff;
    padding: 10px;
}

.aside-tags a {
    font-size: 18px;
    display: inline-block;
    line-height: 1.5em;
    margin: 0 5px 5px 0;
    opacity: 0.8;
    text-decoration: none;
}

.aside-tags .badge {
    padding: 2px 15px;
    opacity: 0.8;
    font-weight: normal;
}

.aside-tags a:hover {
    text-decoration: none;
    opacity: 1;
}

.widget .more-link {
    border-top: 1px solid #EEEEEE;
    font-size: 14px;
    padding: 6px 15px 6px 13px;
    color: #999999;
    margin: 0 -10px -10px -10px;
}

.about-me-content { font-size: 14px; line-height: 1.7; color: #666; }
.about-me-content p { margin: 0 0 8px; }
.about-me-content a { color: #337AB7; }

.rss-feed {
    position: relative;
    top: 1px;
    display: inline-block;
    height: 15px;
    width: 15px;
    margin-top: 5px;
    margin-left: 5px;
    background: url("../images/rss_feed15.png") no-repeat;
    background-size: 15px;
}

/* ============ 文章详情页 ============ */
#content {
    background: #FFF;
    border-radius: 10px 10px 0 0;
    margin-bottom: 8px;
    padding: 15px;
}

#content .entry-header {
    text-align: center;
}

#content .entry-header h1 {
    font-size: 28px;
    border-bottom: 2px dashed #DDDDDD;
    margin-top: 0;
    padding-bottom: 4px;
}

.entry-content h2 {
    font-size: 1.4rem;
    margin: 1.2em 0 0.5em;
    border-bottom: none;
}

.entry-content h3 {
    font-size: 1.25rem;
    margin: 1em 0 0.5em;
    border-bottom: none;
}

.entry-content h4 {
    font-size: 1.1rem;
    margin: 1em 0 0.5em;
    border-bottom: none;
}

#content .entry-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px 0;
    padding-right: 10px;
    border-bottom: 2px dashed #DDDDDD;
    margin-top: -4px;
    padding-bottom: 8px;
    margin-bottom: 1em;
    color: #666666;
}

#content .entry-meta span {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    margin-right: 12px;
}

#content .entry-meta i {
    margin-right: 3px;
    color: #999999;
}

/* 面包屑 */
.breadcrumbs {
    background-color: #F7F7F7;
    border-bottom: 1px solid #EAEAEA;
    border-radius: 10px 10px 0 0;
    font-size: 15px;
    font-weight: 400;
    height: 2.5em;
    line-height: 2.5em;
    padding-left: 20px;
}

.breadcrumbs i {
    color: #E53434;
    margin-right: 0.5em;
    font-weight: 800;
}

/* ============ 评论 ============ */
.post-comments {
    font-size: 13px;
    line-height: 22px;
    clear: both;
    margin-top: 20px;
}

.comment-list {
    padding-left: 15px;
    margin-bottom: 10px;
}

.comment-panel {
    min-height: 50px;
    padding: 5px 15px 0 0;
    border-bottom: 1px solid #E6E6E6;
}

.comment-panel .avatar {
    float: left;
    margin-right: 10px;
}

.comment-body {
    padding-left: 10px;
    overflow: hidden;
}

.comment-meta {
    color: #7E7E7E;
}

.comment-list .reply-to {
    margin-left: 40px;
    border-left: 2px dashed #DDDDDD;
}

.leave-comment {
    position: relative;
    border-top: 2px dashed #DDDDDD;
    margin-top: 12px;
    padding-top: 12px;
}

/* 还原 row 的负外边距，使 border-top 与 #content .entry-meta 对齐 */
.leave-comment.row {
    margin-left: 0;
    margin-right: 0;
}

.leave-comment label {
    margin-top: 9px;
    color: #555555;
}

.leave-comment .actionPanel {
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#comments {
    border-bottom: 1px dashed #E6E6E6;
    padding-bottom: 5px;
    font-size: 16px;
}

.comment-reply-link {
    color: #5699D0;
    cursor: pointer;
    text-decoration: underline;
}

.comment-captcha {
    margin-top: 20px;
}

.comment-captcha .captcha {
    padding: 4px 4px 0;
    background: #EEEEEE;
    border: 1px solid #DDDDDD;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    display: block;
    text-align: center;
}

/* ============ 用户信息 ============ */
.author-info {
    min-height: 110px;
    margin: 10px;
}

.user-info {
    padding-left: 10px;
}

.user-info div {
    padding: 10px;
    height: 110px;
    width: 100%;
}

/* ============ 用户主页（user/show 个人资料卡片，还原线上 author-info） ============ */
.user-profile-card {
    border: 1px solid #DDDDDD;
    border-radius: 4px 4px 0 0;
    background: #fff;
    padding: 15px;
    margin-bottom: 0;
}

/* clearfix：包含浮动的头像，防止其溢出卡片区域 */
.user-profile-card::after {
    content: '';
    display: block;
    clear: both;
}

.user-profile-card .user-avatar {
    float: left;
    margin-right: 15px;
}

.user-profile-card .user-avatar img {
    border: 1px solid #DDDDDD;
    border-radius: 4px;
    display: block;
}

.user-profile-card .user-meta {
    overflow: hidden;
}

.user-profile-card .user-meta .user-nickname {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.3;
}

.user-profile-card .user-meta .user-detail {
    color: #666;
    font-size: 13px;
    line-height: 1.8;
}

.user-profile-card .user-meta .user-detail a {
    margin-left: 8px;
}

.user-profile-card .user-info-body {
    clear: both;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #E0E0E0;
    color: #555;
    font-size: 14px;
    line-height: 1.8;
}

.user-profile-card .user-info-body:empty {
    display: none;
}

/* 用户文章数 footer（还原线上 entry-footer row） */
.user-post-count {
    background: #fff;
    border: 1px solid #DDDDDD;
    border-top: none;
    border-radius: 0 0 4px 4px;
    padding: 10px 15px;
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

.user-post-count strong {
    color: #333;
}

/* ============ 认证表单（登录/注册/修改密码/修改资料卡片） ============ */
.auth-card {
    background: #fff;
    border: none;
    border-radius: 8px;
    padding: 32px 36px;
    margin: 0 auto 20px;
    max-width: 440px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.auth-card h1 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 24px;
    padding-bottom: 0;
    border-bottom: none;
    color: #222;
    text-align: center;
}

.auth-card .auth-form .form-row {
    margin-bottom: 16px;
}

.auth-card .auth-form .form-row label {
    display: block;
    margin-bottom: 6px;
    color: #444;
    font-size: 13px;
    font-weight: 500;
}

.auth-card .auth-form .form-row input[type="text"],
.auth-card .auth-form .form-row input[type="password"],
.auth-card .auth-form .form-row input[type="email"],
.auth-card .auth-form .form-row textarea {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: #fafafa;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-card .auth-form .form-row input:focus,
.auth-card .auth-form .form-row textarea:focus {
    border-color: #337AB7;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(51, 122, 183, 0.12);
    background: #fff;
}

.auth-card .auth-form .form-hint {
    margin-top: 4px;
    font-size: 12px;
    color: #999;
}

/* 验证码行：图片 + 输入框同行 */
.auth-card .auth-form .captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-card .auth-form .captcha-row .captcha-input {
    flex: 1;
    min-width: 0;
}

.auth-card .auth-form .captcha-row .captcha-input input {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: #fafafa;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-card .auth-form .captcha-row .captcha-input input:focus {
    border-color: #337AB7;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(51, 122, 183, 0.12);
    background: #fff;
}

.auth-card .auth-form .captcha-row .auth-captcha {
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
}

/* 记住我行 */
.auth-card .auth-form .remember-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    user-select: none;
}

.auth-card .auth-form .remember-row input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #337AB7;
    cursor: pointer;
    flex-shrink: 0;
}

/* 提交按钮 */
.auth-card .auth-form .form-submit {
    display: flex;
    align-items: center;
    gap: 16px;
}

.auth-card .auth-form button[type="submit"] {
    flex-shrink: 0;
    padding: 10px 32px;
    border: none;
    border-radius: 6px;
    background: #337AB7;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.auth-card .auth-form button[type="submit"]:hover {
    background: #286090;
}

.auth-card .auth-form .form-submit .form-link {
    margin: 0;
    font-size: 13px;
    color: #888;
}

.auth-card .auth-form .form-submit .form-link a {
    color: #337AB7;
    text-decoration: none;
}

.auth-card .auth-form .form-submit .form-link a:hover {
    text-decoration: underline;
}

.auth-card .form-error {
    color: #A94442;
    background: #F2DEDE;
    border: 1px solid #EBCCD1;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 14px;
    font-size: 13px;
}

/* 旧的 auth-remember 兼容（用于非 auth-card 场景） */
.auth-card .auth-remember {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    user-select: none;
}
.auth-card .auth-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #428BCA;
    cursor: pointer;
}

/* 浮层通知：固定在屏幕中央，不占文档流 */
.flash-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    max-width: min(520px, 90vw);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
    animation: flash-pop 0.25s ease;
}
@keyframes flash-pop {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.95); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.auth-card .auth-tip {
    color: #999;
    font-size: 13px;
    margin-top: 16px;
}

/* 修改资料页头像 */
.user-update .base-profile {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-update .base-profile img {
    border: 1px solid #DDDDDD;
    border-radius: 4px;
}

.user-update .base-profile h3 {
    margin: 0;
    font-size: 18px;
}

/* ============ 标签页 ============ */
ul.tags {
    list-style: none;
    padding-left: 0;
}

ul.tags li {
    width: 30%;
    float: left;
    height: 2em;
    line-height: 2em;
    font-size: 1.1em;
}

/* ============ 错误页 ============ */
.error-page {
    padding: 15px;
}

.error-page h2 {
    color: #ff3620;
    font-weight: bolder;
}

/* ============ 隐藏文章 ============ */
.hidden-post {
    width: 400px;
    padding: 10px;
    border: 1px dashed #DDDDDD;
    border-radius: 15px;
    background: #F7F7F7;
    margin: 10px auto;
}

.hidden-post .label {
    display: block;
    margin-bottom: 8px;
}

.hidden-post-form .input-group {
    margin-top: 0;
}

.hidden-post-form .form-control {
    border-radius: 4px 0 0 4px;
}

.hidden-post-form .input-group-btn .btn {
    border-radius: 0 4px 4px 0;
}

/* 文章详情页「置顶」标记 */
.post-top-label {
    font-size: 14px;
    vertical-align: middle;
    margin-left: 6px;
}

.hidden-post .captcha {
    padding: 0;
    background: #EEEEEE;
    border: 1px solid #DDDDDD;
    border-right: none;
    border-radius: 4px 0 0 4px;
}

/* ============ 其他 ============ */
.scriptAnalyzer {
    display: none;
}

.entry-content blockquote p {
    font-size: 1em;
}

/* ============ 目录（TOC） ============ */
.article-toc {
    background: #FFF;
    border: 1px solid #DDDDDD;
    border-radius: 6px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.article-toc summary {
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
    padding: 10px 16px;
    background: #F7F7F7;
    border-bottom: 1px solid #EAEAEA;
    list-style: none;
    position: relative;
}
.article-toc summary::-webkit-details-marker {
    display: none;
}
.article-toc summary::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 12px;
    color: #999;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s;
}
.article-toc[open] summary::after {
    transform: translateY(-50%) rotate(180deg);
}
.article-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.article-toc li {
    padding: 0;
    font-size: 14px;
    border-bottom: 1px dashed #EEEEEE;
}
.article-toc li:last-child {
    border-bottom: none;
}
.article-toc a {
    color: #555;
    text-decoration: none;
    display: block;
    padding: 8px 16px;
    position: relative;
    transition: all 0.15s;
}
.article-toc a:hover {
    color: #428BCA;
    background: #F8FCFE;
    padding-left: 20px;
}
.toc-level-2 {
    padding-left: 0;
}
.toc-level-2 a {
    font-weight: 600;
}
.toc-level-3 {
    padding-left: 20px;
}
.toc-level-3 a {
    font-weight: 400;
}
.toc-level-3 a::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #428BCA;
    margin-right: 8px;
    vertical-align: middle;
}

/* ============ 表情栏 ============ */
.comment-smilie {
    font-size: 14px;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    line-height: 24px;
}
.smilie-img {
    display: inline-block;
    height: 24px;
    width: 24px;
    overflow: hidden;
    vertical-align: middle;
    white-space: nowrap;
}
.comment-smilie img {
    cursor: pointer;
    margin: 2px 2px 0;
    display: inline-block;
    height: 18px;
    width: 20px;
}
#more_smilie {
    color: #7399bf;
    display: inline-block;
    cursor: pointer;
    margin-left: 4px;
    font-size: 13px;
    vertical-align: middle;
}

/* ============ 邮件通知 ============ */
.email-notify {
    margin: 0;
    font-size: 13px;
    color: #555;
}
.email-notify label {
    font-weight: normal;
    cursor: pointer;
    margin: 0;
    vertical-align: middle;
}

/* ============ 已登录用户信息 ============ */
.comment-author {
    text-align: center;
    margin: 0 auto;
}
.comment-author .avatar-thumb {
    display: block;
    margin: 0 auto 6px;
    border-radius: 4px;
}
.comment-author .nickname {
    font-size: 15px;
    color: #333;
}

/* ============ 提交按钮紧凑 ============ */
.leave-comment .actionPanel .btn-primary {
    padding: 4px 12px;
    font-size: 13px;
}

/* ============ entry-footer h4 缩小 ============ */
.post-view .entry-footer h4 {
    margin: 0;
    padding: 0;
    font-size: 14px;
}

/* Bootstrap 5 兼容：label → badge（还原 Bootstrap 3 .label：75% 字号 + 0.2em/0.6em padding） */
.label {
    display: inline-block;
    padding: 0.2em 0.6em 0.3em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    border-radius: 0.25em;
}

.label-info {
    background-color: #31b0d5;
    color: #fff;
}

.label-default {
    background-color: #777;
    color: #fff;
}

.label-primary {
    background-color: #337ab7;
    color: #fff;
}

.label-success {
    background-color: #5cb85c;
    color: #fff;
}

.label-warning {
    background-color: #f0ad4e;
    color: #fff;
}

.label-danger {
    background-color: #d9534f;
    color: #fff;
}

a .label:hover {
    opacity: 0.9;
}

/* Bootstrap 3 还原：评论数 badge（深灰胶囊，bootstrap 3 .badge 样式） */
.badge {
    display: inline-block;
    min-width: 10px;
    padding: 3px 7px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    background-color: #777;
    border-radius: 10px;
}
.badge:empty {
    display: none;
}
a.badge:hover,
a.badge:focus {
    color: #fff;
    text-decoration: none;
}

/* Bootstrap 3 还原：页脚 h3 顶部间距（bootstrap 3 的 h3 默认 margin-top: 20px） */
#footer h3 {
    margin-top: 20px;
}

/* Bootstrap 3 还原：primary 按钮蓝（#337ab7 系）与分页圆角样式 */
.btn-primary {
    --bs-btn-bg: #337ab7;
    --bs-btn-border-color: #2e6da4;
    --bs-btn-hover-bg: #286090;
    --bs-btn-hover-border-color: #204d74;
    --bs-btn-active-bg: #286090;
    --bs-btn-active-border-color: #204d74;
    --bs-btn-disabled-bg: #337ab7;
    --bs-btn-disabled-border-color: #2e6da4;
}

.pagination > li {
    display: inline-block;
}

.pagination > li > a,
.pagination > li > span {
    position: relative;
    float: left;
    padding: 6px 12px;
    line-height: 1.42857143;
    text-decoration: none;
    color: #337ab7;
    background-color: #fff;
    border: 1px solid #ddd;
    margin-left: -1px;
}

.pagination > li:first-child > a,
.pagination > li:first-child > span {
    margin-left: 0;
    border-bottom-left-radius: 4px;
    border-top-left-radius: 4px;
}

.pagination > li:last-child > a,
.pagination > li:last-child > span {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.pagination > li > a:hover,
.pagination > li > span:hover,
.pagination > li > a:focus,
.pagination > li > span:focus {
    z-index: 2;
    color: #23527c;
    background-color: #eee;
    border-color: #ddd;
}

.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover,
.pagination > .active > a:focus,
.pagination > .active > span:focus {
    z-index: 3;
    color: #fff;
    background-color: #337ab7;
    border-color: #337ab7;
    cursor: default;
}

.pagination > .disabled > span,
.pagination > .disabled > span:hover,
.pagination > .disabled > span:focus,
.pagination > .disabled > a,
.pagination > .disabled > a:hover,
.pagination > .disabled > a:focus {
    color: #777;
    background-color: #fff;
    border-color: #ddd;
    cursor: not-allowed;
}

/* Bootstrap 3 还原：navbar 下拉箭头 caret */
.caret {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 2px;
    vertical-align: middle;
    border-top: 4px dashed;
    border-top: 4px solid \9;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}
.dropdown-toggle .caret {
    opacity: 0.7;
}

/* ============ 归档时间轴（提取自线上 archives.php 内联样式） ============ */
#archives {
    padding: 15px;
}

#archives h2 small {
    padding-left: 5px;
    color: #999999;
}

#archives ul,
#archives ol {
    list-style: none;
}

#archives ol li {
    border-left: none;
}

/* Bootstrap 5 默认 ul padding-left 为 2rem(32px)，线上 Bootstrap 3 为 40px，显式还原以对齐时间轴 */
.archives {
    padding-left: 40px;
}

#archives .first {
    padding-top: 10px;
}

#archives .else {
    padding: 10px 0 0 25px;
}

#archives .else em {
    display: none !important;
}

.archives > li {
    font-size: 1.1em;
    border-left: 6px solid #0FABF8;
    line-height: 1.5em;
}

.archives li em {
    border-radius: 50%;
    background: #0FABF8;
    height: 40px;
    width: 40px;
    line-height: 40px;
    color: #FFFFFF;
    text-align: center;
    display: inline-block;
    margin-left: -23px;
    margin-right: 8px;
    padding-right: 3px;
}

.archives li:hover > a {
    text-shadow: 0 1px 0 #37a4ff;
}

.archives h4,
.archives h3 {
    background: #0FABF8;
    border-radius: 20px;
    height: 40px;
    margin: 0 auto 0 -23px;
    line-height: 40px;
    text-align: center;
    color: white;
    font-weight: bolder;
    font-size: 16px;
}

.archives h3 {
    position: relative;
    width: 80%;
    min-width: 180px;
    padding-top: 0;
}

.archives h4 {
    width: 30%;
    min-width: 120px;
}

.archives time {
    color: #999999;
    font-size: 0.8em;
}

.archives small {
    margin-left: 10px;
    color: #999999;
}

.archives small a {
    color: #999999;
}

.archives small:hover,
.archives small:hover a {
    color: #4a4a4a;
}

.archives .year:hover h3,
.archives .month:hover h4 {
    background: orange;
}

.archives > li.year,
.archives > li.month {
    padding-top: 10px;
}

.archives .future em {
    position: relative;
    top: -4px;
}

/* ============ 详情页细节 ============ */
.post-view .entry-meta .pl-category {
    font-size: 0.9em;
    top: 0;
    margin-right: 6px;
}

.post-view .entry-meta .label-primary a {
    color: #fff;
}

.replyTarget,
.replyTarget a {
    color: #A0A0A0;
}

.comment-panel .avatar {
    float: left;
    margin-right: 10px;
}

.comment-panel.reply-to {
    margin-left: 40px;
    border-left: 2px dashed #DDDDDD;
    padding-left: 10px;
}

.captcha-cover {
    padding: 0 3px;
}

/* 隐藏文章密码提示 */
.badge.text-bg-warning a {
    color: inherit;
}
