/* 现代极简风格签到 - Modern Minimalist Style */

.YXYH-modern-sign {
    --sign-primary: var(--ls-primary, #4f46e5);
    --sign-bg: #ffffff;
    --sign-text-main: #1f2937;
    --sign-text-sub: #6b7280;
    --sign-border: #f3f4f6;
    --sign-highlight: #ff6b6b;
    --sign-success: #10b981;
    --sign-radius: 8px;
}

/* 头部调整 */
.YXYH-modern-sign .ls-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--sign-border);
    padding: 15px 20px;
    background: #fff;
}
.YXYH-modern-sign .ls-widget-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--sign-text-main);
}
.YXYH-modern-sign .header-link {
    font-size: 13px;
    color: var(--sign-text-sub);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 2px;
    transition: color 0.2s;
}
.YXYH-modern-sign .header-link:hover {
    color: var(--sign-primary);
}
.YXYH-modern-sign .header-link i {
    font-size: 14px;
}

/* 主体区域 */
.YXYH-modern-sign .ls-widget-body {
    padding: 20px;
    background: var(--sign-bg);
}

/* 游客未登录 - 社区活跃展示模式 */
.sign-guest-showcase {
    text-align: center;
    padding: 25px 15px;
    background: linear-gradient(to bottom, #f9fafb, #fff);
    border-radius: var(--sign-radius);
    border: 1px solid var(--sign-border);
}

.showcase-header {
    margin-bottom: 20px;
    color: var(--sign-text-main);
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    line-height: 1;
}
.showcase-label {
    font-size: 14px;
    color: var(--sign-text-sub);
}
.showcase-num {
    font-size: 28px;
    font-weight: 700;
    color: var(--sign-primary);
    font-family: Arial, sans-serif;
    letter-spacing: -1px;
}
.showcase-unit {
    font-size: 12px;
    color: var(--sign-text-sub);
}

.showcase-avatars {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    height: 36px; /* 固定高度防止抖动 */
    padding-left: 10px; /* 补偿负 margin 造成的偏移 */
}
.showcase-avatar-item {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #fff;
    overflow: hidden;
    margin-left: -10px; /* 重叠 */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    background: #f3f4f6;
    transition: transform 0.2s;
}
.showcase-avatar-item:hover {
    transform: translateY(-3px) scale(1.1);
    z-index: 20 !important;
}
.showcase-avatar-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.showcase-avatar-more, .showcase-empty-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f3f4f6;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sign-text-sub);
    margin-left: -10px;
    font-size: 16px;
}
.showcase-empty-icon {
    margin-left: 0;
    font-size: 20px;
    color: #d1d5db;
}

.showcase-tip {
    font-size: 13px;
    color: var(--sign-text-sub);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.showcase-tip i {
    color: #fbbf24; /* 金黄色图标 */
    font-size: 15px;
}

/* 数据统计行 */
.sign-stats-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 20px;
}
.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.stat-num {
    font-size: 24px;
    font-weight: 700;
    color: var(--sign-text-main);
    line-height: 1.2;
    font-family: Arial, sans-serif;
}
.stat-name {
    font-size: 12px;
    color: var(--sign-text-sub);
    margin-top: 4px;
}
.stat-line {
    width: 1px;
    height: 30px;
    background: var(--sign-border);
}

/* 签到按钮区域 */
.sign-action-area {
    margin-bottom: 24px;
}
.sign-btn {
    width: 100%;
    border: none;
    outline: none;
    padding: 12px 0;
    border-radius: var(--sign-radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
/* 未签到状态 */
.sign-btn.js-sign-btn {
    background: var(--sign-primary);
    color: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.sign-btn.js-sign-btn:hover {
    filter: brightness(0.9);
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(0, 0, 0, 0.15);
}
.sign-btn.js-sign-btn:active {
    transform: translateY(0);
}
/* 已签到状态 */
.sign-btn.is-signed {
    background: #ecfdf5;
    color: var(--sign-success);
    cursor: default;
    border: 1px solid #d1fae5;
}

/* 本周进度 */
.sign-week-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 4px;
}
.week-dot-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    cursor: default;
}
.dot-name {
    font-size: 12px;
    color: var(--sign-text-sub);
    transform: scale(0.9);
}
.dot-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s;
}
.dot-circle i {
    display: none;
}

/* 状态：已签 */
.week-dot-item.is-active .dot-circle {
    background: var(--sign-primary);
}
.week-dot-item.is-active .dot-circle i {
    display: block;
}
/* 状态：今天 (如果是今天且未签，显示空心圈或强调色框) */
.week-dot-item.is-today .dot-name {
    color: var(--sign-primary);
    font-weight: 700;
}
.week-dot-item.is-today:not(.is-active) .dot-circle {
    border: 2px solid var(--sign-primary);
    background: #fff;
    color: var(--sign-primary);
}

/* 底部排行 */
.sign-mini-rank {
    border-top: 1px solid var(--sign-border);
    padding-top: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.rank-title {
    font-size: 13px;
    color: var(--sign-text-sub);
    display: flex;
    align-items: center;
    gap: 6px;
}
.rank-sub-text {
    font-size: 12px;
    color: var(--sign-text-sub);
    opacity: 0.8;
}
.rank-avatars {
    display: flex;
    gap: -8px; /* 头像重叠效果 */
}
.rank-avatar-item {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #fff;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
    margin-left: -8px; /* 重叠 */
}
.rank-avatar-item:first-child {
    margin-left: 0;
}
.rank-avatar-item:hover {
    transform: translateY(-2px);
    z-index: 2;
}
.rank-avatar-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rank-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 8px;
    padding: 0 3px;
    border-top-left-radius: 4px;
    display: none; /* 小图不显示数字，太乱 */
}
/* 新添加的动画 */
@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.rank-avatar-item.new-item {
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}