:root {
            --bg-dark: #0f0f1a;
            --card-bg: #161628;
            --glow: rgba(64, 224, 208, 0.4);
            --primary: #40e0d0;
            --primary-to: #9f7aea;
            --warning: #F56C6C;
            --text: #e0e0ff;
            --text-muted: #888;
            --date-hover: rgba(64, 224, 208, 0.15);
            --date-preview: rgba(159, 122, 234, 0.2);
            --date-selected: linear-gradient(90deg, rgba(64, 224, 208, 0.4), rgba(159, 122, 234, 0.4));
            --date-today-border: #40e0d0;
            --btn-bg: rgba(255,255,255,0.08);
            --btn-hover: rgba(255,255,255,0.2);
            --btn-active: rgba(64, 224, 208, 0.6);
        }

        body {
            margin: 0;
            padding: 80px 20px 20px 20px;
            background: var(--bg-dark);
            font-family: 'Segoe UI', system-ui, sans-serif;
            /* display: flex;
            justify-content: center;
            align-items: center; */
            min-height: 100vh;
            color: var(--text);
        }

        .dark-date-range-container {
            display: none;
            background: var(--card-bg);
            border-radius: 20px;
            padding: 24px;
            box-shadow: 0 0 0 1px var(--glow), 0 15px 40px rgba(0,0,0,0.5);
            position: fixed;
            width: 100%;
            max-width: 380px;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            z-index: 9999;
            user-select: none;
        }

        .delete-icon {
            width: 24px;
            height: 24px;
            padding: 4px;
            border-radius: 50%;
            background: rgba(255,255,255,0.05);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: var(--warning);
            font-weight: bold;
            transition: all 0.2s;
            font-size: 16px;
            padding-bottom: 6px;
            position: absolute;
            top: 4px;
            right: 6px;
        }

        .date-picker-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .date-picker-title {
            font-size: 20px;
            font-weight: 600;
            background: linear-gradient(90deg, var(--primary), var(--primary-to));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .date-picker-nav {
            display: flex;
            gap: 12px;
        }

        .date-picker-nav-btn {
            width: 32px;
            height: 32px;
            line-height: 32px;
            border-radius: 50%;
            background: rgba(255,255,255,0.05);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: var(--primary);
            font-weight: bold;
            transition: all 0.2s;
            font-size: 24px;
            padding-bottom: 6px;
        }

        .date-picker-nav-btn:hover {
            background: rgba(64, 224, 208, 0.2);
            transform: scale(1.1);
        }

        .weekdays {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            text-align: center;
            font-size: 13px;
            color: var(--text-muted);
            margin-bottom: 12px;
            font-weight: 600;
        }

        .days-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 6px;
            margin-bottom: 20px;
        }

        .day {
            aspect-ratio: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            font-size: 15px;
            cursor: pointer;
            transition: all 0.2s ease;
            color: var(--text);
            position: relative;
        }

        .day:hover {
            background: var(--date-hover);
            transform: scale(1.05);
            z-index: 2;
        }

        .day.today {
            border: 2px solid var(--date-today-border);
            font-weight: 600;
        }

        .day.outside {
            color: #444;
        }

        .day.disabled {
            color: #333;
            cursor: not-allowed;
            opacity: 0.5;
        }

        /* 预览态（已选但未确认） */
        .day.preview-start,
        .day.preview-end {
            background: var(--date-preview);
            font-weight: bold;
            color: white;
        }

        .day.preview-between {
            background: var(--date-preview);
        }

        /* 确认后正式选中态 */
        .day.selected-start,
        .day.selected-end {
            background: var(--primary);
            color: #000;
            font-weight: bold;
            box-shadow: 0 0 12px rgba(64, 224, 208, 0.8);
            z-index: 1;
        }

        .day.selected-between {
            background: var(--date-selected);
        }

        /* 操作按钮栏 */
        .action-bar {
            display: flex;
            gap: 12px;
            margin-top: 16px;
        }

        .action-btn {
            flex: 1;
            padding: 12px 0;
            border-radius: 10px;
            border: none;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

        .confirm-btn {
            background: var(--btn-bg);
            color: var(--primary);
        }

        .confirm-btn:hover {
            background: var(--btn-hover);
            transform: translateY(-2px);
        }

        .confirm-btn:active {
            background: var(--btn-active);
            color: #000;
        }

        .reset-btn {
            background: rgba(255, 100, 100, 0.1);
            color: #ff6464;
        }

        .reset-btn:hover {
            background: rgba(255, 100, 100, 0.3);
            transform: translateY(-2px);
        }

        /* 响应式 */
        @media (max-width: 400px) {
            .dark-date-range-container {
                margin: 10px;
                padding: 16px;
            }
            .date-picker-title {
                font-size: 18px;
            }
            .day {
                font-size: 14px;
            }
            .action-btn {
                padding: 10px 0;
                font-size: 14px;
            }
        }

        .day .reselected {
            background: rgba(255, 215, 0, 0.6) !important;
            color: #000 !important;
            font-weight: bold;
            box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.8), 0 0 12px rgba(255, 215, 0, 0.5);
            transform: scale(1.1);
            z-index: 3;
            animation: pulse 0.6s ease-in-out;
        }

        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.15); }
            100% { transform: scale(1); }
        }