
/* 专属定制：列表右上角的微型无感下拉框 */
.micro-filter-select {
    appearance: none;
    -webkit-appearance: none;
    background-color: transparent;
    /* 默认灰色小箭头 */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 12px;
    border: none;
    margin: 0px;
    padding: 2px 16px 2px 4px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #999;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
    font-family: inherit;
}

/* 鼠标悬浮时亮起主色调 (配合你现在的粉金色主题) */
.micro-filter-select:hover {
    color: #fda2d1;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fda2d1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}
/* ================= 全局布局与封面 ================= */
.ranklist-wrapper { margin-top: 0px; padding-bottom: 5px; }
.user-card-premium { background: #fff; border-radius: 5px; border: none; box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05); overflow: hidden; }

.user-header-cover { height: 160px; position: relative; }
.user-header-cover::after { 
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 100%; 
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 1) 100%); 
    pointer-events: none; 
}

.user-main-body { padding: 0 30px 20px 30px; margin-top: -60px; z-index: 10; }

/* ================= 左侧：身份区 ================= */
.profile-side-col { text-align: center; }
.avatar-heart { 
    width: 100px; height: 100px; border-radius: 28px; margin: 0 auto 15px auto; 
    border: 5px solid #fff; background: #fff; display: flex; align-items: center; justify-content: center; 
}
.username-display { font-size: 20px; font-weight: 900; color: #2d3436; margin-bottom: 8px; }
.badge-gold-solid { background: #1a1a1a; color: #fdefa2; padding: 4px 12px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.5px;}

.info-glass-card { background: #fcfcfc; border-radius: 16px; padding: 20px; border: 1px solid #f8f9fa; text-align: left; margin-bottom: 20px;}
.card-header-title { font-size: 14px; color: #2d3436; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; }

/* 呼吸灯特效 (粉色) */
.rank-pulse-dot { 
    display: inline-block; width: 8px; height: 8px; background-color: #fda2d1; 
    border-radius: 50%; margin-right: 8px; box-shadow: 0 0 0 0 rgba(253, 162, 209, 0.7); 
    animation: pulse-pink 2s infinite; 
}
@keyframes pulse-pink { 
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(253, 162, 209, 0.7); } 
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(253, 162, 209, 0); } 
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(253, 162, 209, 0); } 
}

/* ================= 右侧：导航与内容 ================= */
.profile-content-col { padding-top: 50px; }

/* Tab Pills 样式 */
.tab-nav-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tab-nav-scroll::-webkit-scrollbar { display: none; }
.custom-pills { border-bottom: 1px solid #f1f3f5; padding-bottom: 15px; }
.custom-pills .nav-link { 
    border-radius: 20px; color: #636e72; font-weight: 600; padding: 8px 22px; margin-right: 10px; 
    background: #f8f9fa; transition: all 0.3s; border: 1px solid transparent; white-space: nowrap;
}
.custom-pills .nav-link:hover { background: #e9ecef; }
.custom-pills .nav-link.active { 
    background: #2d3436; color: #fff; box-shadow: 0 6px 15px rgba(0,0,0,0.1); border-color: #2d3436;
}

/* ================= 现代化领奖台 ================= */
.premium-podium-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 15px;
    background: #f8f9fa;
    border-radius: 20px;
    padding: 50px 10px 20px 10px;
    margin-top: 10px;
}

.podium-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    width: 30%;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.podium-avatar-box { display: flex; flex-direction: column; align-items: center; position: relative; z-index: 2; }
.podium-crown { font-size: 28px; margin-bottom: -12px; z-index: 3; position: relative; }
.podium-avatar { 
    object-fit: cover; 
    border: 4px solid #fff; 
    background: #fff; 
    /* 添加平滑过渡动画 */
    transition: all 0.25s ease-in-out; 
    /* 初始状态给一个极淡的阴影 */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
}
/* 鼠标经过头像时：放大 + 阴影深呼吸 */
.podium-avatar:hover { 
    transform: scale(1.05); /* 原地放大 5% */
    box-shadow: 0 10px 25px rgba(0,0,0,0.12); /* 阴影变深变大，产生立体感 */
    border-color: #f8f9fa; /* 边框微微变色，增加细节 */
}

/* 大头像尺寸控制 */
.avatar-lg { width: 115px; height: 115px; }
.avatar-md { width: 90px; height: 90px; }

.podium-info-box { text-align: center; margin-top: 10px; z-index: 1; width: 100%; }
.hover-primary:hover { color: #fda2d1 !important; }

/* ================= 签到插件同款列表样式 ================= */
.rank-list-container { padding: 0; list-style: none; margin: 0; }

.rank-item {
    display: flex; align-items: center; padding: 10px 15px 10px 5px; transition: all 0.2s ease;
    background: #f8f9fa; margin-bottom: 8px; border-radius: 8px; border: none; justify-content: space-between;
}
.rank-item:hover { background: #f1f1f1; }

.rank-number {
    width: 36px; font-weight: bold; font-size: 1.1rem; margin-right: 10px; flex-shrink: 0;
    color: #adb5bd; text-align: center; font-family: 'Georgia', 'Times New Roman', serif; font-style: italic;
}
.rank-number.rank-1 { color: #e62222 !important; }
.rank-number.rank-2 { color: #ff6a6a !important; }
.rank-number.rank-3 { color: #ff918b !important; }

.rank-user-main { display: flex; align-items: center; flex: 1; min-width: 0; text-align: left; }
.rank-avatar { width: 40px; height: 40px; border-radius: 50%; margin-right: 10px; border: 1px solid #e0e0e0; object-fit: cover; flex-shrink: 0; }
.rank-user-details { display: flex; flex-direction: column; }
.rank-username { display: block; font-weight: bold; color: #333; font-size: 0.85rem; text-decoration: none; transition: color 0.2s; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.rank-username:hover { color: #e67e22; }
.rank-time { font-size: 0.75rem; color: #888; display: flex; align-items: center; text-align: left; margin-top: 1px; }
.rank-reward { flex-shrink: 0; text-align: right; }
.reward-amount { display: block; font-weight: bold; font-size: 1rem; }

/* 分页美化 */
.custom-pagination .page-item .page-link { border: none; border-radius: 8px; margin: 0 4px; color: #636e72; background: #f8f9fa; font-weight: 600; }
.custom-pagination .page-item.active .page-link { background: #2d3436; color: #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

/* ================= 移动端适配 (空间最大化版) ================= */
@media (max-width: 768px) {
    /* 抵消框架的 container 留白，或者降到最低 */
    .container { padding-left: 5px !important; padding-right: 5px !important; }
    
    /* 核心修改：将卡片内部的左右留白从 15px 降为 2px，彻底释放空间 */
    .user-main-body { margin-top: -50px; padding: 0 15px 15px 15px; }
    
    .avatar-heart { width: 75px; height: 75px; font-size: 22px; }
    .profile-content-col { padding-top: 15px; }
    .custom-pills .nav-link { padding: 6px 12px; font-size: 13px; margin-right: 4px;}
}

@media (max-width: 480px) {
    /* 领奖台区域的间距极限压缩 */
    .premium-podium-wrapper { gap: 8px; padding: 30px 0 15px 0; border-bottom: none; }
    .podium-crown { font-size: 18px; margin-bottom: -6px; }
    .podium-item { width: 32%; }
    .avatar-lg { width: 70px; height: 70px; }
    .avatar-md { width: 55px; height: 55px; }
    .podium-info-box .fs-6 { font-size: 0.8rem !important; }
    .podium-info-box .reward-amount { font-size: 0.85rem !important; }

    /* 核心修改：列表项左右 0 留白，把宝贵的宽度全部让给用户名和奖金数字 */
    .rank-item { padding: 12px 2px; margin-bottom: 0; }
    
    /* 压缩名次数字的宽度 */
    .rank-number { width: 22px; font-size: 0.9rem; margin-right: 8px; }
    .rank-avatar { width: 32px; height: 32px; margin-right: 8px; }
    .rank-username { font-size: 0.85rem; }
    .rank-time { font-size: 0.7rem; }
    .reward-amount { font-size: 0.85rem; }
}
