/* ================= V2026 全局变量 ================= */
:root {
    --primary: #13c2c2;
    --primary-hover: #08979c;
    --bg-body: #f4f6f8;
}

body {
    background-color: var(--bg-body);
}

.container {
    width: 1200px;
    margin: 30px auto 50px;
}

/* ================= 1. 顶部主播名片 ================= */
.zhubo-header {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 24px;
}

.zhubo-avatar-box {
    flex-shrink: 0;
}
.zhubo-avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f0fcfc;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.zhubo-info {
    flex: 1;
}
.zhubo-name-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}
.zhubo-mcn-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 12px;
    padding: 2px 10px;
    /* 使用淡金色渐变，凸显官方认证的高级感 */
    background: linear-gradient(135deg, #fffbe6 0%, #fff1b8 100%);
    border: 1px solid #ffe58f;
    color: #d48806;
    font-size: 12px;
    border-radius: 14px; /* 胶囊形状 */
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s ease;
    vertical-align: middle;
}

/* 图标稍微调大一点点 */
.zhubo-mcn-tag i {
    font-size: 14px;
    font-weight: normal;
}

/* 悬停时的微动效：变深 + 浮起 + 发光 */
.zhubo-mcn-tag:hover {
    background: linear-gradient(135deg, #fff1b8 0%, #ffd666 100%);
    border-color: #ffd666;
    color: #ad4e00;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(250, 173, 20, 0.2);
}

.zhubo-name {
    font-size: 26px;
    font-weight: 800;
    color: #333;
    margin: 0 10px 0 0;
}

.zhubo-stats {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #666;
    font-size: 14px;
    margin-bottom: 16px;
}
.zhubo-stats i {
    color: var(--primary);
    margin-right: 4px;
    font-size: 16px;
    vertical-align: -2px;
}
.zhubo-stats b {
    color: #333;
    font-size: 16px;
    margin-left: 2px;
}
.stat-divider {
    width: 1px;
    height: 14px;
    background: #e0e0e0;
}

.zhubo-intro {
    color: #888;
    font-size: 14px;
    line-height: 1.6;
    max-width: 700px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zhubo-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
    width: 140px;
}
.btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}
.btn-follow {
    background: linear-gradient(135deg, #4DE3E0 0%, #13c2c2 100%);
    color: #fff;
    box-shadow: 0 4px 10px rgba(19, 194, 194, 0.2);
}
.btn-follow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(19, 194, 194, 0.3);
}
.btn-followed {
    background: #f5f5f5;
    color: #999;
}
.btn-share {
    background: #fff;
    border: 1px solid #ddd;
    color: #666;
}
.btn-share:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ================= 2. 主体分栏布局 ================= */
.main-body {
    display: grid;
    grid-template-columns: 880px 296px;
    gap: 24px;
}
.bg-white {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

/* Tab 导航 */
.tab-nav {
    display: flex;
    gap: 40px;
    border-bottom: 1px solid #eee;
    margin-bottom: 24px;
}
.tab-item {
    padding-bottom: 15px;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    font-weight: 500;
    position: relative;
    transition: 0.2s;
}
.tab-item:hover { color: var(--primary); }
.tab-item.active {
    color: var(--primary);
    font-weight: bold;
}
.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================= 3. 网格卡片布局 (Grid 5列) ================= */
.square-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 一行5个 */
    gap: 20px 16px; /* 行间距20px，列间距16px */
}

.square-card {
    width: 100%;
    transition: transform 0.3s;
}
.square-card:hover {
    transform: translateY(-4px);
}

/* 封面 1:1 比例 */
.square-cover {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1; /* 强制正方形 */
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f2f5;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.square-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

/* 悬停播放遮罩 */
.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 40px;
    opacity: 0;
    transition: opacity 0.3s;
}
.square-card:hover .square-cover img { transform: scale(1.05); }
.square-card:hover .play-overlay { opacity: 1; }

/* 状态标签 */
.status-tag {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.status-ing { background: #faad14; }
.status-end { background: var(--primary); }

/* 文字标题 */
.square-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
    margin-bottom: 6px;
    transition: color 0.2s;
}
.square-title:hover { color: var(--primary); }

/* 辅助信息 (分类、角色) */
.square-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
}
.square-meta i { font-size: 14px; }

/* AJAX 加载按钮 */
.btn-load-ajax {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}
.btn-load-ajax:hover {
    background: var(--primary);
    color: #fff;
}

/* ================= 4. 右侧粉丝头像墙 ================= */
.side-header {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    border-left: 3px solid var(--primary);
    padding-left: 10px;
    line-height: 1.1;
    display: flex;
    justify-content: space-between; /* 让标题和总人数两端对齐 */
    align-items: center;
}

.fans-avatar-wall {
    display: flex;
    flex-wrap: wrap; /* 允许换行 */
    gap: 12px 11px;       /* 头像之间的间距 */
}

.fan-avatar-item {
    width: 40px;     /* 头像尺寸 */
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    display: block;
    background: #f0f2f5;
    border: 1px solid #eee;
    transition: all 0.2s ease;
}

.fan-avatar-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 悬停时的微交互：稍微放大并加上主色边框和阴影 */
.fan-avatar-item:hover {
    transform: translateY(-2px) scale(1.1);
    border-color: var(--primary);
    box-shadow: 0 4px 8px rgba(19, 194, 194, 0.2);
    z-index: 2;
}