.text-shadow-sm { text-shadow: 0 1px 2px rgba(0,0,0,0.1); }
.transition-all { transition: all 0.2s; }

.signin-number {
    color: #187f2e;
    font-weight: bold;
    font-size: 1.2rem;
}

.modal-close-btn {
    opacity: 0.6;
    transition: opacity 0.2s;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.modal-close-btn:hover {
    opacity: 1;
    background: rgba(0,0,0,0.05);
}
.modal-close-btn:focus,
.modal-close-btn:active {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.custom-tab-nav {
    display: inline-flex;
    background: rgba(255, 251, 230, 0.8);
    backdrop-filter: blur(5px);
    border-radius: 50px;
    padding: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.custom-tab-btn {
    padding: 5px 20px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
    background: transparent;
    color: #888 !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
    line-height: 1.2;
}
.custom-tab-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    color: #f37021 !important;
}
.custom-tab-btn.active {
    background: white !important;
    color: #d35400 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    outline: none !important;
    border: none !important;
}
.custom-tab-btn:focus,
.custom-tab-btn:active,
.custom-tab-btn.active:focus,
.custom-tab-btn.active:active {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.my-coin-btn {
    padding: 4px 16px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.5);
    text-decoration: none !important;
    display: inline-block;
    color: #888 !important;
}
.my-coin-btn:hover {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    color: #d35400 !important;
    text-decoration: none !important;
}
.my-coin-btn:focus,
.my-coin-btn:active {
    outline: none !important;
    box-shadow: none !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    color: #888 !important;
    text-decoration: none !important;
}

.btn-glow {
    background: linear-gradient(45deg, #FFD700, #FDB931);
    border: none;
    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}
.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(253, 185, 49, 0.4);
}
.btn-glow:active {
    transform: translateY(0);
}

.calendar-nav-btns {
    display: flex;
    gap: 6px;
}
.calendar-nav-btn {
    padding: 4px 10px;
    font-size: 0.8rem;
    color: #666;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.calendar-nav-btn:hover {
    background: #e8e8e8;
    color: #333;
}
.calendar-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f0f0f0;
    color: #999;
}
.calendar-nav-btn:disabled:hover {
    background: #f0f0f0;
    color: #999;
    transform: none;
}
.calendar-nav-btn:focus,
.calendar-nav-btn:active {
    outline: none !important;
    box-shadow: none !important;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}
.calendar-header {
    text-align: center;
    font-size: 0.8rem;
    color: #b1b1b1;
    padding: 10px 0;
    font-weight: 500;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}
.calendar-header {
    text-align: center;
    font-size: 0.8rem;
    color: #b1b1b1;
    padding: 10px 0 5px 0;
    font-weight: 500;
}
.calendar-cell {
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #555;
    background-color: #f8f9fa;
    transition: all 0.2s;
    position: relative;
    cursor: text;
}
.calendar-cell.checked {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
    color: white;
    font-weight: bold;
}
.calendar-cell.today {
    background: linear-gradient(135deg, #FFD700, #FDB931);
    color: #5d4037;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(253, 185, 49, 0.3);
}
.calendar-cell.today-unchecked {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}
.calendar-cell:not(.empty):not(.disabled):hover {
    transform: scale(1.03);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    z-index: 2;
}
.calendar-cell.empty {
    visibility: hidden;
}
.calendar-cell.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fa;
    color: #999;
}
.calendar-cell.disabled:hover {
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

.hover-bg-light:hover {
    background-color: #f8f9fa;
    transform: translateX(2px);
    transition: all 0.2s;
}

.rank-tab.active { 
    background-color: #e67e22 !important; 
    color: white !important; 
    box-shadow: 0 2px 6px rgba(230, 126, 34, 0.4); 
}

.toast--glass {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translate(-50%, -100px);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10001;
    opacity: 0;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    max-width: 80%;
}
.toast--glass.show {
    opacity: 1;
    transform: translate(-50%, 0);
}
.toast__icon-wrapper {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.toast__icon {
    font-size: 16px;
    color: #fff;
}
.toast__text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.toast--glass.success .toast__icon-wrapper {
    background: #22c55e;
}
.toast--glass.success .toast__text {
    color: #166534;
}
.toast--glass.error .toast__icon-wrapper {
    background: #ef4444;
}
.toast--glass.error .toast__text {
    color: #991b1b;
}

.reward-card {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-radius: 15px;
    padding: 25px;
    margin: 15px 0 25px 0;
    text-align: center;
    border: 2px solid #c3e6cb;
    transition: all 0.3s;
}
.reward-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(195, 230, 203, 0.4);
}

.divider-with-text {
    position: relative;
    text-align: center;
    margin: 0px 0 0px 0;
}
.divider-with-text hr {
    border: none;
    height: 0.3px;
    background: #e0e0e0;
}
.divider-with-text span {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 0 15px;
    color: #888;
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-weight: 500;
}

.rank-table-container {
    width: 100%;
    border: none;
    border-radius: 10px;
    margin-bottom: 15px;
    height: 380px;
    background: #fff;
    padding: 0px 0 0 0;
}

.rank-list-container {
    padding: 0;
    list-style: none;
    margin: 0;
}

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

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

.rank-item:hover {
    background: #f1f1f1 !important;
    transform: none;
    box-shadow: none;
}

.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;
    font-weight: bold;
}

.rank-number.rank-1 {
    color: #e62222 !important;
    font-weight: bold !important;
    font-family: 'Georgia', 'Times New Roman', serif !important;
    font-style: italic !important;
}

.rank-number.rank-2 {
    color: #ff6a6a !important;
    font-weight: bold !important;
    font-family: 'Georgia', 'Times New Roman', serif !important;
    font-style: italic !important;
}

.rank-number.rank-3 {
    color: #ff918b !important;
    font-weight: bold !important;
    font-family: 'Georgia', 'Times New Roman', serif !important;
    font-style: italic !important;
}

.rank-user-info {
    flex: 1;
    min-width: 0;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 15px;
}

.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;
    gap: 0px;
    text-align: left;
    margin-top: 1px;
}

