html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 引入思源柔黑 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600&display=swap');

/* 电脑端：隐藏移动端头部 */
@media (min-width: 768px) {
    .mobile-author-header {
        display: none !important;
    }
}

/* 手机端样式：压缩高度 + 简约标签样式 */
@media (max-width: 767.98px) {
    body.author .archive-hero {
        display: none !important;
    }
    body.category .mobile-author-header {
        display: none !important;
    }

    /* 核心调整：压缩主容器高度，底部对齐数据栏 */
    .mobile-author-header {
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        background: #fef7fb;
        padding: 16px 16px 16px !important; /* 上下内边距从20/24缩至16，减少高度 */
        min-height: auto !important; /* 取消最小高度限制，自适应内容 */
        height: auto !important; /* 高度自适应 */
        border-radius: 0 0 20px 20px;
        box-shadow: 0 2px 15px rgba(230, 57, 70, 0.05);
        margin: 0 !important;
        left: 0 !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    /* 背景图自适应，无溢出 */
    .author-bg-blur {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: url("<?php echo is_author() ? esc_url($author_avatar_big) : ''; ?>") center center / cover no-repeat !important;
        filter: blur(18px) !important;
        -webkit-filter: blur(18px) !important;
        transform: scale(1.02) !important;
        z-index: 1 !important;
        opacity: 0.18 !important;
        mix-blend-mode: overlay !important;
        overflow: hidden !important;
    }

    /* 内容容器：层级置顶 */
    .author-content-wrap {
        position: relative;
        z-index: 2;
        width: 100%;
        font-family: 'Noto Sans SC', sans-serif;
    }

    /* 头像+昵称行 极致紧凑 */
    .author-avatar-name-row {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: -10px !important; /* 恢复合理间距，避免重叠 */
        width: 100%;
        line-height: 1.1 !important;
    }

    /* 头像容器：取消负边距，避免布局错乱 */
    .author-avatar-outer {
        width: 70px;
        height: 70px;
        flex-shrink: 0;
        margin-bottom: -30px !important; /* 移除错误的负边距 */
        position: relative;
    }
    .author-avatar-wrap {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        border: 3px solid #ffffff;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(251, 123, 66, 0.1);
        transition: transform 0.3s ease-in-out;
    }
    .author-avatar-wrap:hover {
        transform: scale(1.05) rotate(2deg);
    }
    .author-avatar {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }
    .author-verified-badge {
        position: absolute;
        bottom: 0;
        right: 0;
        width: 20px;
        height: 20px;
        z-index: 4;
        filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
    }

    /* 昵称+用户名 紧凑排版 */
    .author-name-group {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-grow: 1;
        line-height: 1.1 !important;
    }
    .author-name {
        font-size: 18px;
        font-weight: 600;
        color: #2d3748;
        margin: 0 !important;
        line-height: 1.1 !important;
        letter-spacing: 0.5px;
    }
    .author-nick {
        font-size: 13px;
        color: #fb7b42;
        margin: 0 !important;
        line-height: 1.1 !important;
        opacity: 0.8;
    }

    /* 个性签名 紧凑贴合 */
    .author-signature {
        font-size: 13px;
        color: #4a5568;
        line-height: 1.2 !important;
        margin-bottom: 6px !important; /* 微调与标签间距 */
        margin-top: 0 !important;
        padding-left: 82px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    /* ========== 核心重构：简约扁平分类标签 ========== */
    .author-categories {
        display: flex;
        flex-wrap: wrap;
        gap: 6px; /* 缩小间距更紧凑 */
        margin-bottom: 8px !important; /* 减少与数据栏间距，压缩整体高度 */
        padding-left: 82px;
    }
    .author-category-tag {
        /* 简约扁平样式：弱化视觉存在感 */
        padding: 2px 10px; /* 更小的内边距 */
        border-radius: 4px; /* 小圆角，扁平风格 */
        font-size: 11px; /* 更小的字体 */
        font-weight: 400; /* 常规字重，不突兀 */
        color: #fb7b42; /* 文字色与品牌色一致 */
        background: rgba(251, 123, 66, 0.1); /* 浅橙背景，低饱和度 */
        border: 1px solid rgba(251, 123, 66, 0.2); /* 细边框，更柔和 */
        box-shadow: none !important; /* 移除阴影，扁平风格 */
        transition: all 0.2s ease;
        position: relative;
        overflow: hidden;
        cursor: pointer;
    }
    /* 标签hover动效：简约变色，不夸张 */
    .author-category-tag:hover {
        transform: none !important; /* 取消缩放位移 */
        background: rgba(251, 123, 66, 0.2); /* 背景加深一点 */
        border-color: rgba(251, 123, 66, 0.3); /* 边框加深一点 */
        color: #f86724;
    }
    /* 标签点击按压效果：简约 */
    .author-category-tag:active {
        background: rgba(251, 123, 66, 0.25);
        transform: none !important;
    }
    /* 标签文字：简约风格 */
    .author-category-tag a {
        text-decoration: none;
        color: inherit;
        display: block;
        transition: none !important; /* 取消文字上浮 */
    }
    /* 移除高光装饰，保持简约 */
    .author-category-tag::before {
        display: none !important;
    }

    /* 数据+按钮行：调整间距适配压缩高度 */
    .author-stats-follow-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-left: 10px !important; /* 恢复左对齐，保持布局统一 */
        width: 100%;
        box-sizing: border-box !important;
        margin-bottom: 0 !important; /* 取消底部间距，让容器底部对齐这里 */
    }

    /* 数据统计栏 */
    .author-stats {
        display: flex;
        gap: 28px;
        padding: 0;
        margin: 0 !important; /* 移除多余外边距 */
        justify-content: flex-start;
        flex-shrink: 0;
         margin-bottom: -15px !important; /* 取消底部间距，让容器底部对齐这里 */
    }
    .stat-item {
        text-align: center;
        cursor: pointer;
        width: 60px; /* 微调宽度适配时间显示 */
        transition: transform 0.2s ease;
    }
    .stat-item:hover {
        transform: translateY(-2px);
    }
    .stat-item a {
        text-decoration: none;
        color: inherit;
        display: block;
    }
    .stat-num {
        font-size: 14px; /* 微调字体大小适配时间显示 */
        font-weight: 600;
        color: #2d3748;
        display: block;
        line-height: 1;
        position: relative;
    }
    .stat-num::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 1px;
        background: #fb7b42;
        transition: width 0.2s ease;
    }
    .stat-item:hover .stat-num::after {
        width: 18px;
    }
    .stat-label {
        font-size: 12px;
        color: #718096;
        margin-top: 3px;
        line-height: 1;
        opacity: 0.9;
    }

    /* 关注按钮：保持原有样式，与整体协调 */
    .mobile-follow-btn {
        padding: 6px 16px !important;
        border-radius: 20px;
        font-size: 13px;
        font-weight: 500;
        border: none;
        color: #ffffff;
        background: linear-gradient(135deg, #f83b3b 0%, #e62e2e 100%);
        cursor: pointer;
        z-index: 3;
        flex-shrink: 0;
        margin: 0 !important;
        box-shadow: 0 3px 8px rgba(248, 59, 59, 0.2);
        transition: all 0.2s ease;
        white-space: nowrap;
    }
    .mobile-follow-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 5px 12px rgba(248, 59, 59, 0.25);
        background: linear-gradient(135deg, #e62e2e 0%, #d42424 100%);
    }
    .mobile-follow-btn.unfollow {
        color: #718096;
        background: linear-gradient(135deg, #f8f8f8 0%, #fafafa 100%);
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }
    .mobile-follow-btn.unfollow:hover {
        background: linear-gradient(135deg, #fafafa 0%, #f2f2f2 100%);
        box-shadow: 0 3px 6px rgba(0,0,0,0.08);
    }
    .mobile-follow-btn:disabled {
        background: #cccccc;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
        opacity: 0.7;
    }
}

/* Toast提示 */
.toast-notice {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    font-family: 'Noto Sans SC', sans-serif;
}
.toast-notice.show {
    opacity: 1;
    visibility: visible;
    top: 70px;
}
.toast-notice.success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}
.toast-notice.error {
    background: linear-gradient(135deg, #f83b3b 0%, #e62e2e 100%);
}