/**
 * 签到页面 - 浅色精致版
 * 主色调对接: --ls-primary
 */

.ls-sign {
    background: #f5f7fa;
    min-height: 100vh;
    padding: 24px 0 48px;
}

/* ========== Hero 区域 ========== */
.ls-sign-hero {
    max-width: var(--ls-width);
    margin: 0 auto 20px;
    padding: 0 16px;
}

.ls-sign-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    gap: 24px;
    background: #fff;
    border-radius: var(--ls-border-radius, 12px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* 左侧主区域 */
.ls-sign-main {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* 用户信息 */
.ls-sign-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ls-sign-user-lv {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    padding: 1px 6px;
    background: var(--ls-primary, #10b981);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    border-radius: 8px;
    white-space: nowrap;
}

.ls-sign-user-name {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 6px;
}

.ls-sign-user-name b {
    color: #1f2937;
    font-weight: 600;
}

.ls-sign-user-stats {
    display: flex;
    gap: 16px;
}

.ls-sign-user-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #6b7280;
}

.ls-sign-user-stats span i {
    font-size: 14px;
    color: #9ca3af;
}

.ls-sign-user-stats span i.ri-fire-fill {
    color: #f59e0b;
}

.ls-sign-user-stats span em {
    font-style: normal;
    font-weight: 600;
    color: #1f2937;
}

/* 签到按钮 */
.ls-sign-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 28px;
    background: var(--ls-primary, #10b981);
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all .2s;
}

.ls-sign-action-btn:hover {
    filter: brightness(0.9);
    transform: translateY(-1px);
}

.ls-sign-action-btn i {
    font-size: 16px;
}

/* 今日奖励框 */
.ls-sign-reward {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 20px;
    background: #f9fafb;
    border-radius: var(--ls-border-radius, 12px);
}

.ls-sign-reward-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ls-sign-reward-title {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.ls-sign-reward-date {
    font-size: 11px;
    color: #9ca3af;
}

.ls-sign-reward-items {
    display: flex;
    gap: 16px;
}

.ls-sign-reward-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 48px;
}

.ls-sign-reward-item i {
    font-size: 18px;
}

.ls-sign-reward-item:nth-child(1) i { color: #f59e0b; }
.ls-sign-reward-item:nth-child(2) i { color: #ef4444; }
.ls-sign-reward-item:nth-child(3) i { color: var(--ls-primary, #10b981); }
.ls-sign-reward-item:nth-child(4) i { color: #8b5cf6; }

.ls-sign-reward-item .val {
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
}

.ls-sign-reward-item .lbl {
    font-size: 10px;
    color: #9ca3af;
}

.ls-sign-reward-item.bonus {
    padding-left: 16px;
    border-left: 1px solid #e5e7eb;
}

.ls-sign-reward-item.bonus .val {
    font-size: 11px;
    font-weight: 600;
}

/* ========== 内容区域 ========== */
.ls-sign-content {
    display: grid;
    grid-template-columns: 1fr 280px 280px;
    gap: 20px;
    max-width: var(--ls-width);
    margin: 0 auto;
    padding: 0 16px;
    align-items: stretch;
}

.ls-sign-col-main,
.ls-sign-col-rank,
.ls-sign-col-mood {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ls-sign-col-main {
    min-width: 0;
}

/* 通用盒子 */
.ls-sign-box {
    background: #fff;
    border-radius: var(--ls-border-radius, 12px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    padding: 20px;
}

.ls-sign-box.full {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ls-sign-box-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.ls-sign-box-head h3 {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.ls-sign-box-head h3 i {
    font-size: 18px;
    color: var(--ls-primary, #10b981);
}

.ls-sign-box-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    font-size: 13px;
    color: #374151;
    font-weight: 500;
}

.ls-sign-box-nav i {
    font-size: 18px;
    color: #9ca3af;
    cursor: pointer;
    transition: color .2s;
}

.ls-sign-box-nav i:hover {
    color: var(--ls-primary, #10b981);
}

.ls-sign-box-tag {
    font-size: 12px;
    color: #6b7280;
}

.ls-sign-box-tag em {
    font-style: normal;
    font-weight: 600;
    color: var(--ls-primary, #10b981);
}

.ls-sign-tabs {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.ls-sign-tabs span {
    padding: 4px 12px;
    font-size: 12px;
    color: #6b7280;
    border-radius: 6px;
    cursor: pointer;
    transition: all .2s;
}

.ls-sign-tabs span:hover {
    color: #374151;
}

.ls-sign-tabs span.on {
    background: var(--ls-primary, #10b981);
    color: #fff;
}

/* ========== 签到日历 ========== */
.ls-sign-calendar .week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.ls-sign-calendar .week span {
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
    padding: 8px 0;
}

.ls-sign-calendar .days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.ls-sign-calendar .d {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    border-radius: 10px;
    background: #f9fafb;
    cursor: pointer;
    transition: all .2s;
}

.ls-sign-calendar .d:hover {
    background: #f3f4f6;
}

.ls-sign-calendar .d span {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.ls-sign-calendar .d i {
    position: absolute;
    bottom: 4px;
    font-size: 10px;
    color: #9ca3af;
}

.ls-sign-calendar .d em {
    position: absolute;
    bottom: 4px;
    font-size: 10px;
    font-style: normal;
    font-weight: 600;
    color: var(--ls-primary, #10b981);
}

/* 已签到 - 绿色勾勾 */
.ls-sign-calendar .d.ok {
    background: rgba(16, 185, 129, 0.1);
}

.ls-sign-calendar .d.ok > i {
    position: static;
    font-size: 18px;
    color: var(--ls-primary, #10b981);
}

/* 今日 */
.ls-sign-calendar .d.now {
    background: var(--ls-primary, #10b981);
}

.ls-sign-calendar .d.now span {
    color: #fff;
}

.ls-sign-calendar .d.now em {
    color: rgba(255, 255, 255, 0.8);
}

/* 奖励日 */
.ls-sign-calendar .d.gift i {
    position: absolute;
    top: 2px;
    right: 2px;
    bottom: auto;
    font-size: 12px;
    color: #f59e0b;
}

.ls-sign-calendar .d.gift.now i {
    color: #fff;
}

.ls-sign-calendar .d.gift.big i {
    color: #ef4444;
    font-size: 12px;
}

/* 图例 */
.ls-sign-calendar-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.ls-sign-calendar-legend span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6b7280;
}

.ls-sign-calendar-legend .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
}

.ls-sign-calendar-legend .dot.ok {
    background: var(--ls-primary, #10b981);
}

.ls-sign-calendar-legend .dot.now {
    background: var(--ls-primary, #10b981);
}

.ls-sign-calendar-legend .dot.gift {
    background: #f59e0b;
}

/* ========== 累签宝箱 ========== */
.ls-sign-chest-items {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ls-sign-chest-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 12px;
    min-width: 80px;
    transition: all .2s;
}

.ls-sign-chest-item .icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ls-sign-chest-item .day {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.ls-sign-chest-item .reward {
    font-size: 11px;
    color: #6b7280;
}

.ls-sign-chest-item .status {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d1d5db;
    border-radius: 50%;
}

.ls-sign-chest-item .status i {
    font-size: 12px;
    color: #fff;
}

.ls-sign-chest-item .progress {
    font-size: 10px;
    color: #9ca3af;
}

.ls-sign-chest-item .claim {
    padding: 4px 12px;
    background: var(--ls-primary, #10b981);
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    transition: all .2s;
}

.ls-sign-chest-item .claim:hover {
    filter: brightness(0.9);
}

/* 已领取 */
.ls-sign-chest-item.claimed {
    opacity: 0.7;
}

.ls-sign-chest-item.claimed .icon {
    background: rgba(16, 185, 129, 0.1);
    border-color: transparent;
}

.ls-sign-chest-item.claimed .icon i {
    color: var(--ls-primary, #10b981);
}

.ls-sign-chest-item.claimed .status {
    background: var(--ls-primary, #10b981);
}


/* 连接线 */
.ls-sign-chest-line {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    margin: 0 4px;
}

.ls-sign-chest-line.done {
    background: var(--ls-primary, #10b981);
}

/* ========== 排行榜 ========== */
.ls-sign-rank-summary {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #6b7280;
}

.ls-sign-rank-summary i {
    font-size: 14px;
    color: #9ca3af;
}

.ls-sign-rank-summary b {
    font-weight: 600;
    color: #374151;
}

/* 排行列表 */
.ls-sign-rank-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    max-height: 564px;
    padding-bottom: 10px;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.ls-sign-rank-list:hover {
    scrollbar-color: #d1d5db transparent;
}

.ls-sign-rank-list::-webkit-scrollbar {
    width: 3px;
}

.ls-sign-rank-list::-webkit-scrollbar-track {
    background: transparent;
}

.ls-sign-rank-list::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 4px;
}

.ls-sign-rank-list:hover::-webkit-scrollbar-thumb {
    background: #d1d5db;
}

.ls-sign-rank-list:hover::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.ls-sign-rank-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    transition: background .2s;
}

.ls-sign-rank-item:hover {
    background: #f9fafb;
}

.ls-sign-rank-item .r {
    width: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    text-align: center;
    flex-shrink: 0;
}

.ls-sign-rank-item .r.hot {
    color: var(--ls-primary, #10b981);
}

.ls-sign-rank-item img {
    width: 32px;
    height: 32px;
    border-radius: var(--ls-border-radius-avatar, 50%);
    flex-shrink: 0;
    object-fit: cover;
}

.ls-sign-rank-item .info {
    flex: 1;
    min-width: 0;
}

.ls-sign-rank-item .info b {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ls-sign-rank-item .info .time {
    font-size: 11px;
    color: #9ca3af;
}

.ls-sign-rank-item .s {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    flex-shrink: 0;
}

/* ========== 心情墙 ========== */
.ls-sign-mood-input {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.ls-sign-mood-input input {
    flex: 1;
    padding: 10px 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 13px;
    color: #374151;
    outline: none;
    transition: border-color .2s;
}

.ls-sign-mood-input input::placeholder {
    color: #9ca3af;
}

.ls-sign-mood-input input:focus {
    border-color: var(--ls-primary, #10b981);
}

.ls-sign-mood-input button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ls-primary, #10b981);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all .2s;
}

.ls-sign-mood-input button:hover {
    filter: brightness(0.9);
}

.ls-sign-mood-input button i {
    font-size: 18px;
    color: #fff;
}

.ls-sign-mood-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    max-height: 564px;
    padding-right: 6px;
}

.ls-sign-mood-list:hover {
    scrollbar-color: #d1d5db transparent;
}

.ls-sign-mood-list::-webkit-scrollbar {
    width: 3px;
}

.ls-sign-mood-list::-webkit-scrollbar-track {
    background: transparent;
}

.ls-sign-mood-list::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 4px;
}

.ls-sign-mood-list:hover::-webkit-scrollbar-thumb {
    background: #d1d5db;
}

.ls-sign-mood-list:hover::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.ls-sign-mood-item {
    display: flex;
    gap: 10px;
}

.ls-sign-mood-item img {
    width: 32px;
    height: 32px;
    border-radius: var(--ls-border-radius-avatar, 50%);
    flex-shrink: 0;
}

.ls-sign-mood-item .content {
    flex: 1;
    background: #f8f9fa;
    border-radius: 0 12px 12px 12px;
    padding: 10px 14px;
}

.ls-sign-mood-item .content p {
    margin: 0;
    font-size: 13px;
    color: #333;
    line-height: 1.5;
    word-break: break-word;
}

.ls-sign-mood-item .content span {
    font-size: 11px;
    color: #9ca3af;
}

/* ========== 已签到按钮 ========== */
.ls-sign-action-btn.signed {
    background: #d1d5db;
    cursor: default;
}

.ls-sign-action-btn.signed:hover {
    filter: none;
    transform: none;
}

/* ========== 空状态 ========== */
.ls-sign-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 32px 16px;
    color: #9ca3af;
}

.ls-sign-empty i {
    font-size: 32px;
    opacity: 0.5;
}

.ls-sign-empty span {
    font-size: 13px;
}

/* ========== 日历空格 ========== */
.ls-sign-calendar .d.empty {
    background: transparent;
    cursor: default;
}

.ls-sign-calendar .d.empty:hover {
    background: transparent;
}

/* ========== 榜单面板 ========== */
.ls-sign-rank-panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

/* ========== 无奖励提示 ========== */
.ls-sign-reward-empty {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: #9ca3af;
    font-size: 13px;
}

.ls-sign-reward-empty i {
    font-size: 20px;
    opacity: 0.6;
}

/* ========== 宝箱图片 ========== */
.ls-sign-chest-item .icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* ========== 心情已发布状态 ========== */
.ls-sign-mood-input.disabled {
    background: #f9fafb;
    border-radius: 10px;
    padding: 12px 14px;
}

.ls-sign-mood-posted {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #374151;
    font-size: 13px;
}

.ls-sign-mood-posted i {
    color: var(--ls-primary, #10b981);
    font-size: 16px;
}

.ls-sign-mood-login {
    color: #9ca3af;
    font-size: 13px;
}

/* ========== 日历有奖励日期点击效果 ========== */
.ls-sign-calendar .d[data-reward] {
    cursor: pointer;
}

.ls-sign-calendar .d[data-reward]:hover {
    background: rgba(245, 158, 11, 0.1);
}

.ls-sign-calendar .d.now[data-reward]:hover {
    background: var(--ls-primary, #10b981);
    filter: brightness(1.1);
}

/* ========== 榜单前三样式 ========== */
.ls-sign-rank-item.top1 {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fcd34d;
    border-radius: 10px;
    padding: 10px 12px;
}

.ls-sign-rank-item.top1 .r {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f59e0b;
    border-radius: 50%;
    color: #fff;
}

.ls-sign-rank-item.top1 .r i {
    font-size: 14px;
}

.ls-sign-rank-item.top1 img {
    border: 2px solid #f59e0b;
}

.ls-sign-rank-item.top2 {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
}

.ls-sign-rank-item.top2 .r {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #94a3b8;
    border-radius: 50%;
    color: #fff;
}

.ls-sign-rank-item.top2 img {
    border: 2px solid #94a3b8;
}

.ls-sign-rank-item.top3 {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 10px 12px;
}

.ls-sign-rank-item.top3 .r {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d97706;
    border-radius: 50%;
    color: #fff;
}

.ls-sign-rank-item.top3 img {
    border: 2px solid #d97706;
}

/* ========== 签到/宝箱奖励弹窗 ========== */
.ls-sign-reward-modal {
    text-align: center;
    padding: 20px 0;
}

.ls-sign-reward-modal-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.2) 100%);
    border-radius: 50%;
}

.ls-sign-reward-modal-icon i {
    font-size: 36px;
    color: var(--ls-primary, #10b981);
}

.ls-sign-reward-modal-icon.chest {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.2) 100%);
}

.ls-sign-reward-modal-icon.chest i {
    color: #f59e0b;
}

.ls-sign-reward-modal-title {
    margin: 0 0 20px;
    font-size: 15px;
    font-weight: 500;
    color: #374151;
}

.ls-sign-reward-modal-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.ls-sign-reward-modal-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 20px;
    background: #f9fafb;
    border-radius: 10px;
    min-width: 80px;
}

.ls-sign-reward-modal-item .val {
    font-size: 20px;
    font-weight: 700;
    color: var(--ls-primary, #10b981);
    line-height: 1.2;
}

.ls-sign-reward-modal-item .lbl {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.ls-sign-reward-modal-hint {
    margin: 16px 0 0;
    font-size: 13px;
    color: #6b7280;
}

.ls-sign-reward-modal-hint b {
    color: var(--ls-primary, #10b981);
    font-size: 16px;
}

.ls-sign-reward-modal-hint i {
    margin-right: 4px;
}

/* ========== 宝箱鼠标样式 ========== */
.ls-sign-chest-item {
    cursor: pointer;
}

.ls-sign-chest-item:hover {
    background: #f0f2f5;
}

/* ========== 轻量弹窗（无按钮） ========== */
.ls-sign-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    transition: background .3s;
}

.ls-sign-popup-overlay.show {
    background: rgba(0, 0, 0, 0.4);
}

.ls-sign-popup {
    background: #fff;
    border-radius: 16px;
    padding: 24px 32px;
    min-width: 280px;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transform: scale(0.9);
    opacity: 0;
    transition: all .3s;
}

.ls-sign-popup-overlay.show .ls-sign-popup {
    transform: scale(1);
    opacity: 1;
}