.rank-time i {
    font-size: 0.7rem;
}

.rank-reward {
    flex-shrink: 0;
    text-align: right;
}

.reward-amount {
    display: block;
    font-weight: bold;
    color: #d35400;
    font-size: 1rem;
}

.reward-label {
    display: none;
}

.rank-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    border: 1px solid #e0e0e0;
    object-fit: cover;
    flex-shrink: 0;
}

.rank-user-main {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    text-align: left;
}

.rank-user-details {
    display: flex;
    flex-direction: column;
}

.no-rank-data {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    background: #f8f9fa;
    border-radius: 10px;
}

.no-rank-data i {
    font-size: 1.8rem;
    margin-bottom: 12px;
    display: block;
    color: #ddd;
}

.no-rank-data p {
    margin: 0;
    font-size: 0.85rem;
}

.reward-icon {
    display: none;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2px 0;
    gap: 10px;
    margin-top: 0px;
}
.pagination-btn {
    min-width: 30px;
    height: 30px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pagination-btn:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: #ccc;
}
.pagination-btn.active {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: white;
    border: none;
}
.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    #sign-modal {
        width: 95% !important;
    }
    .calendar-cell {
        height: 32px;
        font-size: 0.8rem;
    }
    .custom-tab-btn {
        padding: 6px 15px;
        font-size: 0.85rem;
    }
    .my-coin-btn {
        font-size: 0.8rem;
        padding: 5px 12px;
    }
    
    .rank-table-container {
        height: 380px;
    }
    
    .rank-item {
        padding: 10px 12px;
        margin-bottom: 6px;
    }
    
    .rank-number {
        width: 32px;
        font-size: 0.9rem;
        margin-right: 12px;
    }
    
    .rank-avatar {
        width: 34px;
        height: 34px;
        margin-right: 10px;
    }
    
    .rank-username {
        font-size: 0.9rem;
    }
    
    .rank-time {
        font-size: 0.7rem;
    }
    
    .reward-amount {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    #sign-modal {
        width: 95% !important;
        max-width: 400px !important;
        min-height: 500px !important;
        max-height: 85vh !important;
        overflow-y: auto !important;
    }
    #sign-modal > div:last-child {
        min-height: 380px !important;
        height: auto !important;
        overflow-y: auto !important;
        padding: 20px !important;
        display: flex;
        flex-direction: column;
    }
    .calendar-cell { height: 32px !important; }
}
@media (max-width: 480px) {
    #sign-modal {
        width: 98% !important;
        max-width: 360px !important;
        min-height: 480px !important;
    }
    .calendar-cell { height: 28px !important; }
}
@media (max-width: 360px) {
    .calendar-cell { height: 26px !important; }
}


