/* ============================================
   AI领航局 - 文章详情页悬浮侧边栏样式
   左侧：操作按钮 + 文章信息 | 右侧：用户信息 + 文章推荐
   ============================================ */

/* 自定义字体 - Politica Regular */
@font-face {
    font-family: 'Politica';
    src: url('../fonts/politicaregular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* 左侧操作栏 - 160px宽度 */
.ailhj-left-sidebar {
    position: absolute;
    left: -180px;
    top: 0;
    width: 160px;
    min-width: 160px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px 16px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* 右侧用户卡片 - 280px宽度 */
.ailhj-right-sidebar {
    position: absolute;
    right: -300px;
    top: 0;
    width: 280px;
    min-width: 280px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* 左侧日期显示 - 参考效果（使用 Politica 字体） */
.ailhj-left-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 8px;
}

.ailhj-left-date-year {
    font-family: 'Politica', sans-serif;
    font-size: 20px;
    color: #999;
    font-weight: 400;
    margin-bottom: 4px;
}

.ailhj-left-date-mday {
    font-family: 'Politica', sans-serif;
    font-size: 34px;
    color: #333;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 1px;
}

.ailhj-left-date-time {
    font-family: 'Politica', sans-serif;
    font-size: 20px;
    color: #666;
    margin-top: 6px;
}

/* 浏览量（使用 Politica 字体） */
.ailhj-left-views {
    font-family: 'Politica', sans-serif;
    font-size: 13px;
    color: #999;
    margin-bottom: 16px;
}

/* 操作按钮容器 */
.ailhj-left-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
}

/* 操作按钮项（标签+按钮） */
.ailhj-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.ailhj-action-label {
    font-size: 12px;
    color: #666;
}

/* 圆形操作按钮 - 白色背景 */
.ailhj-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

.ailhj-action-btn::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    z-index: 0;
}

.ailhj-action-btn:hover::before {
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.ailhj-action-btn.signin-loader::before {
    background: #f0f0f0;
}

/* 子比主题 SVG 图标样式 */
.ailhj-action-btn icon,
.ailhj-action-btn svg {
    position: relative;
    z-index: 1;
    width: 18px;
    height: 18px;
    transition: all 0.3s ease;
}

.ailhj-action-btn icon svg,
.ailhj-action-btn svg path {
    fill: #666;
    transition: all 0.3s ease;
}

.ailhj-action-btn:hover icon svg,
.ailhj-action-btn:hover svg path {
    fill: #333;
}

/* 点赞/收藏激活状态 - SVG 图标变蓝色 */
.ailhj-action-btn.actived icon svg,
.ailhj-action-btn.actived svg path {
    fill: var(--ailhj-blue);
}

/* 隐藏子比主题按钮中的文字和数字 */
.ailhj-action-btn text,
.ailhj-action-btn count {
    display: none;
}

/* FontAwesome 图标兼容（备用方案） */
.ailhj-action-btn i {
    font-size: 16px;
    color: #666;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.ailhj-action-btn:hover i {
    color: #333;
}

/* 点赞/收藏激活状态 - 图标变蓝色，背景不变 */
.ailhj-action-btn.actived i {
    color: var(--ailhj-blue);
}

/* 已点赞/收藏状态 - 面形图标 + 主题色 */
.ailhj-action-btn-like.actived i.fa-thumbs-up,
.ailhj-action-btn-favorite.actived i.fa-star {
    color: var(--ailhj-blue);
}

/* 未点赞/收藏状态 - 线形图标 */
.ailhj-action-btn-like i.fa-thumbs-o-up,
.ailhj-action-btn-favorite i.fa-star-o {
    color: #666;
}

/* 分享平台图标容器 */
.ailhj-share-platforms {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

/* 子比主题分享按钮容器 */
.ailhj-share-platforms > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* 子比主题分享按钮样式 */
.ailhj-share-platforms .share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}
.drop-newadd icon, .share-btn icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    border-radius: 100%;
    background: #fff;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    flex-shrink: 0;
}
.ailhj-share-platforms .share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

/* 隐藏分享按钮文字 */
.ailhj-share-platforms .share-btn text {
    display: none;
}

/* 分享按钮图标 */
.ailhj-share-platforms .share-btn icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ailhj-share-platforms .share-btn svg {
    width: 16px;
    height: 16px;
}

/* 备用分享图标样式 */
.ailhj-share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.ailhj-share-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

.ailhj-share-icon i {
    font-size: 16px;
    color: #666;
}

/* 分割线 */
.ailhj-sidebar-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ddd, transparent);
    margin: 4px 0;
}

/* 元信息（发布时间、浏览量） */
.ailhj-sidebar-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.ailhj-sidebar-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #666;
    padding: 8px 12px;
    background: #fff;
    border-radius: 8px;
}

.ailhj-sidebar-meta-item i {
    font-size: 16px;
    color: var(--ailhj-blue);
    width: 20px;
    text-align: center;
}

/* 作者信息 */
.ailhj-sidebar-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.ailhj-sidebar-avatar-link {
    display: block;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--ailhj-blue);
    transition: all 0.3s ease;
}

.ailhj-sidebar-avatar-link:hover {
    transform: scale(1.05);
}

