/* 日历样式
---------------------------------------------------*/
.cal_loading {
    margin-bottom: 243px;
}

#calendar {
    color: #212529;
}

.calendartop {
    letter-spacing: 3px;
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
    color: #000;
}

.calendartop a {
    font-weight: 100 !important;
}

.calendar {
    margin-bottom: -10px;
    width: 100%;
}

.calendar td {
    text-align: center;
    padding: 1px 10px;
    line-height: 1.6;
}

.calendar td a:link {
    color: #000;
    font-weight: bolder;
    text-decoration: underline;
}

.calendar td a:hover {
    color: #886353;
    text-decoration: none;
}

.calendar tr {
    height: 40px;
}

.day {
    color: #212529;
    background: #eaeaea;
    border-radius: var(--marRadius);
}

.sun {
    color: #333;
}

.week {
    color: #333;
}

    /* ===== 滑动侧边栏样式 ===== */
    .sliding-sidebar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 40%;
        height: 100vh;
        transition: right 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: rgb(255 255 255 / 90%);
        /* 为整个页面添加背景图 */
        background-attachment: fixed;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .sliding-sidebar.active {
        right: 0;
    }
/*
    .sidebar-header {
        padding: 10px;
        display: flex;
        justify-content: flex-end;
        border-bottom: 1px solid #f0f0f0;
        background: #f8f9fa;
    }


    .close-sidebar {
        font-size: 22px;
        color: #666666;
        cursor: pointer;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.2s ease;
    }

    .close-sidebar:hover {
        background: #e9ecef;
        color: #333333;
    }
    */

    /* 侧边栏遮罩层 */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 999;
        visibility: hidden;
        pointer-events: none;
    }

    .sidebar-overlay.active {
        visibility: visible;
        pointer-events: auto;
    }

    /* 移动端适配 */
    @media (max-width: 888px) {
        .sliding-sidebar {
            width: 73%;
        }
    }

    /* 侧边栏内容滚动优化 */
    .sliding-sidebar {
        overscroll-behavior: contain;
    }

    /* 增强磨砂效果 */
    .widget {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        margin-bottom: 20px;
        border-radius: 8px;
    }



    .widget-title {
        padding: 12px;
        color: #333333;
        margin: 0;
    }

    .widget-title h3 {
        margin: 0;
        font-size: 1rem;
        font-weight: normal;
    }

    /* 链接小部件 */
    .widget-link li {
        padding: 12px 20px;
        transition: all 0.2s;
    }

    .widget-link li:hover {
        background: #f8f9fa;
    }

    .widget-link a {
        color: #666666;
        text-decoration: none;
        display: flex;
        align-items: center;
        transition: all 0.2s;
        font-size: 0.95rem;
    }

    .widget-link a:hover {
        color: #4a90e2;
        transform: translateX(3px);
    }

    .widget-link img.rounded {
        border-radius: 50% !important;
        object-fit: cover;
        margin-right: 10px;
    }


    /* 日历小部件 */
    #calendar {
        padding: 18px;
    }

    /* 标签云 */
    .tag-container {
        padding: 12px;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .tags-side {
        display: inline-block;
        padding: 4px 10px;
        background: #f0f0f0;
        border-radius: 4px;
        color: #333333;
        text-decoration: none;
        font-size: 0.9rem;
    }

    /* 分类小部件 */
    .log-classify-f {
        padding: 10px 0;
    }

    .log-classify-f > li {
        padding: 8px 12px;
    }

    .log-classify-f a {
        color: #666666;
        text-decoration: none;
        display: block;
        padding: 3px 0;
        font-size: 0.95rem;
    }

    .log-classify-f a:hover {
        color: #4a90e2;
    }

    .log-classify-c {
        padding-left: 15px;
        margin-top: 3px;
    }

    .log-classify-c li {
        padding: 3px 0;
    }

    /* 最新评论 */
    .comment-info {
      padding: 8px 12px;
      display: flex;
      flex-direction: column;
      color: #333;
      line-height: 1.5;
    }

    .comment-info_img {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        margin-right: 12px;
        object-fit: cover;
    }

    .comm-lates-name {
        font-weight: 500;
        color: #444444;
        font-size: 0.95rem;
    }

    .logcom-latest-time {
        color: #999999;
        font-size: 0.8rem;
    }

    .comment-info a {
        color: #666666;
        display: inline-block;
        text-decoration: none;
        transition: all 0.2s;
        font-size: 0.9rem;
    }

    .comment-info a:hover {
        color: #4a90e2;
    }

    .comment-info hr {
        margin: 18px 0 0;
        border: none;
        border-top: 1px solid #f0f0f0;
    }

    /* 最新/热门文章 */
    .blog-lates {
        padding: 0;
        margin-bottom: 5px;
    }

    .side-cover-image {
        height: 140px;
        background-size: cover;
        background-position: center;
        border-radius: 8px;
        margin-bottom: 12px;
        position: relative;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .side-cover-image:hover {
        transform: scale(1.02);
    }

    .side-title-container {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
        padding: 18px 12px 12px;
    }

    .side-title-container a {
        color: white !important;
        text-decoration: none;
        font-size: 1rem;
        display: block;
        transition: all 0.2s;
    }

    .side-title-container a:hover {
        color: #4a90e2 !important;
    }

    .blog-lates a {
        display: block;
        padding: 14px 20px;
        color: #666666;
        text-decoration: none;
        transition: all 0.2s;
        font-size: 0.95rem;
    }

    .blog-lates a:hover {
        color: #4a90e2;
        background: #f8f9fa;
    }

    /* 搜索框 */
    .search {
        width: calc(100% - 40px);
        padding: 10px 15px;
        margin: 10px 20px;
        border: 1px solid #e0e0e0;
        outline: none;
        font-size: 0.95rem;
    }

    input[type="submit"] {
        background: #4a90e2;
        color: white;
        border: none;
        padding: 8px 16px;
        cursor: pointer;
        margin: 0 20px 15px;
        font-size: 0.95rem;
        width: calc(100% - 40px);
    }

    /* 归档下拉框 */
    .archive {
        width: calc(100% - 40px);
        margin: 10px 10px;
        padding: 12px 30px;
        border: 1px solid #e0e0e0;
        outline: none;
        cursor: pointer;
    }

    .archive:focus {
        border-color: #4a90e2;
        box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    }

    /* 自定义文本小部件 */
    .widget-custom-text ul {
        padding: 18px 20px;
        color: #666666;
        line-height: 1.7;
        font-size: 0.95rem;
    }

    /* 响应式调整 */
    @media (max-width: 768px) {

        .widget-title {
            padding: 14px 18px;
        }

        .bloggerinfo-img {
            width: 90px;
            height: 90px;
        }
    }

    /* 简化链接列表样式 */
    .widget-list {
        padding: 8px 0;
        margin: 0;
    }

    .widget-list li {
        padding: 8px 12px;
        display: flex;
        align-items: center;
    }

    .widget-list li:hover {
        background: #f5f5f5;
    }

    .widget-list li a {
        color: #333;
        text-decoration: none;
        font-size: 14px;
        display: flex;
        align-items: center;
        width: 100%;
        height: 100%;
    }

    .widget-list li a:hover {
        color: #4a90e2;
    }

    /* ===== 简化评论列表样式 ===== */



    .unstyle-li li p {
        margin: 0 0 8px 0;
        font-size: 14px;
        line-height: 1.5;
        color: #333;
        word-wrap: break-word;
    }

    .comm-lates-name {
        font-weight: 600;
        color: #4a90e2;
        font-size: 13px;
        display: inline-flex;
        align-items: center;
    }

    .comm-lates-name::before {
        content: '💕';
        margin-right: 6px;
        opacity: 0.7;
    }

    .logcom-latest-time {
        font-size: 12px;
        color: #888;
        margin-left: 10px;
        display: inline-flex;
        align-items: center;
    }

    .logcom-latest-time::before {
        content: '🕒';
        margin-right: 4px;
        opacity: 0.6;
    }

    hr {
        border: none;
        border-top: 1px solid #e0e0e0;
        margin: 12px 0;
    }



        
/* 侧边栏专用样式 - 不会与其他部分冲突 */
.sidebar-profile {
    padding: 25px 15px;
    border-radius: 6px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    border: none;
}

.sidebar-avatar-box {
    margin: 0 auto 15px;
    width: 90px;
    height: 90px;
    position: relative;
    z-index: 2;
}

.sidebar-avatar-frame {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.8);
    background: #fff;
    padding: 3px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.sidebar-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s;
}

.sidebar-avatar-img:hover {
    transform: scale(1.05);
}

.sidebar-user-info {
    margin-top: 10px;
    position: relative;
    z-index: 2;
}

.sidebar-username {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.sidebar-description {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
    line-height: 1.5;
    padding: 0 10px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.sidebar-admin-link,
.sidebar-login-link,
.sidebar-register-link {
    display: inline-block;
    font-size: 13px;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s;
    padding: 6px 22px;
    border-radius: 14px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    margin: 0 3px;
}

.sidebar-admin-link:hover,
.sidebar-login-link:hover,
.sidebar-register-link:hover {
    background: rgba(255,255,255,0.3);
    color: #fff;
    transform: translateY(-1px);
}

.sidebar-auth-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}



.sidebar-icon {
    margin-right: 5px;
    font-size: 12px;
}