/* 硬件加速 */
#sign-modal {
    transform: translate3d(-50%, -50%, 0);
    backface-visibility: hidden;
    perspective: 1000;
    will-change: transform, opacity;
}



#sign-mask.show {
    opacity: 1;
}


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

#calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    /* 修改这两行 */
    min-height: 230px; 
    max-height: 230px;
    align-content: start;
    margin-bottom: 5px;
}

#my-sign-content, #rank-content {
    height: 480px; /* 固定总高度 */
    overflow: hidden !important; /* 强制消除滚动条 */
    display: flex;
    flex-direction: column;
}

/* 专属定制：列表右上角的微型无感下拉框 */
.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: #d35400;
    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='%23d35400' 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");
}

/* =========================================
   补签格子交互样式
========================================= */
.calendar-cell.missed-day {
    cursor: pointer;
    background-color: rgba(211, 84, 0, 0.05);
    color: #5d4037;
    position: relative;
    transition: all 0.2s;
}
.calendar-cell.missed-day:hover {
    background-color: rgba(211, 84, 0, 0.15);
    transform: scale(1.05);
}
.missed-badge {
    position: absolute;
    bottom: 2px;
    right: 4px;
    font-size: 10px;
    color: #d35400;
    line-height: 1;
    font-weight: bold;
}

/* =========================================
   极致简约的二次确认弹窗
========================================= */
#custom-confirm-mask {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); z-index: 10000; display: none;
    backdrop-filter: blur(3px); /* 现代毛玻璃效果 */
}
#custom-confirm-modal {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 340px; /* 这里从 300px 改成了 340px，让框体大一点点 */
    background: #fff; border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2); z-index: 10001; display: none;
    overflow: hidden; text-align: center;
}
.custom-confirm-header {
    padding: 30px 20px 5px; /* 加大了顶部 padding，给大图标留出呼吸空间 */
}
.custom-confirm-body {
    padding: 0 24px 24px; font-size: 0.95rem; color: #666; line-height: 1.6;
}
.custom-confirm-footer {
    display: flex; border-top: 1px solid #f0f0f0;
}
.custom-confirm-btn {
    flex: 1; padding: 14px 0; border: none; background: none; 
    font-size: 1rem; cursor: pointer; transition: background 0.2s; outline: none;
}
.custom-confirm-btn.cancel {
    color: #999; border-right: 1px solid #f0f0f0;
}
.custom-confirm-btn.confirm {
    color: #d35400; font-weight: bold;
}
.custom-confirm-btn:hover { background: #f9f9f9; }

@media (max-width: 500px) {
    #my-sign-content, #rank-content {
        height: 483px; /* 手机端固定高度 */
    }
    #calendar-days {
        min-height: 200px;
        max-height: 200px;
    }
    .calendar-cell {
        height: 28px; /* 手机端格子稍微压缩 */
    }
}
