/* ============================================================
   签到中心样式
   主色 珊瑚红 #fd4c73 / 点缀 暖金 #f7b500 / 卡片白 / 背景 #f6f7f9
   ============================================================ */

.sign-center-area {
    background: #f6f7f9;
}

.sign-center {
    max-width: 1080px;
    margin: 0 auto;
    padding: 24px 16px 64px;
    box-sizing: border-box;
}

.sign-center *,
.sign-center *::before,
.sign-center *::after {
    box-sizing: border-box;
}

/* ---------- 通用卡片 ---------- */

.sc-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(31, 35, 51, 0.05);
    padding: 22px;
}

.sc-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.sc-card-head h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #22252e;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sc-card-head h2 i {
    color: #fd4c73;
    font-size: 19px;
}

.sc-row {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 20px;
    margin-top: 20px;
}

/* ---------- 签到横幅 ---------- */

.sc-hero {
    position: relative;
    display: flex;
    justify-content: space-between;
    overflow: hidden;
    background: linear-gradient(120deg, #fd4c73 0%, #ff6a4d 55%, #ff9040 100%);
    color: #fff;
    padding: 34px 36px 28px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(253, 76, 115, 0.28);
}

.sc-hero-left {
    position: relative;
    z-index: 2;
    width: 100%;
}

.sc-hero-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 5px 12px;
    border-radius: 999px;
}

.sc-hero-title {
    margin: 14px 0 6px;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
}

.sc-hero-sub {
    margin: 0 0 22px;
    font-size: 13px;
    opacity: 0.85;
}

.sc-hero-action {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.sc-checkin-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    color: #fd4c73;
    background: #fff;
    padding: 13px 38px;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.sc-checkin-btn i {
    font-size: 18px;
}

.sc-checkin-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.sc-checkin-btn:disabled {
    cursor: default;
    opacity: 0.92;
}

.sc-checkin-btn.signed {
    color: #b8850b;
    background: linear-gradient(120deg, #fff7e0, #ffeec2);
}

.sc-checkin-btn.pop {
    animation: sc-pop 0.45s ease;
}

@keyframes sc-pop {
    0% { transform: scale(0.85); }
    55% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.sc-checkin-today {
    font-size: 13px;
    opacity: 0.9;
}

.sc-checkin-today b {
    color: #ffe9a8;
    font-size: 15px;
}

.sc-hero-stats {
    display: flex;
    gap: 12px;
    margin-top: 26px;
    flex-wrap: wrap;
}

.sc-stat {
    min-width: 108px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    padding: 10px 16px;
    backdrop-filter: blur(4px);
}

.sc-stat b {
    display: block;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.sc-stat span {
    font-size: 12px;
    opacity: 0.85;
}

/* 横幅装饰 */

.sc-hero-deco {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.sc-deco-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.sc-deco-c1 {
    width: 240px;
    height: 240px;
    right: -60px;
    top: -80px;
}

.sc-deco-c2 {
    width: 140px;
    height: 140px;
    right: 130px;
    bottom: -50px;
    background: rgba(255, 255, 255, 0.08);
}

.sc-deco-c3 {
    width: 90px;
    height: 90px;
    right: 60px;
    bottom: 24px;
    background: rgba(247, 181, 0, 0.35);
}

.sc-deco-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.5);
}

.sc-deco-i1 {
    font-size: 74px;
    right: 72px;
    top: 30px;
    transform: rotate(-8deg);
}

.sc-deco-i2 {
    font-size: 34px;
    right: 190px;
    top: 78px;
    transform: rotate(10deg);
    opacity: 0.6;
}

.sc-deco-i3 {
    font-size: 26px;
    right: 46px;
    bottom: 40px;
    opacity: 0.55;
}

/* ---------- 签到日历 ---------- */

.sc-cal-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #8a8f9d;
}

.sc-cal-bar {
    width: 120px;
    height: 6px;
    border-radius: 999px;
    background: #f0f1f5;
    overflow: hidden;
}

.sc-cal-bar i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #fd4c73, #ff9040);
    transition: width 0.4s ease;
}

.sc-cal-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 12px;
}

.sc-cal-nav b {
    font-size: 15px;
    color: #22252e;
    min-width: 96px;
    text-align: center;
}

.sc-cal-nav button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #ecedf2;
    background: #fff;
    color: #6b7180;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
}

.sc-cal-nav button:hover:not(:disabled) {
    color: #fd4c73;
    border-color: #fd4c73;
}

.sc-cal-nav button:disabled {
    opacity: 0.35;
    cursor: default;
}

.sc-cal-weeks,
.sc-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.sc-cal-weeks {
    margin-bottom: 6px;
}

.sc-cal-weeks span {
    text-align: center;
    font-size: 12px;
    color: #a0a5b1;
    padding: 4px 0;
}

.sc-cal-day {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #3c4150;
    background: #f7f8fa;
    user-select: none;
}

