        .pixel-avatar {
            image-rendering: pixelated;
            image-rendering: -moz-crisp-edges;
            image-rendering: crisp-edges;
        }
        .avatar-selected {
            border-color: #13ecc8 !important;
            background-color: rgba(19, 236, 200, 0.1) !important;
        }
        .section-collapsed {
            max-height: 0;
            overflow: hidden;
            padding: 0 !important;
        }
        .section-expanded {
            max-height: 2000px;
            transition: max-height 0.3s ease-in-out;
        }
        .rotate-180 {
            transform: rotate(180deg);
        }
        .logout-menu {
            display: none;
            position: absolute;
            top: 100%;
            right: 0;
            margin-top: 0.5rem;
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 0.5rem;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            z-index: 100;
            min-width: 120px;
        }
        .logout-menu.show {
            display: block;
        }
        .logout-menu button {
            display: flex;
            align-items: center;
            white-space: nowrap;
        }

        .checkin-modal {
            position: fixed;
            inset: 0;
            z-index: 1200;
            display: none;
            align-items: center;
            justify-content: center;
            background: rgba(15, 23, 42, 0.58);
            backdrop-filter: blur(4px);
            padding: 16px;
        }
        .checkin-modal.show {
            display: flex;
        }
        .checkin-card {
            width: min(520px, 96vw);
            background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
            border: 1px solid #d1fae5;
            border-radius: 18px;
            overflow: hidden;
            box-shadow: 0 28px 52px rgba(15, 23, 42, 0.34);
        }
        .checkin-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 18px;
            background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
            color: #ecfeff;
        }
        .checkin-title-wrap {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .checkin-title-dot {
            width: 10px;
            height: 10px;
            border-radius: 999px;
            background: #fef08a;
            box-shadow: 0 0 0 6px rgba(254, 240, 138, 0.22);
        }
        .checkin-title {
            font-size: 18px;
            font-weight: 800;
            line-height: 1.2;
        }
        .checkin-subtitle {
            font-size: 12px;
            opacity: 0.92;
            margin-top: 2px;
        }
        .checkin-close-btn {
            width: 34px;
            height: 34px;
            border-radius: 999px;
            border: 1px solid rgba(255, 255, 255, 0.42);
            background: rgba(255, 255, 255, 0.18);
            color: #ffffff;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }
        .checkin-body {
            padding: 18px;
        }
        .checkin-week-progress {
            display: grid;
            grid-template-columns: repeat(7, minmax(0, 1fr));
            gap: 8px;
            margin-bottom: 14px;
        }
        .checkin-week-chip {
            border-radius: 12px;
            border: 1px solid #d1fae5;
            background: #ecfeff;
            text-align: center;
            padding: 8px 4px;
            line-height: 1.2;
            color: #0f766e;
            font-size: 12px;
            font-weight: 700;
        }
        .checkin-week-chip.active {
            background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
            border-color: transparent;
            color: #ffffff;
            box-shadow: 0 10px 18px rgba(16, 185, 129, 0.28);
        }
        .checkin-month-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 8px;
        }
        .checkin-month-btn {
            width: 34px;
            height: 34px;
            border-radius: 10px;
            border: 1px solid #cbd5e1;
            background: #ffffff;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: #334155;
        }
        .checkin-month-label {
            font-size: 15px;
            font-weight: 800;
            color: #0f172a;
        }
        .checkin-weekdays {
            display: grid;
            grid-template-columns: repeat(7, minmax(0, 1fr));
            margin-bottom: 6px;
            color: #64748b;
            font-size: 12px;
            text-align: center;
        }
        .checkin-calendar-grid {
            display: grid;
            grid-template-columns: repeat(7, minmax(0, 1fr));
            gap: 6px;
        }
        .checkin-day {
            position: relative;
            min-height: 44px;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            background: #ffffff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
            color: #334155;
        }
        .checkin-day.other-month {
            opacity: 0.35;
        }
        .checkin-day.today {
            border-color: #0ea5e9;
            box-shadow: inset 0 0 0 1px #0ea5e9;
            font-weight: 800;
            color: #0369a1;
        }
        .checkin-day.signed::after {
            content: '';
            position: absolute;
            width: 30px;
            height: 30px;
            border: 2px solid #10b981;
            border-radius: 999px;
            background: rgba(16, 185, 129, 0.1);
        }
        .checkin-day > span {
            position: relative;
            z-index: 1;
        }
        .checkin-footer {
            border-top: 1px solid #e2e8f0;
            padding: 14px 18px 18px;
        }
        .checkin-status-text {
            font-size: 13px;
            color: #475569;
            margin-bottom: 10px;
        }
        .checkin-confirm-btn {
            width: 100%;
            border-radius: 12px;
            border: 0;
            background: linear-gradient(135deg, #10b981 0%, #0ea5e9 100%);
            color: #ffffff;
            font-size: 15px;
            font-weight: 800;
            padding: 12px 14px;
            cursor: pointer;
            transition: transform 0.2s ease, opacity 0.2s ease;
        }
        .checkin-confirm-btn:disabled {
            opacity: 0.55;
            cursor: not-allowed;
        }
        .checkin-confirm-btn:not(:disabled):hover {
            transform: translateY(-1px);
        }

        /* 手机竖屏下的导航栏布局调整 */
        @media (max-width: 768px) and (orientation: portrait) {
            header nav {
                flex-wrap: wrap;
                gap: 12px !important;
                justify-content: center;
            }

            header nav a {
                flex: 0 0 auto;
                white-space: nowrap;
            }

            /* 拼豆编辑器与签到按钮在窄屏下并排 */
            header nav a:nth-child(3),
            header nav .checkin-nav-btn {
                flex: 1 1 calc(50% - 8px);
                text-align: center;
            }

            /* 调整header padding */
            header {
                padding-left: 1rem !important;
                padding-right: 1rem !important;
            }

            /* 调整右侧容器 */
            header .header-actions {
                flex-direction: column;
                align-items: center;
                gap: 1rem;
            }

            .checkin-card {
                width: min(520px, 98vw);
            }
            .checkin-day {
                min-height: 38px;
            }
        }
