@charset "utf-8";
/* ==========================================================================
   作者信息 / 热门作品 侧边栏模块
   结构参考 52hbtv.com 的 .sidebar-author-module，配色适配本站红色主题
   ========================================================================== */

/* ---------- 整体容器 ---------- */
.sidebar-author-module {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, .08);
    overflow: hidden;
    margin-bottom: 20px;
}

/* ---------- 作者信息卡片 ---------- */
.sidebar-author-module .author-card {
    padding: 24px 20px 18px;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
}

/* 覆盖站点旧版作者列表页残留的 .author-card 样式 */
.sidebar-author-module .author-card,
.sidebar-author-module .author-card:hover {
    border: 0;
    border-bottom: 1px solid #f1f5f9;
    border-radius: 0;
    box-shadow: none;
    -webkit-transform: none;
    transform: none;
    -webkit-transition: none;
    transition: none;
}

.sidebar-author-module .author-avatar {
    position: relative;
    width: 82px;
    height: 82px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #eef1f5;
    background: #f3f5f8;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
}

.sidebar-author-module .author-avatar .avatar-initial {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 600;
    color: #fff;
    background: -webkit-linear-gradient(135deg, #ef4444 0%, #c31432 100%);
    background: linear-gradient(135deg, #ef4444 0%, #c31432 100%);
}

.sidebar-author-module .author-avatar img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: block;
    -o-object-fit: cover;
    object-fit: cover;
    z-index: 2;
}

.sidebar-author-module .author-info {
    margin-top: 2px;
}

.sidebar-author-module .author-name {
    margin-top: 12px;
    font-size: 18px;
    font-weight: 600;
    color: #1a2a3a;
    line-height: 1.4;
}

.sidebar-author-module .author-name .auth-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 400;
    color: #c81e1e;
    background: #fdecec;
    border-radius: 12px;
    vertical-align: 2px;
    white-space: nowrap;
}

.sidebar-author-module .author-desc {
    margin-top: 8px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-author-module .btn-follow {
    display: inline-block;
    width: auto;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin-top: 14px;
    padding: 6px 30px;
    line-height: 1.5;
    background: #d90000;
    color: #fff !important;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    -webkit-transition: background .3s ease;
    transition: background .3s ease;
}

.sidebar-author-module .btn-follow:hover {
    background: #b30000;
    color: #fff;
}

/* ---------- 热门作品区域 ---------- */
.sidebar-author-module .hot-works {
    padding: 16px 20px 18px;
}

.sidebar-author-module .hot-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a2a3a;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
    margin-bottom: 4px;
}

.sidebar-author-module .hot-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-author-module .hot-list li {
    padding: 9px 0;
    border-bottom: 1px solid #f8fafc;
    margin: 0;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    font-size: 14px;
}

.sidebar-author-module .hot-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-author-module .hot-list li a {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: start;
    -webkit-align-items: flex-start;
    align-items: flex-start;
    gap: 10px;
    text-decoration: none;
    color: #334155;
    font-size: 14px;
    line-height: 1.5;
    -webkit-transition: color .2s ease;
    transition: color .2s ease;
}

.sidebar-author-module .hot-list li a:hover {
    color: #d90000;
}

.sidebar-author-module .hot-rank {
    -webkit-flex: 0 0 22px;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    font-style: normal;
    color: #94a3b8;
    background: #f1f5f9;
}

.sidebar-author-module .hot-rank.top1 {
    background: #d90000;
    color: #fff;
}

.sidebar-author-module .hot-rank.top2 {
    background: #fe9a3f;
    color: #fff;
}

.sidebar-author-module .hot-rank.top3 {
    background: #ffd08a;
    color: #8a4b00;
}

