/**
 * Daen美化插件 - 首页用户列表小工具样式（美化版）
 * 尺寸保留原版，增强视觉效果
 */

/* ===== 主容器 ===== */
.daen-users-hot-top {
    width: 100%;
    background: var(--main-bg-color);
    margin-bottom: 25px;
    padding: 22px 0;
    position: relative;
    height: 145px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* ===== 角标 ===== */
.daen-users-hot-top .daen-users-note {
    position: absolute;
    top: 12px;
    right: -50px;
    z-index: 1;
    width: 140px;
    height: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    line-height: 20px;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(118, 75, 162, 0.3);
}

/* ===== 装饰元素 ===== */
.daen-users-hot-top .tg-ph {
    background-size: 100% 100%;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 2;
    display: block;
    width: 60px;
    height: 60px;
    opacity: 0.6;
}

/* ===== 左侧 Tab ===== */
.daen-users-hot-top .daen-users-left {
    float: left;
    height: 100%;
    margin-left: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 13px;
}

.daen-users-hot-top .daen-users-left span {
    display: block;
    width: 100px;
    height: 45px;
    line-height: 45px;
    background: rgba(0, 0, 0, 0.04);
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: var(--muted-color, #989898);
    cursor: pointer;
    border-radius: 10px;
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

body.dark-theme .daen-users-hot-top .daen-users-left span {
    background: rgba(255, 255, 255, 0.05);
}

.daen-users-hot-top .daen-users-left span:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.daen-users-hot-top .daen-users-left .daen-users-tab-active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    position: relative;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.daen-users-hot-top .daen-users-left .daen-users-tab-active:hover {
    color: #fff;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.daen-users-hot-top .daen-users-left .daen-users-tab-active:after {
    content: "";
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 10px solid #667eea;
    position: absolute;
    top: 15.5px;
    right: -10px;
    z-index: 1;
}

/* ===== 右侧内容区 ===== */
.daen-users-hot-top .daen-users-right {
    float: left;
    width: calc(100% - 125px);
    margin-left: 15px;
    height: 100%;
    overflow: hidden;
}

.daen-users-hot-top .daen-users-right-overflow {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.daen-users-hot-top .daen-users-right-main {
    height: 90%;
    white-space: nowrap;
    overflow-y: hidden;
    overflow-x: auto;
    margin-bottom: 30px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.daen-users-hot-top .daen-users-right-main::-webkit-scrollbar {
    display: none;
}

.daen-users-hot-top .daen-users-right-main:last-child {
    margin-bottom: 0;
}

/* ===== 用户列表 ===== */
.daen-users-hot-top .daen-users-top-ul {
    height: 138px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.daen-users-hot-top .daen-users-top-ul li {
    width: 78px;
    display: inline-block;
    margin: 0;
    vertical-align: top;
    animation: daenUsersFadeIn 0.4s ease both;
}

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

/* 级联延迟 */
.daen-users-hot-top .daen-users-top-ul li:nth-child(1) { animation-delay: 0.02s; }
.daen-users-hot-top .daen-users-top-ul li:nth-child(2) { animation-delay: 0.04s; }
.daen-users-hot-top .daen-users-top-ul li:nth-child(3) { animation-delay: 0.06s; }
.daen-users-hot-top .daen-users-top-ul li:nth-child(4) { animation-delay: 0.08s; }
.daen-users-hot-top .daen-users-top-ul li:nth-child(5) { animation-delay: 0.10s; }
.daen-users-hot-top .daen-users-top-ul li:nth-child(6) { animation-delay: 0.12s; }
.daen-users-hot-top .daen-users-top-ul li:nth-child(7) { animation-delay: 0.14s; }
.daen-users-hot-top .daen-users-top-ul li:nth-child(8) { animation-delay: 0.16s; }
.daen-users-hot-top .daen-users-top-ul li:nth-child(9) { animation-delay: 0.18s; }
.daen-users-hot-top .daen-users-top-ul li:nth-child(10) { animation-delay: 0.20s; }
.daen-users-hot-top .daen-users-top-ul li:nth-child(11) { animation-delay: 0.22s; }
.daen-users-hot-top .daen-users-top-ul li:nth-child(12) { animation-delay: 0.24s; }
.daen-users-hot-top .daen-users-top-ul li:nth-child(13) { animation-delay: 0.26s; }

.daen-users-hot-top .daen-users-top-ul li a {
    display: block;
    text-decoration: none;
}

/* ===== 头像区域 ===== */
.daen-users-hot-top .daen-users-top-ul li a .daen-users-list-img {
    width: 100%;
    height: 78px;
    line-height: 78px;
    text-align: center;
    border-radius: 12px;
    position: relative;
}

.daen-users-hot-top .daen-users-top-ul li a .daen-users-list-img .avatar-img {
    border-radius: 50%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.daen-users-hot-top .daen-users-top-ul li a:hover .avatar-img {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.3);
}

.daen-users-hot-top .daen-users-top-ul li a .daen-users-list-img img {
    width: 90%;
    height: 90%;
    border-radius: 50%;
}

/* ===== 昵称 ===== */
.daen-users-hot-top .daen-users-top-ul li a h3 {
    margin-top: 7px;
    font-size: 12px;
    line-height: 25px;
    height: 25px;
    overflow: hidden;
    width: 95%;
    text-align: center;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--main-color, #333);
    transition: color 0.2s ease;
    font-weight: 400;
}

.daen-users-hot-top .daen-users-top-ul li a:hover h3 {
    color: #667eea;
}

/* ===== 空状态 ===== */
.daen-users-hot-top .daen-users-top-ul li.daen-users-empty {
    line-height: 138px;
    color: var(--muted-color, #999);
    font-size: 14px;
}

/* ===== 暗色主题 ===== */
body.dark-theme .daen-users-hot-top {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

body.dark-theme .daen-users-hot-top .daen-users-top-ul li a .daen-users-list-img .avatar-img {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-theme .daen-users-hot-top .daen-users-top-ul li a:hover .avatar-img {
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.25);
}

/* ===== 响应式 - 原版尺寸 ===== */
@media (max-width: 425px) {
    .daen-users-hot-top {
        padding: 22px 0;
        height: 148px;
    }

    .daen-users-hot-top .daen-users-left span {
        width: 70px;
        margin-left: 10px;
    }

    .daen-users-hot-top .daen-users-right {
        width: calc(100% - 95px);
        margin-left: 15px;
    }

    .daen-users-hot-top .daen-users-right-main {
        margin-bottom: 30px;
    }

    .daen-users-hot-top .daen-users-top-ul {
        height: 145px;
    }

    .daen-users-hot-top .daen-users-left {
        margin-left: 0;
    }
}

@media (min-width: 768px) {
    .daen-users-hot-top .daen-users-right {
        width: calc(100% - 125px);
        margin-left: 15px;
    }

    .daen-users-hot-top .daen-users-top-ul li {
        margin: auto 8px;
    }
}