p ,label,li{
    font-size:.86857em;
}

/* 隐藏编辑框上方的插入视频控件 */
#wmd-jw-button,
button#wmd-jw-button {
    display: none !important;
}

/* 隐藏缩略图模式的裁剪参数字段，避免显示多余小框 */
#image-list .ias-crop-fields {
    display: none !important;
}

/* 隐藏 HighSlide imgAreaSelect 裁剪框，避免插入图片后出现异常放大的悬浮控件 */
.ias-outer,
.ias-selection,
.ias-border1,
.ias-border2,
.ias-border3,
.ias-border4,
.ias-handle {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* 附件上传区域：选择文件上传、插入所有文件 按钮蓝色样式 */
#upload-panel .upload-area .upload-file.btn,
#upload-panel .upload-area #insert-all-files {
    background-color: #5e72e4 !important;
    border-color: #5e72e4 !important;
    color: #fff !important;
}
#upload-panel .upload-area .upload-file.btn:hover,
#upload-panel .upload-area #insert-all-files:hover {
    background-color: #4d5fd6 !important;
    border-color: #4d5fd6 !important;
    color: #fff !important;
}

/* 自定义字段：编辑框保持全宽，SEO描述语和自定义缩略图仅一行高度 */
#custom-field input.text,
#custom-field textarea {
    width: 100% !important;
}
#custom-field textarea[name="fields[description]"],
#custom-field textarea[name="fields[thumb]"] {
    height: 2em !important;
    min-height: 2em !important;
    resize: none;
}
p {
    font-size:.86857em;
}
.typecho-label {
    font-size:.86857em;
}
.primary ,.btn-s{
    height: 32px;
    padding-top: 5px;
}
.btn-outline-secondary span{
    font-size: .812rem;
}

/* 根据屏幕分辨率调整页面缩放，解决页面被放大的问题 */
/* 1080p及以下(宽度≤1920px): 80% */
@media (max-width: 1920px) {
    html {
        zoom: 0.8;
    }
}

/* 2K分辨率(1920px<宽度≤2560px): 90% */
@media (min-width: 1921px) and (max-width: 2560px) {
    html {
        zoom: 0.9;
    }
}

/* 超过2K(宽度>2560px): 100% */
@media (min-width: 2561px) {
    html {
        zoom: 1;
    }
}

/* 蓝色额头高度减少三分之一 */
.header.bg-primary {
    padding-bottom: 1rem !important;  /* 原 pb-6 约 3rem，减至 1rem */
}
.header.bg-primary .header-body .row {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;  /* 原 py-4 约 1.5rem，减至 0.5rem */
}

/* 撰写文章页面：压缩额头区域，减少控件间距 */
.header-compact {
    padding-bottom: 0.5rem !important;  /* 进一步压缩蓝色头部 */
}
.header-compact .py-compact {
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
}
.write-post-page .card-header {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}
.write-post-page .card-body {
    padding-top: 0.5rem !important;
    padding-bottom: 0.75rem !important;
}
.write-post-page .form-group {
    margin-bottom: 0.35rem !important;
}
.write-post-page .form-group .form-control-label {
    margin-bottom: 0.15rem !important;
}
/* 标题输入框压缩高度 */
.write-post-page input#title,
.write-post-page input.title.form-control {
    height: 2rem !important;
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}
.write-post-page .url-slug.form-group {
    margin-bottom: 0.35rem !important;
}
.write-post-page .typecho-page-title {
    margin-bottom: 0.15rem !important;
}
.write-post-page .typecho-page-title h3 {
    margin-bottom: 0 !important;
}
/* 撰写页无蓝色额头时，容器上边距 */
.write-post-page.container-fluid {
    margin-top: 0.5rem !important;
}
/* 右侧栏四个控件上移：压缩选项/附件标签、发布日期、分类、标签、高级选项的顶部间距 */
.write-post-page #edit-secondary .typecho-option-tabs.card-header {
    padding-top: 0.4rem !important;
    padding-bottom: 0.4rem !important;
}
.write-post-page #edit-secondary #tab-advance .typecho-post-option:first-child {
    padding-top: 0.4rem !important;
}
.write-post-page #edit-secondary .typecho-post-option.card-body {
    padding-top: 0.4rem !important;
    padding-bottom: 0.4rem !important;
}
.write-post-page #edit-secondary #advance-panel-btn {
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}
/* 顶部导航栏压缩，右侧控件上移 */
.navbar-top .container-fluid {
    padding-top: 0.2rem !important;
    padding-bottom: 0.2rem !important;
}

/* 1080p 下右侧栏字体加大，提升可读性 */
@media (max-width: 1920px) {
    .write-post-page #edit-secondary {
        font-size: 1.05rem;
    }
    .write-post-page #edit-secondary .typecho-label,
    .write-post-page #edit-secondary .form-control-label {
        font-size: 1rem !important;
    }
    .write-post-page #edit-secondary .typecho-option-tabs li a {
        font-size: 1rem !important;
    }
    .write-post-page #edit-secondary .typecho-post-option label,
    .write-post-page #edit-secondary .category-option li label {
        font-size: 1rem !important;
    }
    .write-post-page #edit-secondary .form-control,
    .write-post-page #edit-secondary .form-control-sm {
        font-size: 0.95rem !important;
    }
    .write-post-page #edit-secondary .description {
        font-size: 0.95rem !important;
    }
    .write-post-page #edit-secondary #advance-panel-btn {
        font-size: 0.95rem !important;
    }
}