.sidebar-author-module .hot-title-text {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-author-module .hot-meta {
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    font-size: 12px;
    color: #b0b8c4;
    padding-top: 3px;
    white-space: nowrap;
}

.sidebar-author-module .hot-more {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
    text-align: center;
}

.sidebar-author-module .btn-more {
    display: inline-block;
    padding: 6px 20px;
    font-size: 13px;
    color: #d90000;
    background: #fdecec;
    border-radius: 16px;
    text-decoration: none;
    -webkit-transition: all .3s ease;
    transition: all .3s ease;
}

.sidebar-author-module .btn-more:hover {
    background: #d90000;
    color: #fff;
}

/* ==========================================================================
   用户主页（作者页）
   ========================================================================== */
.content.up-page {
    background: transparent;
}

/* ---------- 作者头部 ---------- */
.up-hero {
    position: relative;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, .06);
}

.up-hero-cover {
    position: relative;
    height: 108px;
    background: -webkit-linear-gradient(120deg, #8f0a0a 0%, #d90000 55%, #ff6b6b 100%);
    background: linear-gradient(120deg, #8f0a0a 0%, #d90000 55%, #ff6b6b 100%);
}

.up-hero-cover:after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: -webkit-radial-gradient(82% 20%, circle, rgba(255, 255, 255, .38), rgba(255, 255, 255, 0) 46%),
                -webkit-radial-gradient(12% 88%, circle, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 42%);
    background: radial-gradient(circle at 82% 20%, rgba(255, 255, 255, .38), rgba(255, 255, 255, 0) 46%),
                radial-gradient(circle at 12% 88%, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 42%);
}

.up-hero-body {
    position: relative;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: start;
    -webkit-align-items: flex-start;
    align-items: flex-start;
    gap: 18px;
    padding: 0 24px 20px;
    margin-top: -48px;
}

.up-avatar {
    position: relative;
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 4px solid #fff;
    background: #f1f5f9;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .12);
}

.up-avatar .up-avatar-initial {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    font-size: 38px;
    font-weight: 600;
    color: #fff;
    background: -webkit-linear-gradient(135deg, #ef4444 0%, #c31432 100%);
    background: linear-gradient(135deg, #ef4444 0%, #c31432 100%);
}

.up-avatar img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: block;
    -o-object-fit: cover;
    object-fit: cover;
    z-index: 2;
}

.up-hero-info {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 52px;
}

.up-name {
    font-size: 22px;
    font-weight: 600;
    color: #1a2a3a;
    line-height: 1.4;
    margin: 0;
    border: none;
    padding: 0;
    white-space: normal;
}

.up-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 400;
    color: #c81e1e;
    background: #fdecec;
    border-radius: 12px;
    vertical-align: 3px;
    white-space: nowrap;
}

.up-desc {
    margin-top: 8px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.7;
}

.up-meta {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 10px;
    font-size: 13px;
    color: #94a3b8;
}

.up-meta b {
    font-weight: 600;
    color: #d90000;
}

.up-meta i {
    margin-right: 4px;
    font-style: normal;
}

.up-tags {
    margin-top: 12px;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 8px;
}

.up-tag {
    display: inline-block;
    padding: 3px 14px;
    font-size: 12px;
    color: #475569;
    background: #f1f5f9;
    border-radius: 12px;
    text-decoration: none;
    -webkit-transition: all .2s ease;
    transition: all .2s ease;
}

.up-tag:hover {
    background: #d90000;
    color: #fff;
}

/* ---------- 作品列表 ---------- */
.up-works-box {
    background: #fff;
    border-radius: 14px;
    padding: 20px 24px 8px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, .06);
}

.up-box-head {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
    margin-bottom: 4px;
}

.up-box-head h2 {
    position: relative;
    font-size: 18px;
    font-weight: 600;
    color: #1a2a3a;
    margin: 0;
    padding-left: 12px;
    border: none;
    white-space: normal;
    overflow: visible;
}

.up-box-head h2:before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    border-radius: 2px;
    background: #d90000;
}

.up-box-sub {
    font-size: 13px;
    color: #94a3b8;
}

