* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2e7d32;
    padding: 1rem;
}

.container {
    width: 100%;
    max-width: 420px;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 32px;
    box-shadow: 0 8px 32px rgba(46, 125, 50, 0.08);
}

.header {
    text-align: center;
    margin-bottom: 2rem;
}

.header h1 {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.5rem;
    color: #2e7d32;
}

.main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.check-in-btn {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #66bb6a 0%, #43a047 100%);
    color: white;
    font-size: 1.5rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(67, 160, 71, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.check-in-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(67, 160, 71, 0.4);
}

.check-in-btn:active {
    transform: translateY(0);
}

.check-in-btn.checked {
    background: linear-gradient(135deg, #bdbdbd 0%, #9e9e9e 100%);
    box-shadow: 0 8px 24px rgba(158, 158, 158, 0.2);
    cursor: not-allowed;
}

.check-in-btn.checked:hover {
    transform: none;
    box-shadow: 0 8px 24px rgba(158, 158, 158, 0.2);
}

/* 涟漪效果 */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.footer {
    margin-top: 2rem;
}

.week-days {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.day-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.day-name {
    font-size: 0.75rem;
    color: #66bb6a;
    font-weight: 500;
}

.day-number {
    font-size: 1rem;
    color: #2e7d32;
    font-weight: 400;
    position: relative;
    min-height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.day-month {
    font-size: 0.65rem;
    color: #81c784;
    margin-right: 0.2rem;
}

.day-item.checked .day-number {
    font-size: 0.75rem;
    color: #81c784;
}

.day-item.checked .day-number::after {
    content: '✓';
    position: absolute;
    top: -1rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #43a047;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 320px;
    width: 90%;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

.modal-text {
    font-size: 1.1rem;
    color: #2e7d32;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.modal-close {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #66bb6a 0%, #43a047 100%);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(67, 160, 71, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 移动端适配 */
@media (max-width: 480px) {
    body {
        padding: 0.5rem;
    }

    .container {
        padding: 2rem 1.5rem;
        min-height: 500px;
        border-radius: 24px;
    }

    .header h1 {
        font-size: 1.5rem;
        letter-spacing: 0.3rem;
    }

    .check-in-btn {
        width: 150px;
        height: 150px;
        font-size: 1.3rem;
    }

    .day-name {
        font-size: 0.7rem;
    }

    .day-number {
        font-size: 0.9rem;
    }

    .day-item.checked .day-number {
        font-size: 0.7rem;
    }

    .day-item.checked .day-number::after {
        font-size: 1.3rem;
    }

    .modal-content {
        padding: 1.5rem;
    }

    .modal-text {
        font-size: 1rem;
    }
}