.sc-cal-day.empty {
    background: transparent;
}

.sc-cal-day.future {
    color: #c3c7d1;
    background: #fafbfc;
}

.sc-cal-day.signed {
    background: linear-gradient(135deg, #fd4c73, #ff6a4d);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(253, 76, 115, 0.3);
}

.sc-cal-day.signed::after {
    content: "";
    position: absolute;
    right: 5px;
    top: 5px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
}

.sc-cal-day.today {
    outline: 2px solid #fd4c73;
    outline-offset: -2px;
}

.sc-cal-day.today:not(.signed) {
    color: #fd4c73;
    font-weight: 700;
}

.sc-cal-legend {
    display: flex;
    gap: 18px;
    margin-top: 14px;
    font-size: 12px;
    color: #8a8f9d;
}

.sc-cal-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sc-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    display: inline-block;
}

.sc-dot-signed {
    background: linear-gradient(135deg, #fd4c73, #ff6a4d);
}

.sc-dot-today {
    border: 2px solid #fd4c73;
    background: #fff;
}

.sc-dot-miss {
    background: #f0f1f5;
}

/* ---------- 累签宝箱 ---------- */

.sc-box-tip {
    font-size: 13px;
    color: #8a8f9d;
}

.sc-box-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.sc-box-item {
    position: relative;
    border: 1px solid #f0f1f5;
    border-radius: 12px;
    padding: 16px 12px 14px;
    text-align: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    background: #fdfdfe;
}

.sc-box-item.claimable {
    border-color: #ffd88a;
    background: linear-gradient(180deg, #fffaf0, #fff);
    box-shadow: 0 6px 16px rgba(247, 181, 0, 0.15);
}

.sc-box-item.claimable:hover {
    transform: translateY(-2px);
}

.sc-box-item.claimed {
    background: #f7f8fa;
}

.sc-box-icon {
    width: 46px;
    height: 46px;
    margin: 0 auto 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
}

.sc-box-item:nth-child(1) .sc-box-icon { background: linear-gradient(135deg, #d29a6b, #b5763f); }
.sc-box-item:nth-child(2) .sc-box-icon { background: linear-gradient(135deg, #b8c2d4, #8d99ae); }
.sc-box-item:nth-child(3) .sc-box-icon { background: linear-gradient(135deg, #ffd154, #f7a800); }
.sc-box-item:nth-child(4) .sc-box-icon { background: linear-gradient(135deg, #fd4c73, #ff6a4d); }

.sc-box-item.claimed .sc-box-icon {
    background: #d8dbe2;
    color: #fff;
}

.sc-box-days {
    font-size: 14px;
    font-weight: 700;
    color: #22252e;
}

.sc-box-credit {
    font-size: 12px;
    color: #b8850b;
    margin: 3px 0 10px;
}

.sc-box-credit i {
    font-size: 12px;
    margin-right: 2px;
}

.sc-box-btn {
    width: 100%;
    border: 0;
    border-radius: 999px;
    padding: 7px 0;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
    background: #f0f1f5;
    color: #a0a5b1;
}

.sc-box-btn:disabled {
    cursor: default;
}

.sc-box-btn.can {
    background: linear-gradient(120deg, #f7b500, #ff9040);
    color: #fff;
    box-shadow: 0 4px 10px rgba(247, 181, 0, 0.35);
}

.sc-box-btn.can:hover {
    transform: translateY(-1px);
}

.sc-box-btn.done {
    background: #ecedf2;
    color: #b0b5c1;
}

.sc-box-note {
    margin: 14px 0 0;
    font-size: 12px;
    color: #a0a5b1;
    line-height: 1.6;
}

/* ---------- 签到心情 ---------- */

.sc-mood-count {
    font-size: 13px;
    color: #8a8f9d;
}

.sc-mood-editor {
    border: 1px solid #ecedf2;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 16px;
    background: #fafbfd;
    transition: border-color 0.18s ease;
}

.sc-mood-editor:focus-within {
    border-color: #fd4c73;
    background: #fff;
}

.sc-mood-editor textarea {
    width: 100%;
    border: 0;
    outline: 0;
    resize: none;
    background: transparent;
    font-size: 14px;
    color: #22252e;
    line-height: 1.6;
}

.sc-mood-editor-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.sc-mood-len {
    font-size: 12px;
    color: #a0a5b1;
}

.sc-mood-len b,
.sc-mood-len i {
    font-style: normal;
    font-weight: 400;
}

.sc-mood-publish {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(120deg, #fd4c73, #ff6a4d);
    box-shadow: 0 4px 12px rgba(253, 76, 115, 0.3);
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.sc-mood-publish:hover:not(:disabled) {
    transform: translateY(-1px);
}

.sc-mood-publish:disabled {
    opacity: 0.55;
    cursor: default;
}

.sc-mood-item {
    display: flex;
    gap: 12px;
    padding: 14px 4px;
    border-bottom: 1px solid #f3f4f7;
}

.sc-mood-item:last-child {
    border-bottom: 0;
}

.sc-mood-avatar {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f1f5;
}

.sc-mood-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sc-mood-body {
    flex: 1;
    min-width: 0;
}

.sc-mood-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.sc-mood-name {
    font-size: 13px;
    font-weight: 700;
    color: #3c4150;
}

.sc-mood-time {
    font-size: 12px;
    color: #a0a5b1;
}

.sc-mood-del {
    margin-left: auto;
    border: 0;
    background: transparent;
    color: #c3c7d1;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 4px;
    border-radius: 6px;
    opacity: 0;
    transition: all 0.18s ease;
}

.sc-mood-item:hover .sc-mood-del {
    opacity: 1;
}

.sc-mood-del:hover {
    color: #fd4c73;
    background: #fff0f3;
}

.sc-mood-text {
    margin: 0;
    font-size: 14px;
    color: #4a4f5e;
    line-height: 1.7;
    word-break: break-word;
}

.sc-empty {
    text-align: center;
    color: #a0a5b1;
    font-size: 13px;
    padding: 28px 0 20px;
}

.sc-empty i {
    display: block;
    font-size: 34px;
    color: #d8dbe2;
    margin-bottom: 8px;
}

/* ---------- 签到英雄榜 ---------- */

.sc-rank-tabs {
    display: inline-flex;
    background: #f3f4f7;
    border-radius: 999px;
    padding: 3px;
}

.sc-rank-tabs button {
    border: 0;
    background: transparent;
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 13px;
    color: #6b7180;
    cursor: pointer;
    transition: all 0.18s ease;
}

.sc-rank-tabs button.active {
    background: #fff;
    color: #fd4c73;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(31, 35, 51, 0.08);
}

.sc-rank-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 4px;
    border-bottom: 1px solid #f3f4f7;
}

.sc-rank-item:last-child {
    border-bottom: 0;
}

.sc-rank-no {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: #a0a5b1;
    background: #f3f4f7;
}

.sc-rank-item.top1 .sc-rank-no {
    color: #fff;
    background: linear-gradient(135deg, #ffd154, #f7a800);
}

.sc-rank-item.top2 .sc-rank-no {
    color: #fff;
    background: linear-gradient(135deg, #b8c2d4, #8d99ae);
}

.sc-rank-item.top3 .sc-rank-no {
    color: #fff;
    background: linear-gradient(135deg, #d29a6b, #b5763f);
}

.sc-rank-avatar {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f1f5;
}

.sc-rank-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sc-rank-info {
    flex: 1;
    min-width: 0;
}

.sc-rank-name {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #3c4150;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sc-rank-time {
    font-size: 12px;
    color: #a0a5b1;
}

.sc-rank-right {
    text-align: right;
    flex: 0 0 auto;
}

.sc-rank-credit {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 13px;
    font-weight: 700;
    color: #b8850b;
}

.sc-rank-credit i {
    font-size: 13px;
    color: #f7b500;
}

.sc-rank-always {
    display: block;
    font-size: 12px;
    color: #8a8f9d;
    margin-top: 1px;
}

.sc-rank-always i {
    color: #fd4c73;
    margin-right: 2px;
}

/* ---------- 加载更多 / 骨架 ---------- */

.sc-more-wrap {
    text-align: center;
    padding-top: 14px;
}

.sc-more-btn {
    border: 1px solid #ecedf2;
    background: #fff;
    color: #6b7180;
    border-radius: 999px;
    padding: 8px 26px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.sc-more-btn:hover:not(:disabled) {
    color: #fd4c73;
    border-color: #fd4c73;
}

.sc-more-btn:disabled {
    opacity: 0.55;
    cursor: default;
}

.sc-skeleton {
    padding: 12px 4px;
}

.sc-skeleton i {
    display: block;
    height: 14px;
    border-radius: 6px;
    margin: 10px 0;
    background: linear-gradient(90deg, #f0f1f5 25%, #fafbfd 50%, #f0f1f5 75%);
    background-size: 200% 100%;
    animation: sc-shine 1.2s infinite;
}

@keyframes sc-shine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ---------- 响应式 ---------- */

@media (max-width: 900px) {
    .sc-row {
        grid-template-columns: 1fr;
    }

    .sc-hero {
        padding: 26px 22px 22px;
    }

    .sc-hero-title {
        font-size: 24px;
    }

    .sc-deco-i1 {
        font-size: 52px;
        right: 30px;
        top: 24px;
    }

    .sc-deco-i2,
    .sc-deco-i3,
    .sc-deco-c2 {
        display: none;
    }

    .sc-stat {
        min-width: calc(50% - 6px);
        flex: 1;
    }
}

@media (max-width: 480px) {
    .sign-center {
        padding: 14px 10px 48px;
    }

    .sc-box-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .sc-checkin-btn {
        width: 100%;
        justify-content: center;
    }
}