.up-works {
    display: block;
}

.up-card {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: stretch;
    -webkit-align-items: stretch;
    align-items: stretch;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid #f1f5f9;
    -webkit-transition: -webkit-transform .25s ease, box-shadow .25s ease;
    transition: transform .25s ease, box-shadow .25s ease;
}

.up-card:last-child {
    border-bottom: none;
}

.up-card:hover {
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
}

.up-card-thumb {
    position: relative;
    -webkit-flex: 0 0 190px;
    flex: 0 0 190px;
    width: 190px;
    height: 126px;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
    display: block;
    text-decoration: none;
}

.up-card-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    -o-object-fit: cover;
    object-fit: cover;
    -webkit-transition: -webkit-transform .4s ease;
    transition: transform .4s ease;
}

.up-card:hover .up-card-thumb img {
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
}

.up-thumb-ph {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    padding: 0 14px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .18);
    background: -webkit-linear-gradient(135deg, #d90000 0%, #7c0a0a 100%);
    background: linear-gradient(135deg, #d90000 0%, #7c0a0a 100%);
}

.up-card-cat {
    position: absolute;
    left: 8px;
    top: 8px;
    z-index: 3;
    padding: 2px 10px;
    font-size: 11px;
    color: #fff;
    background: rgba(0, 0, 0, .45);
    border-radius: 10px;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.up-card-body {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    min-width: 0;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
}

.up-card-body h3 {
    margin: 0;
    padding: 0;
    border: none;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    white-space: normal;
    overflow: hidden;
}

.up-card-body h3 a {
    color: #1a2a3a;
    text-decoration: none;
    overflow-wrap: break-word;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-transition: color .2s ease;
    transition: color .2s ease;
}

.up-card-body h3 a:hover {
    color: #d90000;
}

.up-card-excerpt {
    margin: 8px 0 10px;
    overflow-wrap: break-word;
    font-size: 13px;
    color: #64748b;
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.up-card-meta {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    font-size: 12px;
    color: #94a3b8;
}

.up-card-meta i {
    margin-right: 4px;
    font-style: normal;
}

.up-card-link {
    color: #d90000;
    text-decoration: none;
    font-size: 12px;
    -webkit-transition: opacity .2s ease;
    transition: opacity .2s ease;
}

.up-card-link:hover {
    opacity: .75;
}

.up-empty {
    padding: 48px 0 56px;
    text-align: center;
    font-size: 14px;
    color: #94a3b8;
}

/* ---------- 响应式 ---------- */
@media only screen and (max-width: 980px) {
    .up-hero-body {
        padding: 0 18px 18px;
    }

    .up-card-thumb {
        -webkit-flex: 0 0 160px;
        flex: 0 0 160px;
        width: 160px;
        height: 108px;
    }
}

@media only screen and (max-width: 640px) {
    .up-hero-cover {
        height: 88px;
    }

    .up-hero-body {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -webkit-flex-direction: row;
        flex-direction: row;
        -webkit-flex-wrap: nowrap;
        flex-wrap: nowrap;
        gap: 12px;
        margin-top: -40px;
        padding: 0 14px 16px;
    }

    .up-avatar {
        width: 76px;
        height: 76px;
        border-width: 3px;
    }

    .up-avatar .up-avatar-initial {
        font-size: 30px;
    }

    .up-hero-info {
        padding-top: 44px;
    }

    .up-name {
        font-size: 18px;
    }

    .up-works-box {
        padding: 16px 14px 4px;
    }

    .up-card {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: column;
        flex-direction: column;
        gap: 12px;
        padding: 14px 0;
    }

    .up-card-thumb {
        -webkit-flex: none;
        flex: none;
        width: 100%;
        height: 180px;
    }

    .up-card-body h3 {
        font-size: 16px;
    }

    .up-card-excerpt {
        -webkit-line-clamp: 3;
    }
}
