/**
 * Zibll 签到中心 - 前台样式
 * 渐变 Hero + 卡片网格 + 进度条 + 精致日历
 */

/* ============ 通用 ============ */
.zsc-page {
    color: var(--main-color);
    padding: 4px 0 8px;
}

/* ============ Hero 渐变卡 ============ */
.zsc-hero {
    background: linear-gradient(135deg, var(--theme-color, #ff6b6b) 0%, var(--focus-color, #faad14) 100%);
    border-radius: 16px;
    padding: 24px 20px 20px;
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(var(--theme-color-rgb, 255, 107, 107), 0.25);
}

.zsc-hero::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.zsc-hero::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.zsc-hero-inner {
    position: relative;
    z-index: 1;
}

/* 三栏数据 */
.zsc-hero-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.zsc-hero-stat {
    flex: 1;
    text-align: center;
}

.zsc-hero-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.zsc-hero-num {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 2px;
}

.zsc-hero-unit {
    font-size: 13px;
    font-weight: 500;
    opacity: .85;
    margin-left: 1px;
}

.zsc-hero-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

/* 签到按钮 */
.zsc-hero-btn-wrap {
    margin-bottom: 12px;
}

.zsc-hero-btn {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all .25s ease;
}

.zsc-hero-btn-go {
    background: #fff;
    color: var(--theme-color, #ff6b6b);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: zsc-breath 2.5s ease-in-out infinite;
}

.zsc-hero-btn-go:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.zsc-hero-btn-done {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    cursor: not-allowed;
    backdrop-filter: blur(4px);
}

.zsc-hero-btn-done i {
    font-size: 18px;
}

@keyframes zsc-breath {
    0%, 100% { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); }
    50% { box-shadow: 0 4px 20px rgba(255, 255, 255, 0.4); }
}

/* 补签行 */
.zsc-hero-makeup {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.zsc-makeup-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(4px);
}

.zsc-makeup-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.zsc-makeup-info {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============ 节日提示 ============ */
.zsc-holiday {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.08) 0%, rgba(250, 173, 20, 0.08) 100%);
    border: 1px solid rgba(250, 173, 20, 0.15);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 14px;
}

.zsc-holiday-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #faad14);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.zsc-holiday-text {
    flex: 1;
    min-width: 0;
}

.zsc-holiday-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--main-color);
}

.zsc-holiday-desc {
    font-size: 12px;
    color: var(--muted-2-color);
    margin-top: 1px;
}

.zsc-holiday-points {
    font-size: 18px;
    font-weight: 700;
    color: #faad14;
    flex-shrink: 0;
}

/* ============ 通用卡片 ============ */
.zsc-card {
    background: var(--muted-bg-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
}

.zsc-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 15px;
    font-weight: 600;
}

.zsc-card-bar {
    width: 4px;
    height: 16px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--theme-color, #ff6b6b), var(--focus-color, #faad14));
    flex-shrink: 0;
}

.zsc-card-extra {
    margin-left: auto;
    font-size: 12px;
    font-weight: normal;
    color: var(--muted-2-color);
}

/* ============ 奖励明细 ============ */
.zsc-reward-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.zsc-reward-cell {
    background: var(--box-bg-color, #fff);
    border-radius: 10px;
    padding: 14px 10px;
    text-align: center;
    transition: transform .2s;
}

.zsc-reward-cell:hover {
    transform: translateY(-2px);
}

.zsc-reward-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    margin: 0 auto 8px;
}

.zsc-reward-num {
    font-size: 18px;
    font-weight: 700;
    color: var(--main-color);
    line-height: 1.2;
}

.zsc-reward-label {
    font-size: 11px;
    color: var(--muted-2-color);
    margin-top: 2px;
}

.zsc-reward-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--muted-border-color);
    font-size: 13px;
    color: var(--muted-color);
}

