* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        /* 防止暗色模式插件覆盖背景和颜色 */
        html, body, .parallax-bg, .parallax-bg-study, .parallax-bg-overlay, .dynamic-wallpaper-layer, .ac-mist-canvas, .bonfire-canvas, .firefly-canvas, .thunder-cloud-canvas, .thunder-fog-overlay {
            background-color: unset !important;
            color: unset !important;
        }

        body {
            font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
            width: 100%;
            height: 100%;
            margin: 0;
            padding: 0;
            overflow: hidden;
            position: relative;
        }

        ::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }

        ::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 3px;
        }

        ::-webkit-scrollbar-thumb {
            background: rgba(116, 185, 255, 0.5);
            border-radius: 3px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: rgba(116, 185, 255, 0.7);
        }

        .parallax-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            overflow: hidden;
        }

        .parallax-bg {
            position: absolute;
            inset: -10%;
            background-image: url('微信图片_20260523235315_1195_12.png');
            background-size: cover;
            background-position: center;
            will-change: transform;
            z-index: 0;
            transition: opacity 0.8s ease-in-out;
        }

        .parallax-bg-study {
            position: absolute;
            inset: -10%;
            background-image: url('file_00000000856471f79d10c9266c123153_edit_145714190898319.png');
            background-size: cover;
            background-position: center;
            will-change: transform;
            z-index: 0.5;
            opacity: 0;
            transition: opacity 0.8s ease-in-out;
        }

        .parallax-bg-study.active {
            opacity: 1;
        }

        .parallax-bg-overlay {
            position: absolute;
            inset: -10%;
            background-size: cover;
            background-position: center;
            opacity: 0;
            transition: opacity 0.8s ease-in-out;
            z-index: 1;
        }

        .parallax-bg-overlay.active {
            opacity: 1;
        }

        .parallax-bg-transition {
            position: absolute;
            inset: -10%;
            background-size: cover;
            background-position: center;
            opacity: 0;
            transition: opacity 0.8s ease-in-out;
            z-index: 1.5;
            pointer-events: none;
        }

        .dynamic-wallpaper-layer {
            position: absolute;
            inset: -10%;
            z-index: 0.6;
            pointer-events: none;
            overflow: hidden;
        }
        .dynamic-wallpaper-layer img,
        .dynamic-wallpaper-layer video {
            width: 100%;
            height: 100%;
            object-fit: cover;
            position: absolute;
            top: 0;
            left: 0;
        }

        .glass-orb {
            position: fixed;
            border-radius: 50%;
            background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.25), rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.02));
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            box-shadow:
                inset 0 0 25px rgba(180,210,255,0),
                inset 0 0 8px rgba(255,255,255,0),
                0 0 18px 4px rgba(180,210,255,0),
                0 0 40px 8px rgba(160,190,255,0),
                0 0 60px 14px rgba(140,180,255,0),
                0 8px 32px rgba(0,0,0,0.2);
            border: 1px solid rgba(255,255,255,0.15);
            overflow: hidden;
            z-index: 9999;
            cursor: pointer;
            transition: box-shadow 0.9s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.6s ease;
        }
        .glass-orb:hover {
            border-color: rgba(180,210,255,0.5);
            box-shadow:
                inset 0 0 25px rgba(180,210,255,0.15),
                inset 0 0 8px rgba(255,255,255,0.2),
                0 0 18px 4px rgba(180,210,255,0.25),
                0 0 40px 8px rgba(160,190,255,0.12),
                0 0 60px 14px rgba(140,180,255,0.06),
                0 8px 32px rgba(0,0,0,0.2);
            transition: box-shadow 0.7s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.4s ease;
        }

        .glass-orb.clicked {
            border-color: rgba(180,210,255,0.7);
            box-shadow:
                inset 0 0 30px rgba(180,210,255,0.3),
                inset 0 0 10px rgba(255,255,255,0.35),
                0 0 20px 6px rgba(180,210,255,0.4),
                0 0 45px 12px rgba(160,190,255,0.2),
                0 0 70px 20px rgba(140,180,255,0.1),
                0 8px 32px rgba(0,0,0,0.2);
            transition: box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.3s ease;
        }
        .glass-orb.clicked.fading {
            border-color: rgba(180,210,255,0.5);
            box-shadow:
                inset 0 0 25px rgba(180,210,255,0.15),
                inset 0 0 8px rgba(255,255,255,0.2),
                0 0 18px 4px rgba(180,210,255,0.25),
                0 0 40px 8px rgba(160,190,255,0.12),
                0 0 60px 14px rgba(140,180,255,0.06),
                0 8px 32px rgba(0,0,0,0.2);
            transition: box-shadow 0.9s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.6s ease;
        }

        .glass-orb.lightning {
            animation: lightningFlash 0.3s ease-out;
        }

        @keyframes lightningFlash {
            0% {
                background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.8), rgba(255,255,255,0.5) 50%, rgba(255,255,255,0.3));
                box-shadow: inset 0 0 50px rgba(255,255,255,0.6), 0 8px 32px rgba(0,0,0,0.2), 0 0 60px rgba(200,220,255,0.8);
            }
            50% {
                background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.6), rgba(255,255,255,0.3) 50%, rgba(255,255,255,0.15));
                box-shadow: inset 0 0 40px rgba(255,255,255,0.4), 0 8px 32px rgba(0,0,0,0.2), 0 0 40px rgba(200,220,255,0.5);
            }
            100% {
                background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.25), rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.02));
                box-shadow: inset 0 0 30px rgba(255,255,255,0.1), 0 8px 32px rgba(0,0,0,0.2);
            }
        }

        .cloud-layer {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            overflow: hidden;
            pointer-events: none;
            z-index: 1;
            animation: cloudLayerFadeIn 0.8s ease forwards;
        }

        .cloud-puff {
            position: absolute;
            width: 55%;
            height: 28%;
            top: 28%;
            left: -100%;
            background: radial-gradient(ellipse at center, rgba(65, 85, 115, 0.55), rgba(40, 55, 80, 0.35) 55%, transparent 90%);
            border-radius: 50%;
            filter: blur(5px);
            animation: cloudDrift linear infinite;
            opacity: 0.85;
        }

        .cloud-puff::before,
        .cloud-puff::after {
            content: '';
            position: absolute;
            border-radius: 50%;
            background: radial-gradient(ellipse at center, rgba(75, 95, 125, 0.5), rgba(45, 60, 85, 0.3) 55%, transparent 90%);
            filter: blur(4px);
        }

        .cloud-puff::before {
            width: 65%;
            height: 130%;
            top: -45%;
            left: 18%;
        }

        .cloud-puff::after {
            width: 50%;
            height: 95%;
            top: -25%;
            right: -8%;
        }

        @keyframes cloudDrift {
            0% {
                left: -100%;
                transform: translateY(0) scale(1);
                opacity: 0;
            }
            20% {
                opacity: 0.85;
            }
            45% {
                opacity: 0.85;
            }
            60% {
                opacity: 0;
            }
            100% {
                left: 200%;
                transform: translateY(-6%) scale(1.08);
                opacity: 0;
            }
        }

        @keyframes cloudLayerFadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes cloudLayerFadeOut {
            from { opacity: 1; }
            to { opacity: 0; }
        }

        .cloud-layer.fading-out {
            animation: cloudLayerFadeOut 0.8s ease forwards;
        }

        /* ==================== 雷雨体积云层（Three.js shader 渲染） ==================== */
        .thunder-cloud-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            opacity: 0;
            transition: opacity 1.2s ease;
            filter: blur(1.5px);
        }
        .thunder-cloud-canvas.active {
            opacity: 1;
        }
        .thunder-cloud-canvas.fading-out {
            opacity: 0;
            transition: opacity 2.5s ease;
        }
        .thunder-cloud-back-canvas {
            z-index: 3;
        }
        .ac-mist-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 3;
            opacity: 0;
            transition: opacity 1.5s ease;
            filter: blur(2px);
        }
        .ac-mist-canvas.active {
            opacity: 1;
        }
        .bonfire-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 9998;
            opacity: 0;
            transition: opacity 1.5s ease;
            mix-blend-mode: screen;
        }
        .bonfire-canvas.active {
            opacity: 1;
        }
        .firefly-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 9998;
            opacity: 0;
            transition: opacity 1.5s ease;
            mix-blend-mode: screen;
        }
        .firefly-canvas.active {
            opacity: 1;
        }
        .thunder-fog-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            z-index: 5;
            pointer-events: none;
            background: radial-gradient(ellipse at 50% 30%,
                rgba(180, 190, 205, 0.28) 0%,
                rgba(145, 155, 170, 0.18) 45%,
                rgba(110, 120, 135, 0.08) 100%);
            opacity: 0;
            transition: opacity 1.2s ease;
        }
        .thunder-cloud-front-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            z-index: 10000;
            pointer-events: none;
            overflow: hidden;
        }
        .thunder-front-puff {
            position: absolute;
            border-radius: 50%;
            background: radial-gradient(ellipse at 40% 40%,
                rgba(105, 115, 130, 0.42) 0%,
                rgba(80, 90, 105, 0.22) 50%,
                rgba(65, 75, 90, 0.0) 80%);
            filter: blur(24px);
            opacity: 0;
            --puff-opacity: 0.32;
            animation: thunderPuffDrift linear forwards;
            pointer-events: none;
        }
        @keyframes thunderPuffDrift {
            0% {
                transform: translateX(120vw) translateY(0) scale(0.9);
                opacity: 0;
            }
            10% { opacity: var(--puff-opacity); }
            90% { opacity: calc(var(--puff-opacity) - 0.05); }
            100% {
                transform: translateX(-120vw) translateY(20px) scale(1.1);
                opacity: 0;
            }
        }
        @keyframes thunderPuffFlash {
            0%, 100% { filter: blur(24px) brightness(1); }
            50% { filter: blur(24px) brightness(1.45); }
        }
        .thunder-front-puff.flash {
            animation-name: thunderPuffDrift, thunderPuffFlash;
        }

        /* 全屏闪电闪光覆盖 */
        .lightning-flash-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 10001;
            background: radial-gradient(ellipse at 50% 20%,
                rgba(200, 220, 255, 0.35) 0%,
                rgba(180, 200, 240, 0.15) 40%,
                transparent 80%);
            opacity: 0;
            transition: opacity 0.06s;
        }
        .lightning-flash-overlay.flash {
            opacity: 1;
        }

        .rain-drop {
            position: absolute;
            width: 2px;
            height: 15px;
            background: linear-gradient(to bottom, rgba(174, 194, 224, 0.8), transparent);
            animation: rainFall 0.8s linear infinite;
        }

        @keyframes rainFall {
            0% {
                transform: translateY(-20px) scaleY(0.5);
                opacity: 0;
            }
            50% {
                opacity: 1;
            }
            100% {
                transform: translateY(100px) scaleY(1);
                opacity: 0;
            }
        }

        .display-rain {
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            overflow: hidden;
            pointer-events: none;
            z-index: 1;
            border-radius: inherit;
        }

        @keyframes displayRainFadeOut {
            from { opacity: 1; }
            to { opacity: 0; }
        }

        .display-rain.fading-out {
            animation: displayRainFadeOut 0.8s ease forwards;
        }

        .current-time span,
        .study-time,
        .study-status {
            position: relative;
            z-index: 2;
        }

        .display-rain-drop {
            position: absolute;
            top: -15px;
            width: 1.5px;
            height: 12px;
            background: linear-gradient(to bottom, rgba(174, 194, 224, 0.75), transparent);
            border-radius: 1px;
            animation: displayRainFall linear infinite;
            opacity: 0.5;
        }

        @keyframes displayRainFall {
            0% {
                top: -15px;
                opacity: 0;
            }
            15% {
                opacity: 0.55;
            }
            85% {
                opacity: 0.55;
            }
            100% {
                top: calc(100% + 15px);
                opacity: 0;
            }
        }

        .fire-glow {
            position: relative;
        }

        .fire-glow::before {
            content: '';
            position: absolute;
            inset: -5px;
            background: radial-gradient(ellipse at center bottom, rgba(255, 150, 50, 0.4) 0%, rgba(255, 100, 30, 0.2) 40%, transparent 70%);
            animation: fireGlowPulse 2s ease-in-out infinite;
            pointer-events: none;
            z-index: -1;
        }

        .fire-glow::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80%;
            height: 20px;
            background: radial-gradient(ellipse at center, rgba(255, 120, 30, 0.6) 0%, rgba(255, 80, 20, 0.3) 50%, transparent 70%);
            filter: blur(10px);
            animation: fireBaseGlow 1.5s ease-in-out infinite alternate;
            pointer-events: none;
            z-index: -1;
        }

        @keyframes fireGlowPulse {
            0%, 100% {
                opacity: 0.6;
                transform: scale(1);
            }
            50% {
                opacity: 0.8;
                transform: scale(1.02);
            }
        }

        @keyframes fireBaseGlow {
            0% {
                opacity: 0.7;
                transform: translateX(-50%) scaleX(0.9);
            }
            100% {
                opacity: 1;
                transform: translateX(-50%) scaleX(1.1);
            }
        }

        .fire-particle {
            position: absolute;
            bottom: 0;
            width: 4px;
            height: 4px;
            background: radial-gradient(circle, #ffcc00 0%, #ff6600 50%, #ff3300 100%);
            border-radius: 50%;
            animation: fireParticleRise 1.5s ease-out infinite;
            pointer-events: none;
        }

        @keyframes fireParticleRise {
            0% {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
            50% {
                opacity: 0.8;
                transform: translateY(-20px) scale(0.8);
            }
            100% {
                opacity: 0;
                transform: translateY(-40px) scale(0.3);
            }
        }

        .ember {
            position: absolute;
            bottom: 0;
            width: 2px;
            height: 2px;
            background: #ffcc00;
            border-radius: 50%;
            animation: emberFloat 2s ease-out infinite;
            pointer-events: none;
        }

        @keyframes emberFloat {
            0% {
                opacity: 1;
                transform: translateY(0) translateX(0);
            }
            25% {
                opacity: 0.9;
                transform: translateY(-15px) translateX(5px);
            }
            50% {
                opacity: 0.7;
                transform: translateY(-30px) translateX(-3px);
            }
            75% {
                opacity: 0.4;
                transform: translateY(-45px) translateX(8px);
            }
            100% {
                opacity: 0;
                transform: translateY(-60px) translateX(-5px);
            }
        }

        .fire-text {
            animation: fireTextFlicker 0.15s ease-in-out infinite alternate;
        }

        @keyframes fireTextFlicker {
            0% {
                color: #ffcc66;
                text-shadow: 0 0 5px #ff6600, 0 0 10px #ff4400, 0 0 15px #ff2200;
            }
            100% {
                color: #ffeeaa;
                text-shadow: 0 0 8px #ff8800, 0 0 15px #ff6600, 0 0 20px #ff3300;
            }
        }

        .glass-orb-1 {
            width: 180px;
            height: 180px;
            top: 15%;
            right: 10%;
        }

        .glass-orb-2 {
            width: 120px;
            height: 120px;
            bottom: 20%;
            left: 5%;
        }

        .glass-orb-3 {
            width: 80px;
            height: 80px;
            top: 60%;
            right: 25%;
        }

        .glass-orb-4 {
            width: 60px;
            height: 60px;
            top: 25%;
            left: 15%;
        }

        .current-time {
            position: absolute;
            bottom: 35px;
            right: 35px;
            font-family: 'SF Mono', 'Fira Code', 'Consolas', 'Courier New', monospace;
            font-size: 1.5rem;
            font-weight: 500;
            color: white;
            letter-spacing: 0.04em;
            background: rgba(0, 0, 0, 0.35);
            padding: 8px 16px;
            border-radius: 28px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            z-index: 10;
        }

        .current-time .seconds {
            color: #e8c97a;
            font-weight: 400;
        }

        @keyframes pulse-colon {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.35; }
        }

        .stop-btn {
            position: absolute;
            top: 25px;
            left: 90px;
            padding: 10px 20px;
            font-size: 14px;
            font-weight: 600;
            background: rgba(255, 255, 255, 0.08);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 50px;
            cursor: pointer;
            transition: opacity 0.3s, visibility 0.3s, background 0.3s, box-shadow 0.3s, filter 0.3s, border-color 0.3s;
            backdrop-filter: blur(2px);
            -webkit-backdrop-filter: blur(2px);
            filter: brightness(0.95);
            box-shadow: inset 2px -2px 2px -1px rgba(255, 255, 255, 0.7), inset -2px 2px 2px -1px rgba(255, 255, 255, 0.7), inset 4px -4px 1px -3px rgba(255, 255, 255, 0.4), inset -4px 4px 1px -3px rgba(255, 255, 255, 0.4), 0 4px 8px rgba(0, 0, 0, 0.15);
            opacity: 0;
            visibility: hidden;
            transform: translateY(-20px);
            z-index: 10;
            overflow: hidden;
        }

        .stop-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            transition: left 0.5s;
        }

        .stop-btn.visible {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .stop-btn:hover {
            filter: brightness(1.05);
            box-shadow: inset 2px -2px 3px -1px rgba(255, 255, 255, 0.8), inset -2px 2px 3px -1px rgba(255, 255, 255, 0.8), inset 5px -5px 2px -4px rgba(255, 255, 255, 0.5), inset -5px 5px 2px -4px rgba(255, 255, 255, 0.5), 0 6px 12px rgba(0, 0, 0, 0.2);
        }

        .stop-btn:hover::before {
            left: 100%;
        }

        .stop-btn:active {
            transform: scale(0.98);
            filter: brightness(0.9);
        }

        .break-btn {
            position: absolute;
            top: 25px;
            left: 205px;
            padding: 10px 20px;
            font-size: 14px;
            font-weight: 600;
            background: rgba(255, 255, 255, 0.08);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 50px;
            cursor: pointer;
            transition: opacity 0.3s, visibility 0.3s, background 0.3s, box-shadow 0.3s, filter 0.3s, border-color 0.3s;
            backdrop-filter: blur(2px);
            -webkit-backdrop-filter: blur(2px);
            filter: brightness(0.95);
            box-shadow: inset 2px -2px 2px -1px rgba(255, 255, 255, 0.7), inset -2px 2px 2px -1px rgba(255, 255, 255, 0.7), inset 4px -4px 1px -3px rgba(255, 255, 255, 0.4), inset -4px 4px 1px -3px rgba(255, 255, 255, 0.4), 0 4px 8px rgba(0, 0, 0, 0.15);
            opacity: 0;
            visibility: hidden;
            transform: translateY(-20px);
            z-index: 10;
            overflow: hidden;
        }

        .break-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            transition: left 0.5s;
        }

        .break-btn.visible {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .break-btn:hover {
            filter: brightness(1.05);
            box-shadow: inset 2px -2px 3px -1px rgba(255, 255, 255, 0.8), inset -2px 2px 3px -1px rgba(255, 255, 255, 0.8), inset 5px -5px 2px -4px rgba(255, 255, 255, 0.5), inset -5px 5px 2px -4px rgba(255, 255, 255, 0.5), 0 6px 12px rgba(0, 0, 0, 0.2);
        }

        .break-btn:hover::before {
            left: 100%;
        }

        .break-btn:active {
            transform: scale(0.98);
            filter: brightness(0.9);
        }

        .break-btn.paused {
            background: rgba(116, 185, 255, 0.15);
            border-color: rgba(116, 185, 255, 0.4);
        }

        .main-container {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            position: relative;
            z-index: 5;
        }

        .button-group {
            display: flex;
            flex-direction: column;
            gap: 25px;
        }

        .btn {
            position: relative;
            padding: 22px 60px;
            font-size: 22px;
            font-weight: 600;
            border: none;
            border-radius: 60px;
            cursor: pointer;
            overflow: hidden;
            transition: background 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                        box-shadow 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                        filter 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                        border-color 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            transition: left 0.5s;
        }

        .btn:hover::before {
            left: 100%;
        }

        .btn-start {
            background: rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(2px);
            -webkit-backdrop-filter: blur(2px);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.15);
            letter-spacing: 2px;
            font-size: 22px;
            padding: 20px 50px;
            filter: brightness(0.95);
            box-shadow: inset 2px -2px 2px -1px rgba(255, 255, 255, 0.7), inset -2px 2px 2px -1px rgba(255, 255, 255, 0.7), inset 4px -4px 1px -3px rgba(255, 255, 255, 0.4), inset -4px 4px 1px -3px rgba(255, 255, 255, 0.4), 0 4px 8px rgba(0, 0, 0, 0.15);
        }

        .btn-records {
            background: rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(2px);
            -webkit-backdrop-filter: blur(2px);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.15);
            letter-spacing: 2px;
            font-size: 22px;
            padding: 20px 50px;
            filter: brightness(0.95);
            box-shadow: inset 2px -2px 2px -1px rgba(255, 255, 255, 0.7), inset -2px 2px 2px -1px rgba(255, 255, 255, 0.7), inset 4px -4px 1px -3px rgba(255, 255, 255, 0.4), inset -4px 4px 1px -3px rgba(255, 255, 255, 0.4), 0 4px 8px rgba(0, 0, 0, 0.15);
        }

        .btn-start:hover {
            filter: brightness(1.05);
            box-shadow: inset 2px -2px 3px -1px rgba(255, 255, 255, 0.8), inset -2px 2px 3px -1px rgba(255, 255, 255, 0.8), inset 5px -5px 2px -4px rgba(255, 255, 255, 0.5), inset -5px 5px 2px -4px rgba(255, 255, 255, 0.5), 0 6px 12px rgba(0, 0, 0, 0.2);
        }

        .btn-records:hover {
            filter: brightness(1.05);
            box-shadow: inset 2px -2px 3px -1px rgba(255, 255, 255, 0.8), inset -2px 2px 3px -1px rgba(255, 255, 255, 0.8), inset 5px -5px 2px -4px rgba(255, 255, 255, 0.5), inset -5px 5px 2px -4px rgba(255, 255, 255, 0.5), 0 6px 12px rgba(0, 0, 0, 0.2);
        }

        .btn:active {
            transform: scale(0.98);
            filter: brightness(0.9);
        }

        .study-display {
            position: absolute;
            left: 35px;
            bottom: 35px;
            text-align: center;
            color: white;
            display: none;
            z-index: 10;
            background: rgba(0, 0, 0, 0.35);
            padding: 15px 25px;
            border-radius: 28px;
            border: 1px solid rgba(255, 255, 255, 0.12);
        }

        .study-time {
            font-size: 48px;
            font-weight: 500;
            letter-spacing: 4px;
            margin-bottom: 8px;
            font-family: 'SF Mono', 'Fira Code', 'Consolas', 'Courier New', monospace;
        }

        .study-time .seconds {
            color: #e8c97a;
            font-weight: 400;
            animation: pulse-colon 1s step-end infinite;
        }

        .study-status {
            font-size: 16px;
            font-weight: 400;
            letter-spacing: 2px;
            opacity: 0.85;
        }

        .fullscreen-btn {
            position: absolute;
            top: 25px;
            right: 200px;
            width: 45px;
            height: 45px;
            font-size: 16px;
            background: rgba(255, 255, 255, 0.08);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 10;
            display: flex;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(2px);
            -webkit-backdrop-filter: blur(2px);
            filter: brightness(0.95);
            box-shadow: inset 2px -2px 2px -1px rgba(255, 255, 255, 0.7), inset -2px 2px 2px -1px rgba(255, 255, 255, 0.7), inset 4px -4px 1px -3px rgba(255, 255, 255, 0.4), inset -4px 4px 1px -3px rgba(255, 255, 255, 0.4), 0 4px 8px rgba(0, 0, 0, 0.15);
        }

        .fullscreen-btn:hover {
            filter: brightness(1.05);
            box-shadow: inset 2px -2px 3px -1px rgba(255, 255, 255, 0.8), inset -2px 2px 3px -1px rgba(255, 255, 255, 0.8), inset 5px -5px 2px -4px rgba(255, 255, 255, 0.5), inset -5px 5px 2px -4px rgba(255, 255, 255, 0.5), 0 6px 12px rgba(0, 0, 0, 0.2);
        }

        .rest-reminder {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
        }

        .rest-reminder.show {
            opacity: 1;
            pointer-events: auto;
        }

        .rest-reminder-content {
            background: rgba(30, 30, 40, 0.95);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 20px;
            padding: 30px 40px;
            text-align: center;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
            transform: scale(0.9);
            transition: transform 0.3s ease;
        }

        .rest-reminder.show .rest-reminder-content {
            transform: scale(1);
        }

        .rest-reminder-icon {
            font-size: 50px;
            margin-bottom: 15px;
        }

        .rest-reminder-text {
            font-size: 22px;
            font-weight: 600;
            color: white;
            margin-bottom: 10px;
        }

        .rest-reminder-message {
            font-size: 16px;
            color: rgba(255, 255, 255, 0.8);
            margin-bottom: 25px;
        }

        .rest-reminder-btn {
            background: rgba(116, 185, 255, 0.2);
            color: white;
            border: 1px solid rgba(116, 185, 255, 0.4);
            border-radius: 25px;
            padding: 10px 30px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s;
            backdrop-filter: blur(2px);
            -webkit-backdrop-filter: blur(2px);
            box-shadow: inset 2px -2px 2px -1px rgba(255, 255, 255, 0.7), inset -2px 2px 2px -1px rgba(255, 255, 255, 0.7), inset 4px -4px 1px -3px rgba(255, 255, 255, 0.4), inset -4px 4px 1px -3px rgba(255, 255, 255, 0.4);
        }

        .rest-reminder-btn:hover {
            background: rgba(116, 185, 255, 0.3);
            filter: brightness(1.1);
        }

        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: transparent;
            justify-content: center;
            align-items: center;
            z-index: 10001;
        }

        .modal.active {
            display: flex;
        }

        .modal-content {
            background: rgba(18, 22, 35, 0.42);
            backdrop-filter: blur(24px) saturate(170%);
            -webkit-backdrop-filter: blur(24px) saturate(170%);
            padding: 40px;
            border-radius: 28px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow:
                0 24px 70px rgba(0, 0, 0, 0.4),
                0 10px 30px rgba(0, 0, 0, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.3),
                inset 0 -1px 0 rgba(0, 0, 0, 0.2),
                inset 1px 0 0 rgba(255, 255, 255, 0.12),
                inset -1px 0 0 rgba(0, 0, 0, 0.12);
            text-align: center;
            max-width: 450px;
            width: 90%;
            animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        @keyframes modalSlideIn {
            from {
                opacity: 0;
                transform: scale(0.8) translateY(50px);
            }
            to {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        @keyframes modalSlideOut {
            from {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
            to {
                opacity: 0;
                transform: scale(0.8) translateY(50px);
            }
        }

        .modal-content.closing {
            animation: modalSlideOut 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
        }

        .modal h2 {
            margin-bottom: 35px;
            color: white;
            font-size: 28px;
            font-weight: 600;
            letter-spacing: 2px;
        }

        .modal-buttons {
            display: flex;
            flex-direction: column;
            gap: 18px;
        }

        .modal-btn {
            padding: 18px 40px;
            font-size: 18px;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: 600;
            letter-spacing: 1px;
            backdrop-filter: blur(2px);
            -webkit-backdrop-filter: blur(2px);
            border: 1px solid rgba(255, 255, 255, 0.15);
            background: rgba(255, 255, 255, 0.08);
            color: white;
            filter: brightness(0.95);
            box-shadow: inset 2px -2px 2px -1px rgba(255, 255, 255, 0.7), inset -2px 2px 2px -1px rgba(255, 255, 255, 0.7), inset 4px -4px 1px -3px rgba(255, 255, 255, 0.4), inset -4px 4px 1px -3px rgba(255, 255, 255, 0.4), 0 4px 8px rgba(0, 0, 0, 0.15);
        }

        .modal-btn-direct {
            background: rgba(255, 255, 255, 0.12);
        }

        .modal-btn-direct:hover {
            filter: brightness(1.05);
            box-shadow: inset 2px -2px 3px -1px rgba(255, 255, 255, 0.8), inset -2px 2px 3px -1px rgba(255, 255, 255, 0.8), inset 5px -5px 2px -4px rgba(255, 255, 255, 0.5), inset -5px 5px 2px -4px rgba(255, 255, 255, 0.5), 0 6px 12px rgba(0, 0, 0, 0.2);
        }

        .modal-btn-timed {
            background: rgba(255, 255, 255, 0.12);
        }

        .modal-btn-timed:hover {
            filter: brightness(1.05);
            box-shadow: inset 2px -2px 3px -1px rgba(255, 255, 255, 0.8), inset -2px 2px 3px -1px rgba(255, 255, 255, 0.8), inset 5px -5px 2px -4px rgba(255, 255, 255, 0.5), inset -5px 5px 2px -4px rgba(255, 255, 255, 0.5), 0 6px 12px rgba(0, 0, 0, 0.2);
        }

        .stop-confirm-content .modal-buttons {
            flex-direction: row;
            justify-content: center;
            gap: 20px;
        }

        .stop-confirm-message {
            color: rgba(255, 255, 255, 0.9);
            font-size: 20px;
            margin-bottom: 30px;
            letter-spacing: 1px;
        }

        .time-input-container {
            display: none;
            margin-top: 25px;
            animation: fadeIn 0.3s ease;
            flex-direction: column;
            align-items: center;
            gap: 20px;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .time-input-container.active {
            display: flex;
        }

        .time-input-box {
            display: flex;
            align-items: center;
            gap: 10px;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 15px;
            padding: 15px 20px;
            min-width: 200px;
        }

        .time-input-box input {
            flex: 1;
            padding: 0;
            font-size: 28px;
            font-weight: 600;
            border: none;
            border-radius: 0;
            width: auto;
            text-align: center;
            outline: none;
            background: transparent;
            color: white;
            font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
        }

        .time-input-box input:focus {
            border-color: transparent;
        }

        .time-input-box input::-webkit-outer-spin-button,
        .time-input-box input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        .time-input-box input[type=number] {
            -moz-appearance: textfield;
        }

        .time-unit {
            font-size: 16px;
            color: rgba(255, 255, 255, 0.7);
            font-weight: 500;
        }

        .time-input-container button {
            padding: 15px 30px;
            font-size: 16px;
            background: rgba(255, 255, 255, 0.08);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 15px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s;
            backdrop-filter: blur(2px);
            -webkit-backdrop-filter: blur(2px);
            filter: brightness(0.95);
            box-shadow: inset 2px -2px 2px -1px rgba(255, 255, 255, 0.7), inset -2px 2px 2px -1px rgba(255, 255, 255, 0.7), inset 4px -4px 1px -3px rgba(255, 255, 255, 0.4), inset -4px 4px 1px -3px rgba(255, 255, 255, 0.4), 0 4px 8px rgba(0, 0, 0, 0.15);
        }

        .time-input-container button:hover {
            filter: brightness(1.05);
            box-shadow: inset 2px -2px 3px -1px rgba(255, 255, 255, 0.8), inset -2px 2px 3px -1px rgba(255, 255, 255, 0.8), inset 5px -5px 2px -4px rgba(255, 255, 255, 0.5), inset -5px 5px 2px -4px rgba(255, 255, 255, 0.5), 0 6px 12px rgba(0, 0, 0, 0.2);
        }

        .study-type-section {
            margin: 20px 0;
            padding: 15px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 15px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .study-type-label {
            font-size: 14px;
            color: rgba(255, 255, 255, 0.7);
            margin-bottom: 12px;
            text-align: center;
        }

        .study-type-buttons {
            display: flex;
            gap: 10px;
            justify-content: center;
            flex-wrap: wrap;
            margin-bottom: 10px;
        }

        .study-type-btn {
            padding: 10px 20px;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            background: rgba(255, 255, 255, 0.08);
            color: white;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .study-type-btn:hover {
            background: rgba(255, 255, 255, 0.15);
        }

        .study-type-btn.active {
            background: rgba(251, 191, 36, 0.25);
            border-color: rgba(251, 191, 36, 0.7);
            box-shadow: 0 0 12px rgba(251, 191, 36, 0.35);
        }

        .study-type-input {
            width: 100%;
            padding: 10px;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            background: rgba(255, 255, 255, 0.06);
            color: white;
            font-size: 14px;
            text-align: center;
            outline: none;
            box-sizing: border-box;
        }

        .study-type-input::placeholder {
            color: rgba(255, 255, 255, 0.4);
        }

        .study-type-btn.study-type-manage {
            padding: 10px 14px;
            background: rgba(255, 255, 255, 0.12);
            border-color: rgba(255, 255, 255, 0.25);
        }

        .study-type-btn.study-type-manage:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: rotate(30deg);
        }

        .study-type-btn.study-type-manage.active {
            background: rgba(255, 255, 255, 0.2);
            border-color: rgba(255, 255, 255, 0.4);
            box-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
        }

        .study-type-wrapper {
            position: relative;
            display: inline-flex;
            align-items: center;
        }

        .study-type-delete-badge {
            position: absolute;
            top: -7px;
            right: -7px;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            border: none;
            background: rgba(239, 68, 68, 0.9);
            color: white;
            font-size: 13px;
            line-height: 1;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2;
            transition: all 0.2s ease;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
        }

        .study-type-delete-badge:hover {
            background: rgba(239, 68, 68, 1);
            transform: scale(1.15);
        }

        .study-type-btn.dragging {
            opacity: 0.4;
        }

        .study-type-btn.drag-over {
            transform: scale(1.05);
            box-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
        }

        .pie-chart-wrapper {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 20px;
            padding: 10px 0;
            flex-wrap: wrap;
        }

        .pie-chart-header {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            margin-bottom: 10px;
        }

        .pie-chart-header h3 {
            margin: 0;
            min-width: 160px;
            text-align: center;
            font-size: 16px;
        }

        .pie-nav-btn {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            border: none;
            background: rgba(255, 255, 255, 0.15);
            color: rgba(255, 255, 255, 0.8);
            font-size: 12px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
        }

        .pie-nav-btn:hover:not(:disabled) {
            background: rgba(255, 255, 255, 0.3);
            color: white;
            transform: scale(1.1);
        }

        .pie-nav-btn:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }

        .pie-chart-legend {
            display: flex;
            flex-direction: column;
            gap: 8px;
            font-size: 12px;
            color: rgba(255, 255, 255, 0.8);
        }

        .pie-legend-item {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .pie-legend-color {
            width: 12px;
            height: 12px;
            border-radius: 3px;
        }

        @keyframes pieChartEnter {
            0% {
                opacity: 0;
                transform: scale(0.82) rotate(-6deg);
            }
            60% {
                transform: scale(1.03) rotate(1.5deg);
            }
            100% {
                opacity: 1;
                transform: scale(1) rotate(0deg);
            }
        }

        @keyframes legendItemEnter {
            0% {
                opacity: 0;
                transform: translateX(-15px);
            }
            100% {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .pie-chart-wrapper.animating {
            animation: pieChartEnter 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
        }

        .pie-legend-item.animating {
            opacity: 0;
            animation: legendItemEnter 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
        }

        @keyframes chartAreaEnter {
            0% {
                opacity: 0;
                transform: scale(0.96) translateY(12px);
            }
            100% {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        @keyframes barGrow {
            0% {
                opacity: 0;
                transform: scaleY(0);
            }
            60% {
                transform: scaleY(1.06);
            }
            100% {
                opacity: 1;
                transform: scaleY(1);
            }
        }

        @keyframes labelFadeIn {
            0% {
                opacity: 0;
                transform: translateY(8px);
            }
            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes lineChartEnter {
            0% {
                opacity: 0;
                transform: scale(0.96) translateY(12px);
            }
            100% {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        .chart-area.animating {
            animation: chartAreaEnter 0.55s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
        }

        .hour-bar.animating, .day-bar.animating {
            transform-origin: bottom center;
            animation: barGrow 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
        }

        .hour-labels.animating, .day-labels.animating,
        .chart-y-axis.animating {
            opacity: 0;
            animation: labelFadeIn 0.45s ease forwards;
        }

        .line-chart-container.animating {
            animation: lineChartEnter 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
        }

        .records-modal .modal-content {
            max-height: 85vh;
            overflow-y: auto;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .records-modal .modal-content::-webkit-scrollbar {
            display: none;
        }

        .total-time {
            font-size: 24px;
            background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 25px;
            font-weight: 700;
        }

        .records-list {
            max-height: 400px;
            overflow-y: auto;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .records-list::-webkit-scrollbar {
            display: none;
        }

        .record-item {
            padding: 18px;
            background: rgba(255, 255, 255, 0.08);
            border-radius: 15px;
            margin-bottom: 12px;
            text-align: left;
            border-left: 4px solid #74b9ff;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .record-item:hover {
            transform: translateX(5px);
            border-left-color: #0984e3;
            background: rgba(255, 255, 255, 0.12);
        }

        .delete-btn {
            width: 36px;
            height: 36px;
            border: none;
            border-radius: 10px;
            background: rgba(231, 76, 60, 0.2);
            color: #e74c3c;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0.6;
        }

        .delete-btn:hover {
            background: rgba(231, 76, 60, 0.4);
            opacity: 1;
            transform: scale(1.1);
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .trash-btn {
            padding: 8px 16px;
            background: rgba(231, 76, 60, 0.2);
            color: #e74c3c;
            border: 1px solid rgba(231, 76, 60, 0.4);
            border-radius: 8px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .trash-btn:hover {
            background: rgba(231, 76, 60, 0.3);
        }

        .empty-trash-btn {
            padding: 8px 16px;
            background: rgba(231, 76, 60, 0.3);
            color: #e74c3c;
            border: 1px solid rgba(231, 76, 60, 0.5);
            border-radius: 8px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .empty-trash-btn:hover {
            background: rgba(231, 76, 60, 0.5);
        }

        .restore-btn {
            padding: 6px 12px;
            background: rgba(46, 213, 115, 0.2);
            color: #2ed573;
            border: 1px solid rgba(46, 213, 115, 0.4);
            border-radius: 6px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .restore-btn:hover {
            background: rgba(46, 213, 115, 0.3);
        }

        .trash-actions {
            display: flex;
            gap: 8px;
        }

        .expand-icon {
            float: right;
            font-size: 12px;
            color: rgba(255, 255, 255, 0.6);
            transition: transform 0.3s;
        }

        .record-subitems {
            margin-top: 12px;
            padding-left: 20px;
            border-left: 2px solid rgba(116, 185, 255, 0.3);
        }

        .record-subitem {
            padding: 8px 12px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            margin-bottom: 6px;
            font-size: 13px;
            color: rgba(255, 255, 255, 0.8);
        }

        .time-group {
            margin-bottom: 10px;
        }

        .time-group-header {
            padding: 10px 15px;
            background: rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            color: white;
            display: flex;
            align-items: center;
            justify-content: space-between;
            transition: all 0.3s;
        }

        .time-group-header:hover {
            background: rgba(255, 255, 255, 0.12);
        }

        .time-group-header.day-header {
            font-size: 13px;
            background: rgba(255, 255, 255, 0.05);
        }

        .time-group-header.month-header {
            font-size: 13px;
            background: rgba(255, 255, 255, 0.05);
        }

        .time-group-content {
            margin-top: 8px;
            padding-left: 15px;
        }

        .time-group-content.month-content {
            padding-left: 30px;
        }

        .time-group-content.year-content {
            padding-left: 30px;
        }

        .group-count {
            font-size: 12px;
            font-weight: 400;
            color: rgba(255, 255, 255, 0.6);
        }

        .record-date {
            font-weight: 700;
            color: white;
            margin-bottom: 8px;
            font-size: 16px;
        }

        .records-content {
            max-width: 900px;
            max-height: 85vh;
        }

        .charts-container {
            display: flex;
            gap: 25px;
            margin-bottom: 25px;
            flex-wrap: wrap;
        }

        .chart-panel {
            flex: 1;
            min-width: 300px;
            background: rgba(255, 255, 255, 0.08);
            border-radius: 15px;
            padding: 18px;
        }

        .chart-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .chart-panel h3 {
            color: rgba(255, 255, 255, 0.9);
            font-size: 14px;
            margin: 0;
        }

        .chart-toggle-btn {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.18);
            border-radius: 20px;
            padding: 5px 12px;
            color: rgba(255, 255, 255, 0.7);
            font-size: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .chart-toggle-btn:hover {
            background: rgba(255, 255, 255, 0.18);
            color: #fff;
        }

        .hour-chart, .day-chart {
            display: flex;
            align-items: flex-end;
            justify-content: space-around;
            height: 120px;
            padding: 10px 0;
        }

        .chart-area {
            position: relative;
            padding-left: 48px;
        }

        .chart-y-axis {
            position: absolute;
            left: 0;
            top: 10px;
            height: 100px;
            width: 44px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: flex-end;
            font-size: 9px;
            color: rgba(255, 255, 255, 0.5);
            pointer-events: none;
            line-height: 1;
            white-space: nowrap;
        }

        .hour-bar, .day-bar {
            width: 15px;
            background: linear-gradient(180deg, #74b9ff 0%, #0984e3 100%);
            border-radius: 8px 8px 0 0;
            transition: height 0.3s ease;
            min-height: 5px;
            position: relative;
        }

        .day-bar {
            width: 35px;
        }

        .hour-bar:hover, .day-bar:hover {
            background: linear-gradient(180deg, #00b894 0%, #00a085 100%);
        }

        .hour-labels, .day-labels {
            display: flex;
            justify-content: space-around;
            margin-top: 8px;
            font-size: 10px;
            color: rgba(255, 255, 255, 0.6);
        }

        .hour-label {
            width: 15px;
            text-align: center;
        }

        .day-label {
            width: 35px;
            text-align: center;
        }

        .line-chart-container {
            background: rgba(255, 255, 255, 0.08);
            border-radius: 15px;
            padding: 18px;
            margin-bottom: 15px;
        }

        .line-chart-container .chart-header h3 {
            color: rgba(255, 255, 255, 0.9);
            font-size: 14px;
            margin: 0;
        }

        .line-chart-wrapper {
            overflow-x: auto;
            padding: 10px 0;
            position: relative;
        }

        .line-chart-wrapper canvas {
            display: block;
        }

        .record-details {
            color: rgba(255, 255, 255, 0.8);
            font-size: 14px;
            line-height: 1.6;
        }

        .close-btn {
            position: absolute;
            top: 20px;
            right: 25px;
            font-size: 35px;
            cursor: pointer;
            color: rgba(255, 255, 255, 0.6);
            transition: all 0.3s;
            width: 40px;
            height: 40px;
            line-height: 40px;
        }

        .close-btn:hover {
            color: #2d3436;
            transform: rotate(90deg);
        }

        .no-records {
            color: #b2bec3;
            font-size: 18px;
            padding: 50px;
        }

        .modal-btn-cancel {
            background: linear-gradient(135deg, #b2bec3 0%, #636e72 100%);
            color: white;
            box-shadow: 0 4px 15px rgba(178, 190, 195, 0.3);
            margin-top: 10px;
        }

        .modal-btn-cancel:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(178, 190, 195, 0.4);
        }

        #soundBtn, #settingsBtn {
            position: absolute;
            left: 35px;
            padding: 10px 20px;
            font-size: 14px;
            font-weight: 600;
            background: rgba(255, 255, 255, 0.08);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 50px;
            cursor: pointer;
            z-index: 100;
            transition: background 0.3s, box-shadow 0.3s, filter 0.3s, border-color 0.3s, opacity 0.3s;
            backdrop-filter: blur(2px);
            -webkit-backdrop-filter: blur(2px);
            filter: brightness(0.95);
            box-shadow: inset 2px -2px 2px -1px rgba(255, 255, 255, 0.7), inset -2px 2px 2px -1px rgba(255, 255, 255, 0.7), inset 4px -4px 1px -3px rgba(255, 255, 255, 0.4), inset -4px 4px 1px -3px rgba(255, 255, 255, 0.4), 0 4px 8px rgba(0, 0, 0, 0.15);
            overflow: hidden;
        }

        #soundBtn::before, #settingsBtn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            transition: left 0.5s;
        }

        #soundBtn:hover, #settingsBtn:hover {
            filter: brightness(1.05);
            box-shadow: inset 2px -2px 3px -1px rgba(255, 255, 255, 0.8), inset -2px 2px 3px -1px rgba(255, 255, 255, 0.8), inset 5px -5px 2px -4px rgba(255, 255, 255, 0.5), inset -5px 5px 2px -4px rgba(255, 255, 255, 0.5), 0 6px 12px rgba(0, 0, 0, 0.2);
        }

        #soundBtn:hover::before, #settingsBtn:hover::before {
            left: 100%;
        }

        #soundBtn {
            top: 85px;
        }

        #settingsBtn {
            top: 140px;
        }

        #soundBtn:hover {
            filter: brightness(1.05);
            box-shadow: inset 2px -2px 3px -1px rgba(255, 255, 255, 0.8), inset -2px 2px 3px -1px rgba(255, 255, 255, 0.8), inset 5px -5px 2px -4px rgba(255, 255, 255, 0.5), inset -5px 5px 2px -4px rgba(255, 255, 255, 0.5), 0 6px 12px rgba(0, 0, 0, 0.2);
        }

        #soundBtn.playing {
            background: rgba(116, 185, 255, 0.15);
            border-color: rgba(116, 185, 255, 0.4);
            box-shadow: inset 2px -2px 2px -1px rgba(255, 255, 255, 0.7), inset -2px 2px 2px -1px rgba(255, 255, 255, 0.7), inset 4px -4px 1px -3px rgba(255, 255, 255, 0.4), inset -4px 4px 1px -3px rgba(255, 255, 255, 0.4), 0 4px 8px rgba(116, 185, 255, 0.3);
        }

        .sound-modal-content {
            max-width: 500px;
        }

        .settings-modal-content {
            max-width: 600px;
            max-height: 80vh;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            transition: max-width 0.3s ease;
        }
        .settings-modal-content.wallpaper-expanded {
            max-width: 1200px;
            max-height: 92vh;
        }

        .settings-content {
            padding: 10px 0;
            overflow-y: auto;
            flex: 1;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }
        .settings-content::-webkit-scrollbar {
            display: none;
        }

        .setting-item {
            padding: 12px 20px;
            background: rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .setting-item label {
            display: flex;
            align-items: center;
            gap: 12px;
            cursor: pointer;
            color: rgba(255, 255, 255, 0.9);
            font-size: 15px;
            width: 100%;
        }

        .setting-item input[type="checkbox"] {
            width: 18px;
            height: 18px;
            cursor: pointer;
            accent-color: #74b9ff;
            margin-left: auto;
        }

        .volume-control {
            display: flex;
            align-items: center;
            gap: 15px;
            width: 100%;
        }

        .volume-control label {
            cursor: default;
        }

        .volume-slider {
            flex: 1;
            height: 6px;
            -webkit-appearance: none;
            appearance: none;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 3px;
            outline: none;
        }

        .volume-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 16px;
            height: 16px;
            background: #74b9ff;
            border-radius: 50%;
            cursor: pointer;
            box-shadow: 0 2px 6px rgba(116, 185, 255, 0.5);
        }

        .volume-slider::-moz-range-thumb {
            width: 16px;
            height: 16px;
            background: #74b9ff;
            border-radius: 50%;
            cursor: pointer;
            border: none;
            box-shadow: 0 2px 6px rgba(116, 185, 255, 0.5);
        }

        .setting-nav-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            cursor: default;
            transition: background 0.2s ease;
        }
        .setting-nav-row:hover {
            background: rgba(255, 255, 255, 0.14);
        }
        .setting-nav-left {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: space-between;
            cursor: pointer;
            padding-right: 12px;
            position: relative;
            z-index: 3;
            color: rgba(255, 255, 255, 0.9);
            font-size: 15px;
            white-space: nowrap;
            min-width: 0;
        }
        .setting-nav-row.setting-item-disabled .setting-nav-left {
            cursor: not-allowed;
            opacity: 0.45;
        }
        .setting-nav-row.setting-item-disabled:hover {
            background: rgba(255, 255, 255, 0.08);
        }
        .setting-nav-arrow {
            font-size: 20px;
            color: rgba(255, 255, 255, 0.6);
        }
        .setting-item .setting-toggle-label {
            cursor: pointer;
            display: flex;
            align-items: center;
            padding: 4px;
            width: auto;
            flex: 0 0 auto;
            position: relative;
            z-index: 2;
        }
        .setting-item .setting-toggle-label input[type="checkbox"] {
            margin: 0;
        }
        .rain-card-canvas {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 1;
            border-radius: inherit;
        }

        .settings-panel-header {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 20px;
            margin-bottom: 10px;
            background: rgba(255, 255, 255, 0.08);
            border-radius: 12px;
        }
        .settings-back-btn {
            background: transparent;
            border: none;
            color: rgba(255, 255, 255, 0.9);
            font-size: 15px;
            cursor: pointer;
            padding: 4px 8px;
            border-radius: 8px;
            transition: background 0.2s ease;
        }
        .settings-back-btn:hover {
            background: rgba(255, 255, 255, 0.14);
        }
        .settings-panel-title {
            color: rgba(255, 255, 255, 0.95);
            font-size: 16px;
            font-weight: 500;
        }

        /* 自定义壁纸管理面板 */
        .wallpaper-panel {
            max-width: none !important;
        }
        .wallpaper-slots-row {
            display: flex;
            gap: 10px;
            align-items: stretch;
            margin-bottom: 14px;
        }
        .wallpaper-slot {
            flex: 1;
            background: rgba(255,255,255,0.04);
            border-radius: 12px;
            padding: 10px;
            transition: all 0.3s ease;
        }
        .wallpaper-slot:hover {
            background: rgba(255,255,255,0.07);
        }
        .wallpaper-slot-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 8px;
        }
        .wallpaper-slot-label {
            color: rgba(255,255,255,0.85);
            font-size: 13px;
            font-weight: 500;
        }
        .wallpaper-reset-btn {
            background: rgba(255,255,255,0.08);
            border: 1px solid rgba(255,255,255,0.12);
            color: rgba(255,255,255,0.6);
            border-radius: 6px;
            padding: 3px 10px;
            font-size: 11px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        .wallpaper-reset-btn:hover {
            background: rgba(255,255,255,0.15);
            color: rgba(255,255,255,0.9);
        }
        .wallpaper-slot-thumb {
            width: 100%;
            aspect-ratio: 16/9;
            border-radius: 8px;
            background-size: cover;
            background-position: center;
            background-color: rgba(0,0,0,0.3);
            cursor: pointer;
            transition: all 0.3s ease;
            border: 2px solid transparent;
        }
        .wallpaper-slot-thumb:hover {
            border-color: rgba(100,160,255,0.4);
        }
        .wallpaper-slot-thumb.custom {
            border-color: rgba(100,160,255,0.3);
        }
        .wallpaper-slot-same-col {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 4px;
        }
        .wallpaper-same-label {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            color: rgba(255,255,255,0.65);
            font-size: 12px;
            cursor: pointer;
            user-select: none;
            white-space: nowrap;
        }
        .wallpaper-same-label input[type="checkbox"] {
            accent-color: rgba(100,160,255,0.8);
            width: 16px;
            height: 16px;
            cursor: pointer;
        }
        .wallpaper-slot-off-hidden {
            display: none !important;
        }
        .wallpaper-gallery-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 10px;
            color: rgba(255,255,255,0.85);
            font-size: 14px;
            font-weight: 500;
        }
        .wallpaper-type-tabs {
            display: flex;
            gap: 0;
            background: rgba(255,255,255,0.06);
            border-radius: 8px;
            overflow: hidden;
            border: 1px solid rgba(255,255,255,0.1);
        }
        .wallpaper-type-tab {
            padding: 5px 16px;
            font-size: 13px;
            background: transparent;
            border: none;
            color: rgba(255,255,255,0.55);
            cursor: pointer;
            transition: all 0.25s ease;
        }
        .wallpaper-type-tab:hover {
            color: rgba(255,255,255,0.8);
        }
        .wallpaper-type-tab.active {
            background: rgba(100,160,255,0.2);
            color: rgba(255,255,255,0.95);
        }
        .wallpaper-add-btn {
            background: rgba(255,255,255,0.08);
            border: 1px solid rgba(255,255,255,0.15);
            color: rgba(255,255,255,0.75);
            border-radius: 8px;
            padding: 5px 14px;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        .wallpaper-add-btn:hover {
            background: rgba(255,255,255,0.15);
            color: rgba(255,255,255,0.95);
        }
        .wallpaper-gallery {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
        }
        .wallpaper-thumb {
            width: 100%;
            aspect-ratio: 16/9;
            border-radius: 8px;
            background-size: cover;
            background-position: center;
            background-color: rgba(0,0,0,0.2);
        }
        .wallpaper-card {
            position: relative;
            border-radius: 10px;
            overflow: hidden;
            cursor: pointer;
            border: 2px solid transparent;
            transition: all 0.3s ease;
            background: rgba(255,255,255,0.04);
        }
        .wallpaper-card:hover {
            background: rgba(255,255,255,0.08);
            border-color: rgba(255,255,255,0.15);
        }
        .wallpaper-card.active {
            border-color: rgba(100,160,255,0.6);
        }
        .wallpaper-card .wallpaper-thumb {
            border-radius: 0;
        }
        .wallpaper-card-name {
            padding: 5px 8px;
            color: rgba(255,255,255,0.7);
            font-size: 11px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .wallpaper-card .wallpaper-dynamic-badge {
            position: absolute;
            top: 4px;
            left: 4px;
            background: rgba(0,0,0,0.5);
            color: rgba(255,255,255,0.85);
            font-size: 10px;
            padding: 2px 6px;
            border-radius: 4px;
            backdrop-filter: blur(4px);
            pointer-events: none;
        }
        .wallpaper-card-actions {
            position: absolute;
            top: 4px;
            right: 4px;
            display: flex;
            gap: 3px;
            opacity: 0;
            transition: opacity 0.2s ease;
        }
        .wallpaper-card:hover .wallpaper-card-actions {
            opacity: 1;
        }
        .wallpaper-card-action {
            width: 22px;
            height: 22px;
            border-radius: 6px;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            background: rgba(0,0,0,0.5);
            color: rgba(255,255,255,0.8);
            transition: all 0.2s ease;
            backdrop-filter: blur(4px);
        }
        .wallpaper-card-action:hover {
            background: rgba(220,60,60,0.7);
            color: white;
        }
        .wallpaper-card-action.wallpaper-apply-btn:hover {
            background: rgba(60,140,220,0.7);
        }
        .wallpaper-empty {
            color: rgba(255,255,255,0.4);
            font-size: 13px;
            text-align: center;
            padding: 20px 0;
        }

        #restReminderTime::-webkit-outer-spin-button,
        #restReminderTime::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        #restReminderTime {
            -moz-appearance: textfield;
        }

        #screenWakeTime::-webkit-outer-spin-button,
        #screenWakeTime::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        #screenWakeTime {
            -moz-appearance: textfield;
        }

        .volume-value {
            width: 40px;
            text-align: right;
            color: rgba(255, 255, 255, 0.7);
            font-size: 14px;
        }

        .setting-buttons {
            display: flex;
            gap: 12px;
        }

        .setting-buttons button {
            flex: 1;
            padding: 10px 15px;
            font-size: 14px;
            color: rgba(255, 255, 255, 0.95) !important;
            min-width: auto;
        }

        .btn-export, .btn-import {
            background: rgba(116, 185, 255, 0.2);
            border-color: rgba(116, 185, 255, 0.4);
            color: rgba(255, 255, 255, 0.95) !important;
        }

        .btn-clear {
            background: rgba(255, 107, 129, 0.2);
            border-color: rgba(255, 107, 129, 0.4);
        }

        .sound-list {
            max-height: 400px;
            overflow-y: auto;
            overflow-x: hidden;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .sound-list::-webkit-scrollbar {
            display: none;
        }

        .sound-item {
            padding: 15px 20px;
            background: rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            margin-bottom: 10px;
            cursor: pointer;
            border: 1px solid rgba(255, 255, 255, 0.15);
            transition: all 0.3s;
            display: flex;
            justify-content: space-between;
            align-items: center;
            filter: brightness(0.95);
            box-shadow: inset 2px -2px 2px -1px rgba(255, 255, 255, 0.7), inset -2px 2px 2px -1px rgba(255, 255, 255, 0.7), inset 4px -4px 1px -3px rgba(255, 255, 255, 0.4), inset -4px 4px 1px -3px rgba(255, 255, 255, 0.4), 0 4px 8px rgba(0, 0, 0, 0.15);
        }

        .sound-item:hover {
            background: rgba(255, 255, 255, 0.12);
            border-color: rgba(255, 255, 255, 0.2);
            filter: brightness(1.05);
            box-shadow: inset 2px -2px 3px -1px rgba(255, 255, 255, 0.8), inset -2px 2px 3px -1px rgba(255, 255, 255, 0.8), inset 5px -5px 2px -4px rgba(255, 255, 255, 0.5), inset -5px 5px 2px -4px rgba(255, 255, 255, 0.5), 0 6px 12px rgba(0, 0, 0, 0.2);
        }

        .sound-item.active {
            background: rgba(116, 185, 255, 0.35);
            border-color: rgba(116, 185, 255, 0.8);
            filter: brightness(1.15);
            box-shadow: inset 2px -2px 3px -1px rgba(255, 255, 255, 0.8), inset -2px 2px 3px -1px rgba(255, 255, 255, 0.8), inset 5px -5px 2px -4px rgba(255, 255, 255, 0.5), inset -5px 5px 2px -4px rgba(255, 255, 255, 0.5), 0 6px 16px rgba(116, 185, 255, 0.5);
        }

        .sound-item-name {
            color: white;
            font-weight: 500;
        }

        .sound-item-icon {
            font-size: 18px;
            opacity: 0.7;
        }

        .sound-item.active .sound-item-icon {
            opacity: 1;
        }

        @keyframes heartbeat {
            0%, 100% { background: rgba(164, 176, 190, 0.25); border-color: rgba(164, 176, 190, 0.5); box-shadow: inset 2px -2px 3px -1px rgba(255, 255, 255, 0.8), inset -2px 2px 3px -1px rgba(255, 255, 255, 0.8), 0 6px 16px #a4b0be80; }
            15% { background: rgba(255, 71, 87, 0.4); border-color: rgba(255, 71, 87, 0.8); box-shadow: inset 2px -2px 3px -1px rgba(255, 255, 255, 0.9), inset -2px 2px 3px -1px rgba(255, 255, 255, 0.9), 0 6px 25px #ff475780, 0 0 30px #ff475750; }
            30% { background: rgba(164, 176, 190, 0.25); border-color: rgba(164, 176, 190, 0.5); box-shadow: inset 2px -2px 3px -1px rgba(255, 255, 255, 0.8), inset -2px 2px 3px -1px rgba(255, 255, 255, 0.8), 0 6px 16px #a4b0be80; }
            45% { background: rgba(255, 71, 87, 0.4); border-color: rgba(255, 71, 87, 0.8); box-shadow: inset 2px -2px 3px -1px rgba(255, 255, 255, 0.9), inset -2px 2px 3px -1px rgba(255, 255, 255, 0.9), 0 6px 25px #ff475780, 0 0 30px #ff475750; }
            60% { background: rgba(164, 176, 190, 0.25); border-color: rgba(164, 176, 190, 0.5); box-shadow: inset 2px -2px 3px -1px rgba(255, 255, 255, 0.8), inset -2px 2px 3px -1px rgba(255, 255, 255, 0.8), 0 6px 16px #a4b0be80; }
        }

        @keyframes heartbeatGlow {
            0%, 100% { box-shadow: inset 2px -2px 3px -1px rgba(255, 255, 255, 0.8), inset -2px 2px 3px -1px rgba(255, 255, 255, 0.8), 0 4px 12px #a4b0be50; }
            15% { box-shadow: inset 2px -2px 3px -1px rgba(255, 255, 255, 0.9), inset -2px 2px 3px -1px rgba(255, 255, 255, 0.9), 0 4px 20px #ff475780, 0 0 25px #ff475750; }
            30% { box-shadow: inset 2px -2px 3px -1px rgba(255, 255, 255, 0.8), inset -2px 2px 3px -1px rgba(255, 255, 255, 0.8), 0 4px 12px #a4b0be50; }
            45% { box-shadow: inset 2px -2px 3px -1px rgba(255, 255, 255, 0.9), inset -2px 2px 3px -1px rgba(255, 255, 255, 0.9), 0 4px 20px #ff475780, 0 0 25px #ff475750; }
            60% { box-shadow: inset 2px -2px 3px -1px rgba(255, 255, 255, 0.8), inset -2px 2px 3px -1px rgba(255, 255, 255, 0.8), 0 4px 12px #a4b0be50; }
        }

        .break-board {
            position: fixed;
            top: 0;
            left: 50%;
            transform: translate(-50%, -120%);
            width: 400px;
            background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
            border-radius: 0 0 20px 20px;
            padding: 25px 35px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
            border: 3px solid #4a5568;
            z-index: 50;
            transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
            backdrop-filter: blur(10px);
        }

        .break-board.show {
            transform: translate(-50%, 0);
        }

        .break-board-title {
            text-align: center;
            font-size: 18px;
            font-weight: 600;
            color: #fbbf24;
            margin-bottom: 15px;
            letter-spacing: 2px;
        }

        .break-board-time {
            text-align: center;
            font-size: 48px;
            font-weight: 700;
            color: #10b981;
            font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
            text-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
        }

        .break-board-hint {
            text-align: center;
            font-size: 14px;
            color: rgba(255, 255, 255, 0.6);
            margin-top: 10px;
        }

        .break-options {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
            margin-top: 18px;
            flex-wrap: wrap;
        }

        .break-option-btn {
            padding: 8px 16px;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.25);
            background: rgba(255, 255, 255, 0.08);
            color: white;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow: inset 1px -1px 1px rgba(255, 255, 255, 0.3), inset -1px 1px 1px rgba(255, 255, 255, 0.3);
        }

        .break-option-btn:hover {
            background: rgba(255, 255, 255, 0.18);
            transform: translateY(-1px);
        }

        .break-option-btn.active {
            background: rgba(251, 191, 36, 0.25);
            border-color: rgba(251, 191, 36, 0.7);
            box-shadow: 0 0 12px rgba(251, 191, 36, 0.35), inset 1px -1px 1px rgba(255, 255, 255, 0.3);
        }

        .break-custom {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .break-custom-input {
            width: 58px;
            padding: 8px 4px;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            background: rgba(255, 255, 255, 0.06);
            color: white;
            font-size: 13px;
            text-align: center;
            outline: none;
            -moz-appearance: textfield;
        }

        .break-custom-input::-webkit-outer-spin-button,
        .break-custom-input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        .break-custom-input::placeholder {
            color: rgba(255, 255, 255, 0.4);
            font-size: 11px;
        }

        .break-countdown {
            margin-top: 18px;
            text-align: center;
        }

        .break-countdown-text {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.55);
            margin-bottom: 4px;
        }

        .break-countdown-time {
            font-size: 28px;
            font-weight: 700;
            color: #fbbf24;
            font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
            text-shadow: 0 0 15px rgba(251, 191, 36, 0.45);
        }

        .break-countdown-time.warning {
            color: #ef4444;
            text-shadow: 0 0 15px rgba(239, 68, 68, 0.45);
        }

        /* ===== 方正有力主题 ===== */
        body.theme-square .btn,
        body.theme-square .btn-start,
        body.theme-square .btn-records,
        body.theme-square .stop-btn,
        body.theme-square .break-btn,
        body.theme-square .fullscreen-btn,
        body.theme-square .modal-btn-direct,
        body.theme-square .modal-btn-timed,
        body.theme-square .modal-btn-cancel,
        body.theme-square .study-type-btn,
        body.theme-square .study-type-manage,
        body.theme-square #soundBtn,
        body.theme-square #settingsBtn,
        body.theme-square #fullscreenBtn,
        body.theme-square #exitFullscreenBtn,
        body.theme-square .setting-buttons button,
        body.theme-square .btn-export,
        body.theme-square .btn-import,
        body.theme-square .study-type-delete-badge,
        body.theme-square .theme-option,
        body.theme-square .light-option,
        body.theme-square .sound-item,
        body.theme-square .record-item,
        body.theme-square .record-details,
        body.theme-square .delete-btn,
        body.theme-square .trash-btn,
        body.theme-square .empty-trash-btn,
        body.theme-square .restore-btn,
        body.theme-square .time-input-container button,
        body.theme-square .break-option-btn,
        body.theme-square .rest-reminder-btn {
            border-radius: 0 !important;
        }

        body.theme-square .current-time,
        body.theme-square .study-display,
        body.theme-square .main-container,
        body.theme-square .modal-content,
        body.theme-square .settings-modal-content,
        body.theme-square .records-modal .modal-content,
        body.theme-square .trash-modal .modal-content,
        body.theme-square .sound-modal-content,
        body.theme-square .break-board,
        body.theme-square .setting-item,
        body.theme-square input[type="text"],
        body.theme-square input[type="number"],
        body.theme-square .time-input-box,
        body.theme-square .study-type-section,
        body.theme-square .line-chart-tooltip,
        body.theme-square #lineChartTooltip,
        body.theme-square .chart-panel,
        body.theme-square .chart-toggle-btn,
        body.theme-square .line-chart-container,
        body.theme-square .chart-area,
        body.theme-square .chart-y-axis,
        body.theme-square .pie-chart-wrapper,
        body.theme-square .pie-chart-header,
        body.theme-square .pie-chart-legend,
        body.theme-square .pie-legend-item,
        body.theme-square .pie-legend-color,
        body.theme-square .pie-nav-btn,
        body.theme-square .record-subitem,
        body.theme-square .time-group-header,
        body.theme-square .hour-bar,
        body.theme-square .day-bar,
        body.theme-square .rest-reminder-content {
            border-radius: 0 !important;
        }

        /* 主题切换过渡：优先动画 border-radius，同时保留常见 hover 过渡 */
        body.theme-transition * {
            transition: border-radius 0.4s ease, background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease !important;
        }

        body.theme-transition .glass-orb {
            transition: border-radius 0.4s ease !important;
        }

        body.theme-square .glass-orb {
            border-radius: 4px !important;
        }

        .theme-options {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .theme-option {
            padding: 6px 14px;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 8px;
            color: white;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .theme-option:hover {
            background: rgba(255, 255, 255, 0.15);
        }

        .theme-option.active {
            background: rgba(251, 191, 36, 0.25);
            border-color: rgba(251, 191, 36, 0.7);
            box-shadow: 0 0 12px rgba(251, 191, 36, 0.35);
        }

        .light-options {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .light-option {
            padding: 6px 14px;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 8px;
            color: white;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .light-option:hover {
            background: rgba(255, 255, 255, 0.15);
        }

        .light-option.active {
            background: rgba(251, 191, 36, 0.25);
            border-color: rgba(251, 191, 36, 0.7);
            box-shadow: 0 0 12px rgba(251, 191, 36, 0.35);
        }

        /* ==================== 词条管理面板 ==================== */
        .entry-manager-body {
            padding: 10px 20px;
        }

        .entry-section {
            margin-bottom: 16px;
            background: rgba(255, 255, 255, 0.04);
            border-radius: 12px;
            padding: 12px 14px;
            transition: background 0.3s ease;
        }

        .entry-section:hover {
            background: rgba(255, 255, 255, 0.07);
        }

        .entry-section-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 10px;
        }

        .entry-section-title {
            color: rgba(255, 255, 255, 0.95);
            font-size: 15px;
            font-weight: 500;
        }

        .entry-section-count {
            background: rgba(116, 185, 255, 0.2);
            color: rgba(116, 185, 255, 0.9);
            font-size: 12px;
            padding: 2px 8px;
            border-radius: 10px;
        }

        .entry-list {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .entry-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 8px 12px;
            background: rgba(255, 255, 255, 0.06);
            border-radius: 8px;
            transition: background 0.2s ease;
        }

        .entry-item:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .entry-name {
            color: rgba(255, 255, 255, 0.9);
            font-size: 14px;
            flex: 1;
        }

        .entry-actions {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .entry-action-btn {
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.7);
            width: 28px;
            height: 28px;
            border-radius: 6px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            transition: all 0.2s ease;
            padding: 0;
        }

        .entry-action-btn:hover {
            background: rgba(255, 255, 255, 0.15);
            color: rgba(255, 255, 255, 0.95);
        }

        .entry-del-btn:hover {
            background: rgba(255, 80, 80, 0.25);
            border-color: rgba(255, 80, 80, 0.4);
            color: rgba(255, 100, 100, 0.95);
        }

        .entry-cat-del {
            margin-left: auto;
        }

        .entry-move-btn:hover {
            background: rgba(116, 185, 255, 0.2);
            border-color: rgba(116, 185, 255, 0.35);
            color: rgba(116, 185, 255, 0.95);
        }

        .entry-move-menu {
            position: absolute;
            right: 0;
            top: 100%;
            min-width: 140px;
            background: rgba(30, 35, 50, 0.95);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 8px;
            padding: 4px 0;
            z-index: 10;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
        }

        .entry-move-item {
            padding: 8px 14px;
            color: rgba(255, 255, 255, 0.85);
            font-size: 13px;
            cursor: pointer;
            transition: background 0.15s ease;
        }

        .entry-move-item:hover {
            background: rgba(116, 185, 255, 0.15);
            color: rgba(255, 255, 255, 1);
        }

        .entry-add-row {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 10px;
        }

        .entry-add-input {
            flex: 1;
            padding: 8px 12px;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 8px;
            color: rgba(255, 255, 255, 0.9);
            font-size: 14px;
            outline: none;
            transition: border-color 0.2s ease;
        }

        .entry-add-input::placeholder {
            color: rgba(255, 255, 255, 0.4);
        }

        .entry-add-input:focus {
            border-color: rgba(116, 185, 255, 0.5);
        }

        .entry-add-btn {
            padding: 8px 16px;
            background: rgba(116, 185, 255, 0.15);
            border: 1px solid rgba(116, 185, 255, 0.3);
            border-radius: 8px;
            color: rgba(116, 185, 255, 0.9);
            font-size: 13px;
            cursor: pointer;
            transition: all 0.2s ease;
            white-space: nowrap;
        }

        .entry-add-btn:hover {
            background: rgba(116, 185, 255, 0.25);
            border-color: rgba(116, 185, 255, 0.5);
        }

        /* 词条项操作区域需要 relative 以定位下拉菜单 */
        .entry-actions {
            position: relative;
        }

        /* ==================== 面板帮助提示 ==================== */
        .panel-help-wrapper {
            position: relative;
            display: flex;
            align-items: center;
        }

        .panel-help-icon {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: rgba(255, 255, 255, 0.5);
            font-size: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: help;
            transition: all 0.2s ease;
        }

        .panel-help-icon:hover {
            background: rgba(116, 185, 255, 0.15);
            border-color: rgba(116, 185, 255, 0.35);
            color: rgba(116, 185, 255, 0.9);
        }

        .panel-help-tooltip {
            display: none;
        }

        body > .panel-help-tooltip {
            display: block;
            position: fixed;
            min-width: 200px;
            max-width: 280px;
            padding: 10px 14px;
            background: rgba(25, 30, 45, 0.95);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 10px;
            color: rgba(255, 255, 255, 0.85);
            font-size: 13px;
            line-height: 1.5;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
            pointer-events: none;
            opacity: 0;
            transform: translateY(-4px);
            transition: opacity 0.25s ease, transform 0.25s ease;
            z-index: 99999;
        }

        body > .panel-help-tooltip::before {
            content: '';
            position: absolute;
            top: -5px;
            right: 10px;
            width: 10px;
            height: 10px;
            background: rgba(25, 30, 45, 0.95);
            border-left: 1px solid rgba(255, 255, 255, 0.12);
            border-top: 1px solid rgba(255, 255, 255, 0.12);
            transform: rotate(45deg);
        }

        body > .panel-help-tooltip.above::before {
            top: auto;
            bottom: -5px;
            border-left: none;
            border-top: none;
            border-right: 1px solid rgba(255, 255, 255, 0.12);
            border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        }

        body > .panel-help-tooltip.show {
            opacity: 1;
            transform: translateY(0);
            pointer-events: auto;
        }

        .setting-label-row {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        /* ==================== 更多图表按钮（右上角定位，复用chart-toggle-btn风格） ==================== */
        .more-charts-corner-btn {
            position: absolute;
            top: 12px;
            right: 12px;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.18);
            border-radius: 20px;
            padding: 4px 12px;
            color: rgba(255, 255, 255, 0.7);
            font-size: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 10;
        }
        .more-charts-corner-btn:hover {
            background: rgba(255, 255, 255, 0.18);
            color: #fff;
        }

        /* ==================== 更多图表面板 ==================== */
        .more-charts-panel {
            padding: 10px 0;
        }

        .more-charts-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 10px;
            padding-bottom: 12px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .more-charts-back-btn {
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 10px;
            color: rgba(255, 255, 255, 0.8);
            font-size: 18px;
            padding: 4px 12px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        .more-charts-back-btn:hover {
            background: rgba(255, 255, 255, 0.15);
            color: #fff;
        }

        .more-charts-title {
            color: rgba(255, 255, 255, 0.9);
            font-size: 16px;
            font-weight: 600;
        }

        .more-charts-total-time {
            font-size: 24px;
            background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-weight: 700;
            margin-bottom: 20px;
            padding: 10px 0;
        }

        .more-charts-total-time .seconds {
            font-size: 16px;
            opacity: 0.7;
        }

        /* 扩大面板尺寸 */
        .records-content.more-charts-expanded {
            max-width: 1200px;
            max-height: 92vh;
        }

        .more-chart-section {
            background: rgba(255, 255, 255, 0.06);
            border-radius: 15px;
            padding: 18px;
            margin-bottom: 20px;
        }

        .more-chart-section h3 {
            color: rgba(255, 255, 255, 0.9);
            font-size: 14px;
            margin: 0 0 15px 0;
        }

        /* ========== 1. 分类折线图 ========== */
        .category-line-chart-wrapper {
            position: relative;
        }

        .category-line-legend {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-top: 10px;
        }

        .cat-line-legend-item {
            display: flex;
            align-items: center;
            gap: 6px;
            color: rgba(255, 255, 255, 0.7);
            font-size: 12px;
        }

        .cat-line-legend-color {
            width: 12px;
            height: 3px;
            border-radius: 2px;
        }

        /* ========== 2. 年度热力图 ========== */
        .heatmap-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 15px;
        }

        .heatmap-header h3 {
            margin: 0;
            flex: 1;
            text-align: center;
        }

        .heatmap-year-btn {
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 8px;
            color: rgba(255, 255, 255, 0.8);
            font-size: 18px;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            flex-shrink: 0;
        }
        .heatmap-year-btn:hover:not(:disabled) {
            background: rgba(255, 255, 255, 0.15);
            color: #fff;
        }
        .heatmap-year-btn:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }

        .heatmap-month-labels {
            position: relative;
            height: 18px;
            margin-bottom: 4px;
        }

        .heatmap-month-label {
            position: absolute;
            color: rgba(255, 255, 255, 0.45);
            font-size: 10px;
            white-space: nowrap;
        }

        .heatmap-grid {
            display: flex;
            gap: 2px;
        }

        .heatmap-weekday-labels {
            display: flex;
            flex-direction: column;
            gap: 1px;
            padding-right: 2px;
            flex-shrink: 0;
        }

        .heatmap-weekday-label {
            width: 18px;
            height: 10px;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            color: rgba(255, 255, 255, 0.35);
            font-size: 8px;
            line-height: 1;
        }

        .heatmap-cells {
            display: flex;
            gap: 1px;
            flex-shrink: 0;
        }

        .heatmap-week {
            display: flex;
            flex-direction: column;
            gap: 1px;
        }

        .heatmap-cell {
            border-radius: 2px;
            cursor: pointer;
            transition: transform 0.15s ease, box-shadow 0.15s ease;
            opacity: 0;
        }
        .heatmap-cell.wave-in {
            animation: heatmapWaveIn 0.4s ease-out forwards;
        }
        @keyframes heatmapWaveIn {
            from { opacity: 0; transform: scale(0.3); }
            to { opacity: 1; transform: scale(1); }
        }
        .heatmap-cell:hover:not(.empty) {
            transform: scale(1.6);
            box-shadow: 0 0 6px rgba(116, 185, 255, 0.4);
            z-index: 1;
        }
        .heatmap-cell.empty {
            cursor: default;
            background: transparent !important;
        }

        .heatmap-legend {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-top: 10px;
            color: rgba(255, 255, 255, 0.45);
            font-size: 11px;
            justify-content: flex-end;
        }

        .heatmap-legend-blocks {
            display: flex;
            gap: 3px;
        }

        .heatmap-legend-block {
            width: 12px;
            height: 12px;
            border-radius: 2px;
        }

        /* ========== 3. 每日时间轴 ========== */
        .timeline-section-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 15px;
        }

        .timeline-section-header h3 {
            margin: 0;
        }

        .timeline-day-nav {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .timeline-day-label {
            color: rgba(255, 255, 255, 0.85);
            font-size: 13px;
            font-weight: 600;
            min-width: 60px;
            text-align: center;
        }

        .daily-timeline-wrapper {
            position: relative;
            margin-bottom: 12px;
        }

        .timeline-axis-labels {
            display: flex;
            justify-content: space-between;
            color: rgba(255, 255, 255, 0.35);
            font-size: 10px;
            margin-bottom: 6px;
            padding: 0 1px;
        }

        .timeline-bar-container {
            position: relative;
            height: 40px;
            background: rgba(255, 255, 255, 0.04);
            border-radius: 8px;
            overflow: hidden;
        }

        .timeline-block {
            position: absolute;
            top: 4px;
            bottom: 4px;
            border-radius: 4px;
            min-width: 4px;
            cursor: pointer;
            transition: filter 0.2s ease;
            overflow: hidden;
            opacity: 0;
            animation: timelineBlockIn 0.4s ease-out forwards;
            transform-origin: left center;
        }
        @keyframes timelineBlockIn {
            from { opacity: 0; transform: scaleX(0); }
            to { opacity: 1; transform: scaleX(1); }
        }
        .timeline-block:hover {
            filter: brightness(1.3);
            z-index: 1;
        }

        .timeline-empty {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 40px;
            color: rgba(255, 255, 255, 0.4);
            font-size: 13px;
        }

        .timeline-legend {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-bottom: 12px;
        }

        .timeline-legend-item {
            display: flex;
            align-items: center;
            gap: 6px;
            color: rgba(255, 255, 255, 0.7);
            font-size: 12px;
        }

        .timeline-legend-color {
            width: 12px;
            height: 12px;
            border-radius: 3px;
        }

        .timeline-analysis, .timeline-overall-stats {
            margin-top: 12px;
        }

        .timeline-stat-section-title {
            color: rgba(255, 255, 255, 0.7);
            font-size: 12px;
            font-weight: 600;
            margin-bottom: 8px;
            padding-bottom: 6px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }

        .timeline-stat-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 4px 0;
        }

        .timeline-stat-label {
            color: rgba(255, 255, 255, 0.5);
            font-size: 12px;
        }

        .timeline-stat-value {
            color: rgba(255, 255, 255, 0.85);
            font-size: 12px;
            font-weight: 600;
        }