.ailhj-sidebar-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ailhj-sidebar-author-name {
    font-size: 15px;
    color: #333;
    font-weight: 600;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 用户数据统计 */
.ailhj-sidebar-user-stats {
    display: flex;
    justify-content: space-around;
    gap: 24px;
    width: 100%;
    padding: 12px 0;
    margin: 8px 0;
}
.avatar-img, .avatar-lg, .avatar-mini, .square-box {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    --this-size: 60px;
    width: var(--this-size);
    height: var(--this-size);
}
.ailhj-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.ailhj-stat-num {
    font-family: 'Politica', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.ailhj-stat-label {
    font-size: 12px;
    color: #999;
}

/* 关注和私信按钮 */
.ailhj-sidebar-user-action {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.ailhj-sidebar-btn-follow,
.ailhj-sidebar-btn-msg {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.ailhj-sidebar-btn-follow {
    background: #fff;
    color: #f03e3e;
    border: 1px solid #fcc2c2;
}

.ailhj-sidebar-btn-follow:hover {
    background: #f03e3e;
    color: #fff;
    text-decoration: none;
}

.ailhj-sidebar-btn-msg {
    background: #fff;
    color: var(--ailhj-blue);
    border: 1px solid #b3d9ff;
}

.ailhj-sidebar-btn-msg:hover {
    background: var(--ailhj-blue);
    color: #fff;
    text-decoration: none;
}

/* 作者其他文章推荐 */
.ailhj-sidebar-posts {
    width: 100%;
    margin-top: 8px;
}

.ailhj-sidebar-posts-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
}

.ailhj-sidebar-posts-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ailhj-sidebar-post-item {
    margin: 0;
    padding: 0;
}

.ailhj-sidebar-post-link {
    display: flex;
    gap: 10px;
    text-decoration: none;
    padding: 8px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #fff;
    transition: all 0.3s ease;
}

.ailhj-sidebar-post-link:hover {
    border: 1px solid var(--main-border-color);
    text-decoration: none;
}

.ailhj-sidebar-post-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 45px;
    border-radius: 6px;
    overflow: hidden;
}

.ailhj-sidebar-post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ailhj-sidebar-post-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.ailhj-sidebar-post-title {
    font-size: 13px;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ailhj-sidebar-post-date {
    font-size: 11px;
    color: #999;
}

/* 响应式 */
@media (max-width: 1400px) {
    .ailhj-right-sidebar {
        display: none;
    }
}

@media (max-width: 1200px) {
    .ailhj-left-sidebar,
    .ailhj-right-sidebar {
        display: none;
    }
}

.pay-box {
    border: 1px solid var(--main-border-color);
    border-radius: 8px !important;
    overflow: hidden;
    padding: 20px !important;
}
.graphic, .page-cover {
    box-shadow: none;
}

/* 隐藏付费属性区域 */
.pay-attr.mt10 {
    display: none !important;
}

/* 隐藏文章头部区域 */
.article-header.theme-box.clearfix.relative {
    display: none !important;
}
.pay-box .pay-tag, .vip-product .vip-tag {
    font-size: 13px;
    padding: 5px 10px;
    right: auto;
    width: auto;
    top: 10px;
    background: var(--this-bg);
    color: var(--this-color);
    border-radius: var(--main-radius) 0 var(--main-radius) 0;
    line-height: 0;
    z-index: 1;
}
.pay-box .pay-mark {
    font-size: 20px;
    margin-right: 3px;
}

.tab-nav-theme li:before, .title-h-center:before, .title-h-left:before, .wp-posts-content>h1.wp-block-heading:before, .wp-posts-content>h1:not([class]):before, .wp-posts-content>h2.wp-block-heading:before, .wp-posts-content>h2:not([class]):before, .wp-posts-content>h3.wp-block-heading:before, .wp-posts-content>h3:not([class]):before, .wp-posts-content>h4.wp-block-heading:before, .wp-posts-content>h4:not([class]):before, .zib-widget>h3:before {
    transition: .4s;
    transform-origin: left;
    position: absolute;
    content: '';
    width: 0px;
    height: 20px;
    background: var(--ailhj-blue);
    left: 0;
    bottom: 8px;
    border-radius: 5px;
    box-shadow: 1px 1px 3px -1px var(--ailhj-blue);
}
.wp-posts-content>h3.wp-block-heading:before, .wp-posts-content>h3:not([class]):before, .wp-posts-content>h4.wp-block-heading:before, .wp-posts-content>h4:not([class]):before {
    width: 25px!important;
    height: 0px!important;
}
.tab-nav-theme li, .title-h-center, .title-h-left, .wp-posts-content>h1.wp-block-heading, .wp-posts-content>h1:not([class]), .wp-posts-content>h2.wp-block-heading, .wp-posts-content>h2:not([class]), .wp-posts-content>h3.wp-block-heading, .wp-posts-content>h3:not([class]), .wp-posts-content>h4.wp-block-heading, .wp-posts-content>h4:not([class]), .zib-widget>h3 {
    position: relative;
    padding-bottom: 8px;
    border-bottom: 1px solid #e4e4e4;
}
.wp-posts-content h1 {
    font-size: 1.2rem;
    color: #191b1f;
}
.wp-posts-content h2 {
    font-size: 1.1rem;
    color: #191b1f;
}
.wp-posts-content h3 {
    font-size: 1rem;
}
.wp-posts-content h4 {
    font-size: 0.9rem;
}
.wp-posts-content h5 {
    font-size: 0.8rem;
}
.wp-posts-content p {
    margin: 1.4em 0;
    padding-left: 10px;
    position: relative;
}
.wp-posts-content:has([data-nav="posts"]){
    font-size: 15px;
    padding: 20px 0;
}
.hidden-box {
    padding: 10px;
    margin: 20px 0;
    border: 1px dashed var(--ailhj-blue);
    border-radius: var(--main-radius);
    position: relative;
}