/**
 * Theme Name:        jb51
 * Theme URI:         https://host.wp.com
 * Description:       Custom theme description...
 * Version:           1.0.0
 * Author:            xhr
 * Author URI:        https://example.com
 * Tags:              jb51, blockchain,加密货币，区块链
 * Requires PHP:      8.0
 */

:root {
    --base-font-size: 16px;
    --line-height-scale: 1.8;
}

body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, input, textarea, p, blockquote, th, td, hr, button, article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
    margin: 0;
    padding: 0;
    outline: none;
}

body {
    background: #f1f1f1;
}

a {
    text-decoration: none;
}

ul, p, h1, h2, h3, h4, h5, h6, li {
    list-style: none;
}

.lay {
    width: 100%;
    padding: 20px;
    display: table;
}

.cate-lay {
    width: 100%;
    padding: 20px;
}


.bg-white {
    background: #fff;
}

.mat15 {
    margin-top: 15px;
}

.mb20 {
    margin-bottom: 20px;
}

.mb40 {
    margin-bottom: 40px;
}

/* ==================== 侧边栏基础容器层级 ==================== */
.sidebar {
    margin-bottom: 20px;
    margin-left: 8px;   /* 左外边距 */
    margin-right: 8px;  /* 右外边距 */
    padding: 0 15px;     /* 保持左右内边距 */
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    width: auto;         /* 适应外边距 */
    max-width: 280px;    /* 最大宽度限制 - 更紧凑 */
    box-sizing: border-box;
}

/* 平板设备 (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .sidebar {
        padding: 0 15px;
        margin-left: 5px;
        margin-right: 5px;
        margin-bottom: 15px;
        max-width: 260px;  /* 中等屏幕略小 */
    }
}

/* 手机设备 (max-width: 767px) */
@media screen and (max-width: 767px) {
    .sidebar {
        padding: 0 15px;
        margin-left: 4px;
        margin-right: 4px;
        margin-bottom: 15px;
        max-width: 100%;   /* 小屏幕全宽 */
    }
}

/* 超小屏幕 (max-width: 480px) */
@media screen and (max-width: 480px) {
    .sidebar {
        padding: 0 12px;
        margin-left: 3px;
        margin-right: 3px;
        max-width: 100%;
    }
}

/* 极小屏幕 (max-width: 360px) */
@media screen and (max-width: 360px) {
    .sidebar {
        padding: 0 10px;
        margin-left: 2px;
        margin-right: 2px;
        max-width: 100%;
    }
}



.content-ma {
    margin-bottom: 20px;
    margin-left: 8px;   /* 左外边距 */
    margin-right: 8px;  /* 右外边距 */
}

/* 平板设备 (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .content-ma {
        margin-left: 5px;
        margin-right: 5px;
        margin-bottom: 15px;
    }
}

/* 手机设备 (max-width: 767px) */
@media screen and (max-width: 767px) {
    .content-ma {
        margin-left: 4px;
        margin-right: 4px;
        margin-bottom: 15px;
    }
}

/* 超小屏幕 (max-width: 480px) */
@media screen and (max-width: 480px) {
    .content-ma {
        margin-left: 3px;
        margin-right: 3px;
    }
}

/* 极小屏幕 (max-width: 360px) */
@media screen and (max-width: 360px) {
    .content-ma {
        margin-left: 2px;
        margin-right: 2px;
    }
}

/* 标题区块 - 子层级 */
.sidebar .title-bottom-border {
    width: 100%;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 -15px; /* 抵消父级padding */
    padding: 0 15px 3px;
    box-sizing: border-box;
}

/* 标题文字 - 孙层级 */
.sidebar .title-bottom-border span {
    line-height: 40px;
    font-size: 18px;
    font-weight: normal;
    position: relative;
    text-indent: 10px;
    color: #333;
}

/* 标题左侧装饰线 - 曾孙层级 */
.sidebar .title-bottom-border span:before {
    content: '';
    border-left: 2px solid #0590d6;
    display: inline-block;
    height: 18px;
    position: absolute;
    left: 0;
    bottom: 10px;
}

/* 更多链接 - 孙层级 */
.sidebar .title-bottom-border .more a {
    font-size: 14px !important;
    line-height: 40px;
    color: #1c94ff !important;
    text-decoration: none;
}

.sidebar .title-bottom-border .more a:hover {
    color: #0590d6 !important;
}

/* ==================== 响应式媒体查询 ==================== */

/* 平板设备 (768px - 1024px) */
@media screen and (max-width: 1024px) {

    /* 标题文字 */
    .sidebar .title-bottom-border span {
        font-size: 16px;
        text-indent: 8px;
    }

}


@media (min-width: 768px) {
    .full-screen main {
        --width: 100% !important;
    }

    .full-screen main > div {
        width: 80%;
    }

    .full-screen main > aside {
        width: 17%;
    }
}

.category-title:hover {
    background-color: #1abc9c !important;
    color: #fff;
}


