/*
Theme Name:     ripro-v5 子主题
Theme URI:       https://nihao.com
Description:     ripro-v5 子主题 - 安全自定义修改
Author:          aidong
Author URI:      https://nihao.com
Template:        ripro-v5
Version:         1.0
Text Domain:     ripro-v5-child
*/

/* 这里下面写你自定义的 CSS */

/* 精准控制首页分类文章模块和在右侧齐平的上下间距 */
.home-widget.home-cat-post section.container {
    padding-top: 0rem !important;
    padding-bottom: 2rem !important;
}

/* 文章标题hover颜色全局 #ff5b2d */
a:hover {
    color: #ff5b2d !important;
}

/*首页标题圆圈*/
.post-item .entry-cat-dot>a:first-child::before {
    border: 2px solid rgb(255 80 0);
}

.post-item .entry-cat-dot>a:first-child::before {
    background-color: #fff
}

/*首页 博客列表文章  标题 字号*/
.post-item.item-list .entry-title {
    font-size: 1.3rem;
    font-weight: 400;
    -webkit-line-clamp: 2;
}
/*文章标题字号大小*/
.article-header .post-title {
    font-size: 1.5rem;
    font-weight: 400;
}

/*博客列表文章简介字体大小*/
.post-item .entry-desc {
    color: #a1a1a8;
    margin-top: 4px;
    font-size: .85rem;
    line-height: 1.25;
    white-space: normal;
}

/*侧边栏标题字体*/
.sidebar .widget .widget-title {
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 400
}

/*侧边栏文章列表字体*/
.sidebar .sidebar-ranking-list .ranking-item .ranking-title {
    font-size: 0.9rem;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

/* 覆盖 RiPro 全局默认字体 */
:root {
    --ri-font-sans-serif: "
    font-family: "Microsoft Yahei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft Yahei UI", "Source Han Sans CN", sans-serif !important;
}


/* 确保全站生效 */
body {
    font-family: var(--ri-font-sans-serif) !important;
    color: #333;
}

/* 全局统一所有 icon 颜色为 #ff5b2d */
/*.fas,*/
/*.far,*/
/*.fab,*/
/*.fa,*/
/*[class*="fa-"],*/
/*.r-icon,*/
/*.ri-icon,*/
/*.entry-meta i,*/
.widget-title i,
.navbar i
/*.fas:before,*/
/*.far:before,*/
/*.fab:before*/ {
    color: #ff5b2d !important;
}

/*标签云图标 先加钩子*/
.widget_tag_cloud .widget-title i {
    color: #ff5b2d;
}


/* 右侧侧边栏 滚动吸顶固定 */
.sidebar-wrapper[data-sticky] .sidebar {
  position: sticky;
  top: 20px; /* 距离顶部距离（可自己改） */
  height: fit-content;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: none;
}
.sidebar-wrapper[data-sticky] .sidebar::-webkit-scrollbar {
  display: none;
}

/* ==========================================================================
  