.zsc-reward-total-num {
    font-size: 18px;
    font-weight: 700;
    color: var(--theme-color, #ff6b6b);
}

/* ============ 全勤奖励 ============ */
.zsc-full-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.zsc-full-title {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.zsc-full-title i {
    color: #faad14;
    font-size: 16px;
}

.zsc-full-desc {
    font-size: 12px;
    color: var(--muted-2-color);
    margin-bottom: 12px;
}

.zsc-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

.zsc-badge-done {
    background: rgba(82, 196, 26, 0.12);
    color: #52c41a;
}

.zsc-badge-progress {
    background: rgba(var(--theme-color-rgb, 255, 107, 107), 0.1);
    color: var(--theme-color, #ff6b6b);
}

/* 进度条 */
.zsc-progress {
    height: 8px;
    background: var(--muted-border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}

.zsc-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--theme-color, #ff6b6b), var(--focus-color, #faad14));
    border-radius: 4px;
    transition: width .6s ease;
}

.zsc-progress-text {
    font-size: 12px;
    color: var(--muted-2-color);
    text-align: right;
}

/* ============ 签到日历 ============ */
.zsc-cal {
    margin-bottom: 12px;
}

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

.zsc-cal-wd {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted-2-color);
    padding: 4px 0;
}

.zsc-cal-empty {
    aspect-ratio: 1 / 1;
}

.zsc-cal-day {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--box-bg-color, #fff);
    font-size: 13px;
    font-weight: 500;
    color: var(--muted-color);
    position: relative;
    transition: all .2s;
}

.zsc-cal-day-num {
    position: relative;
    z-index: 1;
}

.zsc-cal-day.is-today {
    border: 2px solid var(--theme-color, #ff6b6b);
    color: var(--theme-color, #ff6b6b);
    font-weight: 700;
}

.zsc-cal-day.is-signed {
    background: linear-gradient(135deg, var(--theme-color, #ff6b6b), var(--focus-color, #faad14));
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(var(--theme-color-rgb, 255, 107, 107), 0.2);
}

.zsc-cal-day.is-signed.is-today {
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--theme-color, #ff6b6b);
}

.zsc-cal-check {
    position: absolute;
    bottom: 3px;
    right: 4px;
    font-size: 8px;
    opacity: .9;
}

.zsc-cal-day.is-makeup {
    border: 1px dashed var(--focus-color, #faad14);
    color: var(--focus-color, #faad14);
    background: var(--box-bg-color, #fff);
}

.zsc-cal-mark {
    position: absolute;
    top: 2px;
    right: 3px;
    font-size: 8px;
    color: var(--focus-color, #faad14);
    font-weight: 700;
}

/* 可补签日期 */
.zsc-cal-day.can-makeup {
    cursor: pointer;
    border: 1px dashed var(--muted-border-color);
    color: var(--muted-color);
    transition: all .2s;
}

.zsc-cal-day.can-makeup:hover {
    border-color: var(--focus-color, #faad14);
    color: var(--focus-color, #faad14);
    background: rgba(var(--focus-color-rgb, 250, 173, 20), 0.05);
    transform: translateY(-1px);
}

.zsc-cal-makeup-tip {
    position: absolute;
    top: 2px;
    right: 3px;
    font-size: 8px;
    color: var(--muted-2-color);
    font-weight: 500;
}

.zsc-cal-day.can-makeup:hover .zsc-cal-makeup-tip {
    color: var(--focus-color, #faad14);
}

/* 日历图例 */
.zsc-cal-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding-top: 10px;
    border-top: 1px solid var(--muted-border-color);
}

.zsc-legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--muted-2-color);
}

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

.zsc-dot-signed {
    background: linear-gradient(135deg, var(--theme-color, #ff6b6b), var(--focus-color, #faad14));
}

.zsc-dot-makeup {
    border: 1px dashed var(--focus-color, #faad14);
}

.zsc-dot-can-makeup {
    border: 1px dashed var(--muted-border-color);
}

.zsc-dot-today {
    border: 2px solid var(--theme-color, #ff6b6b);
}

/* ============ 小工具 ============ */
.zsc-widget .but.block {
    display: block;
    width: 100%;
    text-align: center;
}

.zsc-widget .but.bad {
    opacity: .6;
    cursor: not-allowed;
}

/* ============ 移动端 ============ */
@media (max-width: 600px) {
    .zsc-hero {
        padding: 20px 16px 16px;
        border-radius: 14px;
    }

    .zsc-hero-num {
        font-size: 22px;
    }

    .zsc-hero-label {
        font-size: 11px;
    }

    .zsc-hero-divider {
        height: 30px;
    }

    .zsc-hero-btn {
        height: 44px;
        font-size: 15px;
    }

    .zsc-card {
        padding: 14px 12px;
    }

    .zsc-reward-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .zsc-reward-cell {
        padding: 10px 8px;
    }

    .zsc-reward-icon {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .zsc-reward-num {
        font-size: 16px;
    }

    .zsc-cal-grid {
        gap: 3px;
    }

    .zsc-cal-day {
        font-size: 12px;
        border-radius: 6px;
    }

    .zsc-cal-legend {
        gap: 12px;
    }
}
