:root {
            --bg-canvas: radial-gradient(circle at 22% 18%, #F0F3FC 0%, #E4E8FA 48%, #D8DFF7 100%);
            --window-bg: rgba(246, 248, 255, 0.78);
            --card-bg: rgba(255, 255, 255, 0.86);
            --card-border: rgba(255, 255, 255, 0.92);
            --primary-grad: linear-gradient(135deg, #8B95EB 0%, #6E78D8 100%);
            --primary-glow: 0 8px 20px -4px rgba(114, 124, 222, 0.42);
            --text-main: #1F2438;
            --text-sub: #7E869E;
            --row-hover: rgba(242, 244, 255, 0.72);
            --divider-color: #ECEFF9;
            --pill-track: rgba(255, 255, 255, 0.55);
        }

        body.moonlit-night {
            --bg-canvas: radial-gradient(circle at 24% 16%, #1C2346 0%, #141936 52%, #0E1228 100%);
            --window-bg: rgba(26, 33, 66, 0.78);
            --card-bg: rgba(36, 45, 86, 0.76);
            --card-border: rgba(145, 160, 238, 0.22);
            --primary-grad: linear-gradient(135deg, #8E9AF2 0%, #6672D6 100%);
            --primary-glow: 0 8px 24px -4px rgba(118, 130, 236, 0.48);
            --text-main: #EEF1FF;
            --text-sub: #9AA4CC;
            --row-hover: rgba(54, 66, 118, 0.52);
            --divider-color: rgba(138, 152, 226, 0.14);
            --pill-track: rgba(22, 28, 56, 0.65);
        }

        * {
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }

        body {
            font-family: "Noto Sans SC", "Inter", sans-serif;
            background: var(--bg-canvas);
            color: var(--text-main);
            min-height: 100vh;
            margin: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 16px;
            overflow-x: hidden;
            user-select: none;
            transition: background 0.5s ease, color 0.35s ease;
        }

        /* Ambient Silk Light Beams on Canvas */
        .ambient-wave {
            position: fixed;
            pointer-events: none;
            z-index: 0;
            opacity: 0.65;
        }

        /* Main Frosted Desktop Window Frame */
        .nornes-window {
            width: 100%;
            max-width: 860px;
            background: var(--window-bg);
            backdrop-filter: blur(28px);
            -webkit-backdrop-filter: blur(28px);
            border-radius: 26px;
            border: 1.5px solid var(--card-border);
            box-shadow:
                0 28px 65px -15px rgba(86, 98, 168, 0.22),
                0 8px 24px -6px rgba(110, 120, 216, 0.12),
                inset 0 1px 1px rgba(255, 255, 255, 0.45);
            overflow: hidden;
            position: relative;
            z-index: 10;
            transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease, background 0.4s ease;
        }

        /* Frosted Inner Cards */
        .glass-card {
            background: var(--card-bg);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid var(--card-border);
            box-shadow:
                0 6px 20px -4px rgba(102, 114, 184, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.35);
            transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, background 0.35s ease;
        }

        body.moonlit-night .text-\[\#1F2438\],
        body.moonlit-night .text-\[\#2A3045\],
        body.moonlit-night .text-\[\#2C3144\] {
            color: #EEF1FF !important;
        }

        body.moonlit-night .text-\[\#4A5168\],
        body.moonlit-night .text-\[\#505770\],
        body.moonlit-night .text-\[\#5E657D\] {
            color: #B4BEE6 !important;
        }

        body.moonlit-night .text-\[\#7E869E\],
        body.moonlit-night .text-\[\#6C738B\] {
            color: #8E98C4 !important;
        }

        body.moonlit-night .bg-white\/30,
        body.moonlit-night .bg-white\/25 {
            background-color: rgba(22, 28, 56, 0.36) !important;
        }

        body.moonlit-night .border-white\/60 {
            border-color: rgba(145, 160, 238, 0.16) !important;
        }

        body.moonlit-night .nav-active-pill {
            background: rgba(125, 135, 226, 0.25);
            box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15);
        }

        body.moonlit-night .divide-\[\#ECEFF9\] > :not([hidden]) ~ :not([hidden]) {
            border-color: rgba(145, 160, 238, 0.14) !important;
        }

        * {
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }

        body {
            font-family: "Noto Sans SC", "Inter", sans-serif;
            background: var(--bg-canvas);
            color: #1F2438;
            min-height: 100vh;
            margin: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 16px;
            overflow-x: hidden;
            user-select: none;
        }

        /* Ambient Silk Light Beams on Canvas */
        .ambient-wave {
            position: fixed;
            pointer-events: none;
            z-index: 0;
            opacity: 0.65;
        }

        /* Main Frosted Desktop Window Frame */
        .nornes-window {
            width: 100%;
            max-width: 860px;
            background: var(--window-bg);
            backdrop-filter: blur(28px);
            -webkit-backdrop-filter: blur(28px);
            border-radius: 26px;
            border: 1.5px solid rgba(255, 255, 255, 0.9);
            box-shadow:
                0 28px 65px -15px rgba(86, 98, 168, 0.22),
                0 8px 24px -6px rgba(110, 120, 216, 0.12),
                inset 0 1px 1px rgba(255, 255, 255, 0.95);
            overflow: hidden;
            position: relative;
            z-index: 10;
            transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
        }

        /* Frosted Inner Cards */
        .glass-card {
            background: var(--card-bg);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid var(--card-border);
            box-shadow:
                0 6px 20px -4px rgba(102, 114, 184, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.95);
            transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, background 0.25s ease;
        }

        .metric-card:hover {
            transform: translateY(-2px);
            box-shadow:
                0 12px 26px -6px rgba(102, 114, 184, 0.14),
                inset 0 1px 0 rgba(255, 255, 255, 1);
        }

        /* =========================================================
           1. 水波按钮 (Pointer-Origin Water Ripple)
           点在哪，波就在哪散开，反馈跟着手指走，不跟着控件中心走
           ========================================================= */
        .ripple-surface {
            position: relative;
            overflow: hidden;
            transform: translateZ(0);
            transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, filter 0.2s ease;
        }

        .ripple-surface:active {
            transform: scale(0.965);
        }

        .water-ripple-wave {
            position: absolute;
            border-radius: 50%;
            pointer-events: none;
            transform: translate(-50%, -50%) scale(0);
            animation: waterRippleSpread 0.68s cubic-bezier(0.16, 1, 0.3, 1) forwards;
            will-change: transform, opacity;
        }

        .water-ripple-light {
            background: radial-gradient(circle, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.22) 55%, rgba(255, 255, 255, 0) 75%);
        }

        .water-ripple-periwinkle {
            background: radial-gradient(circle, rgba(125, 135, 226, 0.28) 0%, rgba(125, 135, 226, 0.1) 55%, rgba(125, 135, 226, 0) 75%);
        }

        @keyframes waterRippleSpread {
            0% {
                transform: translate(-50%, -50%) scale(0);
                opacity: 0.95;
            }
            65% {
                opacity: 0.45;
            }
            100% {
                transform: translate(-50%, -50%) scale(1);
                opacity: 0;
            }
        }

        /* =========================================================
           2. 弹性开关效果 (Elastic Mass-Spring Switcher)
           滑块起步先横向拉长，落位后再压回原宽，赋予真实物理质量感
           ========================================================= */
        .elastic-pill-slider {
            position: absolute;
            top: 4px;
            bottom: 4px;
            left: 0;
            border-radius: 9999px;
            background: var(--primary-grad);
            box-shadow:
                0 6px 16px -3px rgba(114, 124, 222, 0.45),
                inset 0 1px 1px rgba(255, 255, 255, 0.45);
            z-index: 1;
            pointer-events: none;
            will-change: left, width, transform;
        }

        .segment-btn {
            position: relative;
            z-index: 2;
            transition: color 0.26s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
        }

        .segment-btn:active {
            transform: scale(0.95);
        }

        /* Toggle Switch (Settings Elastic Switch) */
        .elastic-toggle-track {
            width: 48px;
            height: 26px;
            border-radius: 9999px;
            background: #DCE1F5;
            padding: 3px;
            position: relative;
            cursor: pointer;
            transition: background 0.3s ease;
        }
        .elastic-toggle-track.active {
            background: linear-gradient(135deg, #8B95EB 0%, #6E78D8 100%);
        }
        .elastic-toggle-thumb {
            width: 20px;
            height: 20px;
            border-radius: 9999px;
            background: #FFFFFF;
            box-shadow: 0 2px 6px rgba(44, 49, 68, 0.2);
            position: absolute;
            top: 3px;
            left: 3px;
            will-change: left, width;
        }

        /* =========================================================
           3. 点击反馈与成功勾选动效 (Tactile Check & Star Pop)
           ========================================================= */
        .task-row {
            transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.22s ease, opacity 0.3s ease;
            animation: rowCascadeIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) backwards;
        }

        .task-row:hover {
            background-color: var(--row-hover);
        }

        @keyframes rowCascadeIn {
            from {
                opacity: 0;
                transform: translateY(5px) scale(0.99);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        /* Checkbox Squish & Pop */
        .nornes-checkbox {
            width: 20px;
            height: 20px;
            border-radius: 6px;
            border: 1.6px solid #BDC5E6;
            background: rgba(255, 255, 255, 0.9);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            position: relative;
            cursor: pointer;
            transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
            flex-shrink: 0;
        }

        .nornes-checkbox:hover {
            border-color: #7D87E2;
            box-shadow: 0 0 0 3px rgba(125, 135, 226, 0.14);
        }

        .nornes-checkbox.checked {
            border-color: transparent;
            background: var(--primary-grad);
            box-shadow: 0 4px 10px -2px rgba(114, 124, 222, 0.5);
            animation: checkboxSpringPop 0.44s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        @keyframes checkboxSpringPop {
            0% { transform: scale(1); }
            28% { transform: scale(0.76); }
            65% { transform: scale(1.18); }
            100% { transform: scale(1); }
        }

        /* SVG Checkmark Stroke Draw */
        .check-path {
            stroke-dasharray: 20;
            stroke-dashoffset: 20;
            transition: stroke-dashoffset 0.3s cubic-bezier(0.65, 0, 0.35, 1) 0.08s;
        }
        .nornes-checkbox.checked .check-path {
            stroke-dashoffset: 0;
        }

        /* Check Celebration Sparkle Particles */
        .sparkle-particle {
            position: absolute;
            width: 4px;
            height: 4px;
            border-radius: 50%;
            pointer-events: none;
            animation: sparkleBurst 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }

        @keyframes sparkleBurst {
            0% {
                transform: translate(0, 0) scale(0.4);
                opacity: 1;
            }
            100% {
                transform: translate(var(--tx), var(--ty)) scale(1.1);
                opacity: 0;
            }
        }

        /* Animated Strikethrough */
        .task-title-text {
            position: relative;
            transition: color 0.3s ease;
        }
        .task-title-text::after {
            content: '';
            position: absolute;
            left: 0;
            top: 52%;
            height: 1.5px;
            width: 0%;
            background: #9AA3C2;
            border-radius: 2px;
            transition: width 0.34s cubic-bezier(0.22, 1, 0.36, 1);
        }
        .task-row.is-completed .task-title-text {
            color: #9AA3C2;
        }
        .task-row.is-completed .task-title-text::after {
            width: 100%;
        }

        /* Star Button Elastic Bounce */
        .star-btn {
            transition: transform 0.2s ease, color 0.2s ease;
        }
        .star-btn:hover {
            transform: scale(1.12);
        }
        .star-btn.star-pop {
            animation: starElasticBounce 0.48s cubic-bezier(0.34, 1.56, 0.64, 1);
        }
        @keyframes starElasticBounce {
            0% { transform: scale(1); }
            30% { transform: scale(0.72) rotate(-12deg); }
            65% { transform: scale(1.32) rotate(8deg); }
            100% { transform: scale(1) rotate(0deg); }
        }

        /* Nuangnuota Emblem Gentle Float */
        @keyframes emblemFloat {
            0%, 100% { transform: translateY(0px) rotate(0deg); }
            50% { transform: translateY(-4px) rotate(1.5deg); }
        }
        .hero-emblem img {
            animation: emblemFloat 5.5s ease-in-out infinite;
        }

        /* Left Rail Active Pill */
        .nav-active-pill {
            position: absolute;
            left: 12px;
            width: 40px;
            height: 40px;
            border-radius: 12px;
            background: #E4E8FA;
        }
