        /* 从 index.html 拆出的基础样式；最终界面规则由 app-ui.css 覆盖。 */
        /* 站酷快乐体 - 圆润手写风格 */
        @font-face {
            font-family: 'ZCOOL KuaiLe';
            src: url('../fonts/ZCOOLKuaiLe-Regular.ttf') format('truetype');
            font-weight: normal;
            font-style: normal;
            font-display: swap;
        }
        
        /* 全站字体：站酷快乐体（圆润可爱手写风） */
        body, body * {
            font-family: 'ZCOOL KuaiLe', 'Noto Sans SC', 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif !important;
        }
        /* 英文保持 Nunito */
        .font-cute, button, input, select, textarea {
            font-family: 'ZCOOL KuaiLe', 'Noto Sans SC', 'Nunito', sans-serif !important;
        }
        
        html {
            font-size: 21px;
        }
        
        body {
            background: linear-gradient(180deg, #E3F2FD 0%, #FFF0F5 50%, #FFFACD 100%);
            min-height: 100vh;
            position: relative;
            overflow-x: hidden;
            overflow-y: scroll;
            scrollbar-gutter: stable;
        }

        /* 面板隐藏 */
        .hidden {
            display: none !important;
        }

        /* ========== Tailwind 工具类内联（CDN不可用时兜底）========== */

        /* Display */
        .hidden { display: none !important; }
        .flex { display: flex; }
        .grid { display: grid; }
        .block { display: block; }
        .inline-block { display: inline-block; }

        /* Flex */
        .flex-row { flex-direction: row; }
        .flex-wrap { flex-wrap: wrap; }
        .items-center { align-items: center; }
        .items-start { align-items: flex-start; }
        .justify-center { justify-content: center; }
        .justify-between { justify-content: space-between; }
        .gap-1 { gap: 0.25rem; }
        .gap-2 { gap: 0.5rem; }
        .gap-3 { gap: 0.75rem; }
        .gap-4 { gap: 1rem; }
        .flex-1 { flex: 1 1 0%; }
        .flex-shrink-0 { flex-shrink: 0; }
        .min-w-0 { min-width: 0; }

        /* Grid */
        .grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .grid-cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }

        /* Spacing */
        .p-0 { padding: 0; }
        .p-2\.5 { padding: 0.625rem; }
        .p-3 { padding: 0.75rem; }
        .p-4 { padding: 1rem; }
        .p-5 { padding: 1.25rem; }
        .p-6 { padding: 1.5rem; }
        .p-8 { padding: 2rem; }
        .px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
        .px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
        .px-4 { padding-left: 1rem; padding-right: 1rem; }
        .px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
        .py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
        .py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
        .py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
        .py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
        .py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
        .pt-4 { padding-top: 1rem; }
        .pb-2 { padding-bottom: 0.5rem; }
        .mb-0 { margin-bottom: 0; }
        .mb-1 { margin-bottom: 0.25rem; }
        .mb-2 { margin-bottom: 0.5rem; }
        .mb-3 { margin-bottom: 0.75rem; }
        .mb-4 { margin-bottom: 1rem; }
        .mb-5 { margin-bottom: 1.25rem; }
        .mb-6 { margin-bottom: 1.5rem; }
        .mb-8 { margin-bottom: 2rem; }
        .ml-4 { margin-left: 1rem; }
        .mt-1 { margin-top: 0.25rem; }
        .mr-1 { margin-right: 0.25rem; }
        .space-y-2 > * + * { margin-top: 0.5rem; }
        .space-y-3 > * + * { margin-top: 0.75rem; }
        .space-y-4 > * + * { margin-top: 1rem; }
        .space-y-5 > * + * { margin-top: 1.25rem; }

        /* Sizing */
        .w-4 { width: 1rem; }
        .w-10 { width: 2.5rem; }
        .w-12 { width: 3rem; }
        .w-full { width: 100%; }
        .w-22 { width: 5.5rem; }
        .w-32 { width: 8rem; }
        .w-36 { width: 9rem; }
        .w-40 { width: 10rem; }
        .h-4 { height: 1rem; }
        .h-10 { height: 2.5rem; }
        .min-h-80 { min-height: 20rem; }
        .max-w-md { max-width: 22rem; }
        .max-w-lg { max-width: 24rem; }
        .max-w-2xl { max-width: 30rem; }
        .max-w-4xl { max-width: 56rem; }
        .max-w-5xl { max-width: 64rem; }
        .mx-auto { margin-left: auto; margin-right: auto; }
        .max-w-90vw { max-width: 90vw; }
        .max-h-80 { max-height: 20rem; }
        .max-h-90vh { max-height: 90vh; }

        /* Font */
        .text-xs { font-size: 0.75rem; line-height: 1rem; }
        .text-sm { font-size: 0.875rem; line-height: 1.25rem; }
        .text-base { font-size: 1rem; line-height: 1.5rem; }
        .text-lg { font-size: 1.125rem; line-height: 1.75rem; }
        .text-xl { font-size: 1.25rem; line-height: 1.75rem; }
        .text-2xl { font-size: 1.5rem; line-height: 2rem; }
        .text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
        .text-5xl { font-size: 3rem; line-height: 1; }
        .font-bold { font-weight: 700; }
        .font-extrabold { font-weight: 800; }
        .font-normal { font-weight: 400; }
        .text-center { text-align: center; }
        .text-right { text-align: right; }
        .whitespace-nowrap { white-space: nowrap; }
        .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

        /* Colors - Text */
        .text-white { color: #fff; }
        .text-slate-400 { color: #94a3b8; }
        .text-slate-500 { color: #64748b; }
        .text-slate-600 { color: #475569; }
        .text-slate-700 { color: #334155; }
        .text-blue-500 { color: #3b82f6; }
        .text-pink-500 { color: #ec4899; }

        /* Colors - Background */
        .bg-white { background-color: #fff; }
        .bg-slate-50 { background-color: #f8fafc; }

        /* Gradient backgrounds */
        .bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
        .from-blue-50 { --tw-gradient-from: #eff6ff; --tw-gradient-to: rgb(239 246 255 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
        .from-green-50 { --tw-gradient-from: #f0fdf4; --tw-gradient-to: rgb(240 253 244 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
        .from-purple-50 { --tw-gradient-from: #faf5ff; --tw-gradient-to: rgb(250 245 255 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
        .from-red-50 { --tw-gradient-from: #fef2f2; --tw-gradient-to: rgb(254 242 242 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
        .from-orange-50 { --tw-gradient-from: #fff7ed; --tw-gradient-to: rgb(255 247 237 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
        .from-yellow-50 { --tw-gradient-from: #fefce8; --tw-gradient-to: rgb(254 252 232 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
        .to-cyan-50 { --tw-gradient-to: #ecfeff; }
        .to-emerald-50 { --tw-gradient-to: #ecfdf5; }
        .to-pink-50 { --tw-gradient-to: #fdf2f8; }
        .via-yellow-100 { --tw-gradient-via: #fef9c3; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-via), var(--tw-gradient-to); }
        .via-pink-100 { --tw-gradient-via: #fce7f3; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-via), var(--tw-gradient-to); }

        /* Border */
        .border { border: 1px solid #e5e7eb; }
        .border-2 { border-width: 2px; }
        .border-3 { border-width: 3px; }
        .border-4 { border-width: 4px; }
        .border-dashed { border-style: dashed; }
        .border-slate-200 { border-color: #e2e8f0; }
        .border-slate-300 { border-color: #cbd5e1; }
        .border-slate-400 { border-color: #94a3b8; }
        .border-blue-500 { border-color: #3b82f6; }
        .border-t-2 { border-top-width: 2px; }
        .border-b-2 { border-bottom-width: 2px; }
        .border-b-3 { border-bottom-width: 3px; }

        /* Border Radius */
        .rounded-md { border-radius: 0.75rem; }
        .rounded-lg { border-radius: 0.5rem; }
        .rounded-full { border-radius: 50px; }

        /* Shadow */
        .shadow-\[2px_2px_0_#4A5568\] { box-shadow: 2px 2px 0 #4A5568; }
        .shadow-\[3px_3px_0_#4A5568\] { box-shadow: 3px 3px 0 #4A5568; }
        .shadow-\[8px_8px_0px_#4A5568\] { box-shadow: 8px 8px 0 #4A5568; }

        /* Position */
        .relative { position: relative; }
        .fixed { position: fixed; }
        .absolute { position: absolute; }
        .inset-0 { inset: 0; }
        .top-\[10%\] { top: 10%; }
        .left-\[5%\] { left: 5%; }
        .top-\[15%\] { top: 15%; }
        .right-\[8%\] { right: 8%; }
        .pointer-events-none { pointer-events: none; }

        /* Overflow */
        .overflow-hidden { overflow: hidden; }
        .overflow-auto { overflow: auto; }
        .overflow-y-scroll { overflow-y: scroll; }
        .overflow-x-hidden { overflow-x: hidden; }

        /* Opacity */
        .opacity-0 { opacity: 0; }
        .opacity-15 { opacity: 0.15; }
        .opacity-20 { opacity: 0.2; }
        .opacity-40 { opacity: 0.4; }
        .opacity-70 { opacity: 0.7; }

        /* Cursor */
        .cursor-pointer { cursor: pointer; }
        .cursor-not-allowed { cursor: not-allowed; }

        /* Transition */
        .transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
        .transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
        .transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

        /* Z-index */
        .z-10 { z-index: 10; }

        /* Misc */
        .shrink-0 { flex-shrink: 0; }
        .select-none { user-select: none; }
        .accent-pink-400 { accent-color: #f472b6; }
        .disabled\/opacity-40:disabled { opacity: 0.4; }
        .disabled\/cursor-not-allowed:disabled { cursor: not-allowed; }
        .hover\/bg-white\/50:hover { background-color: rgba(255,255,255,0.5) !important; }
        .hover\/shadow-\[3px_3px_0_#4A5568\]:hover { box-shadow: 3px 3px 0 #4A5568 !important; }
        .hover\/rotate-90\:hover:hover { transform: rotate(90deg) !important; }
        .hover\/opacity-100:hover { opacity: 1 !important; }

        /* Custom component styles */
        .input-cute {
            border: 2px solid #94a3b8;
            border-radius: 6px;
            outline: none;
            transition: border-color 0.2s;
            background: #fff;
        }
        .input-cute:focus { border-color: #f472b6; box-shadow: 0 0 0 3px rgba(244,114,182,0.2); }

        .btn-cute {
            border: 3px solid #4A5568;
            border-radius: 0;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s;
            box-shadow: 4px 4px 0 #4A5568;
        }
        .btn-cute:hover { box-shadow: 6px 6px 0 #4A5568; transform: translate(-2px, -2px); }
        .btn-cute-green { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
        .btn-cute-blue { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }

        .card-cute {
            background: #fff;
            border: 3px solid #4A5568;
            border-radius: 0;
            box-shadow: 6px 6px 0 #4A5568;
        }

        .badge {
            display: inline-block;
            padding: 2px 10px;
            border-radius: 50px;
            font-size: 11px;
            font-weight: 700;
            border: 1.5px solid currentColor;
        }
        .badge-pink { color: #ec4899; background: #fce7f3; border-color: #f9a8d4; }
        .badge-blue { color: #3b82f6; background: #dbeafe; border-color: #93c5fd; }
        .badge-mint { color: #059669; background: #d1fae5; border-color: #6ee7b7; }
        .badge-yellow { color: #d97706; background: #fef3c7; border-color: #fcd34d; }

        .schedule-card { border: 2px solid #e2e8f0; border-radius: 0; transition: transform 0.2s, box-shadow 0.2s; }
        .schedule-card:hover { transform: translateY(-2px); box-shadow: 4px 4px 0 #94a3b8; }

        .import-btn {
            border: 2px solid #94a3b8;
            border-radius: 6px;
            padding: 6px 14px;
            font-weight: 600;
            cursor: pointer;
            background: #f8fafc;
            transition: all 0.2s;
        }
        .import-btn:hover { background: #e2e8f0; border-color: #64748b; }

        .export-btn {
            border: 3px solid #4A5568;
            border-radius: 0;
            font-weight: 800;
            cursor: pointer;
            background: linear-gradient(135deg, #fef3c7, #fde68a);
            box-shadow: 5px 5px 0 #4A5568;
            transition: all 0.2s;
        }
        .export-btn:hover { transform: translate(-3px,-3px); box-shadow: 8px 8px 0 #4A5568; }

        .tab-cute {
            border: 3px solid #4A5568;
            border-radius: 0;
            font-weight: 700;
            padding: 10px 24px;
            cursor: pointer;
            transition: all 0.2s;
            background: #e2e8f0;
            color: #64748b;
        }
        .tab-cute.active { background: #dbeafe; color: #1e40af; border-bottom-color: #dbeafe; }

        .course-card { border-radius: 4px; padding: 4px; }

        .delete-btn {
            position: absolute;
            top: 2px; right: 2px;
            width: 18px; height: 18px;
            border-radius: 4px;
            background: rgba(239,68,68,0.8);
            color: white;
            border: none;
            font-size: 10px;
            cursor: pointer;
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 5;
        }
        .has-course:hover .delete-btn { display: flex; }

        .grid-cell {
            border: 2px solid #E0E0E0;
            min-height: 70px;
            cursor: pointer;
            position: relative;
            transition: all 0.15s;
        }
        .grid-cell:hover { border-color: #94a3b8; }
        .grid-cell.has-course { border-color: #4A5568; }

        .grid-time {
            font-weight: 700;
            padding: 12px 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            color: #333;
            border-bottom: none !important;
        }
        .grid-time-extra {
            border-bottom: 2px dashed #E8B4B8 !important;
        }

        .time-slot {
            position: relative;
        }
        .dragging { opacity: 0.5; }
        .copying { opacity: 0.7; border: 2px dashed #3b82f6 !important; }
        .drag-over { outline: 3px dashed #4DB6AC; outline-offset: -2px; }

        /* Modal */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(4px);
            z-index: 100;
            display: flex;
            align-items: center;
            justify-content: center;
            animation: fade-in 0.2s ease;
        }
        .modal-cute {
            background: white;
            border: 4px solid #4A5568;
            border-radius: 0;
            box-shadow: 8px 8px 0px #4A5568;
            animation: bounce-in 0.3s ease;
            max-width: 90vw;
            max-height: 90vh;
            overflow: auto;
        }
        .modal-header {
            background: linear-gradient(135deg, #FFB6C1 0%, #FFA07A 100%);
            padding: 16px 24px;
            border-bottom: 3px solid #4A5568;
            border-radius: 0;
        }

        /* Toast */
        .toast {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 200;
            padding: 16px 32px;
            border-radius: 0;
            border: 3px solid #4A5568;
            font-weight: 700;
            font-size: 1rem;
            box-shadow: 6px 6px 0 #4A5568;
            animation: toast-fade-in 0.3s ease;
            max-width: 360px;
            text-align: center;
        }
        .toast-success { background: #d1fae5; color: #059669; }
        .toast-error { background: #fee2e2; color: #dc2626; }
        .toast-info { background: #dbeafe; color: #2563eb; }

        /* Animations */
        @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
        @keyframes bounce-in { 0% { transform: scale(0.3); opacity: 0; } 50% { transform: scale(1.05); } 70% { transform: scale(0.9); } 100% { transform: scale(1); opacity: 1; } }
        @keyframes toast-fade-in { 0% { opacity: 0; transform: translate(-50%, -60%); } 100% { opacity: 1; transform: translate(-50%, -50%); } }
        @keyframes float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-15px) rotate(5deg); } }

        .title-deco { position: absolute; pointer-events: none; font-size: 21px; opacity: 0.7; animation: float 3s ease-in-out infinite; }
        .td-1 { top: -10px; left: -24px; color: #FF8E9B; animation-delay: 0s; font-size: 20px; }
        .td-2 { top: -6px; right: -20px; color: #7EC8E3; animation-delay: 0.5s; font-size: 16px; }
        .td-3 { bottom: -8px; left: -16px; color: #FFE066; animation-delay: 1s; font-size: 14px; }
        .td-4 { bottom: -6px; right: -22px; color: #98D8C8; animation-delay: 1.5s; font-size: 17px; }
        .td-5 { top: 50%; left: -30px; transform: translateY(-50%); color: #F4A7B9; animation-delay: 0.8s; font-size: 13px; }
        .td-6 { top: 48%; right: -28px; transform: translateY(-50%); color: #A8E6CF; animation-delay: 1.2s; font-size: 14px; }
        /* ====== 卡通标题样式 ====== */
        .kawaii-title{display:inline-flex;align-items:baseline;justify-content:center;gap:2px;font-family:'ZCOOL KuaiLe','Noto Sans SC',sans-serif;font-weight:900;line-height:1.1;position:relative;z-index:10}
        .kt-char{display:inline-block;font-size:3.2rem;-webkit-text-stroke:3px #5D4037;paint-order:stroke fill;text-shadow:3px 3px 0 rgba(93,64,55,0.15);transition:transform .2s;animation:titleCharBounce 3s ease-in-out infinite}
        .kt-char:hover{transform:scale(1.15) rotate(-3deg)}
        .kt-char-1{color:#90CAF9;animation-delay:0s}.kt-char-2{color:#A5D6A7;animation-delay:.15s}
        .kt-char-3{color:#80CBC4;animation-delay:.3s}.kt-char-4{color:#C5E1A5;animation-delay:.45s}
        .kt-char-5{color:#FFE082;animation-delay:.6s}.kt-char-6{color:#A5D6A7;animation-delay:.75s;font-size:2.8rem}
        @keyframes titleCharBounce{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
        .kawaideco{position:absolute;pointer-events:none;z-index:5}
        .kawaideco-star{animation:floatDeco 3.5s ease-in-out infinite}.kawaideco-sparkle{animation:spinDeco 4s linear infinite}
        .kawaideco-heart{animation:heartbeatDeco 2s ease-in-out infinite}.kawaideco-heart-sm{animation:heartbeatDeco 2.5s ease-in-out infinite .5s}
        .kawaideco-pochacco{animation:bouncePuppy 2.5s ease-in-out infinite;z-index:6!important}
        .kawaideco-clock{animation:swingDeco 3s ease-in-out infinite}.kawaideco-notebook{animation:tiltDeco 4s ease-in-out infinite}
        .kawaideco-chick{animation:hopDeco 1.8s ease-in-out infinite}.kawaideco-cat{animation:swayCat 3s ease-in-out infinite;z-index:6!important}
        .kawaideco-cloud-l{animation:driftCloud 6s ease-in-out infinite;z-index:4!important}.kawaideco-cloud-r{animation:driftCloudR 7s ease-in-out infinite 1s;z-index:4!important}
        .kawaideco-star-l,.kawaideco-sparkle-r,.kawaideco-star-rs{animation:twinkleStar 2.5s ease-in-out infinite}
        
        @keyframes floatDeco{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-10px) rotate(8deg)}}
        @keyframes spinDeco{0%{transform:rotate(0) scale(1);opacity:.8}50%{transform:rotate(180deg) scale(1.2);opacity:1}100%{transform:rotate(360deg) scale(1);opacity:.8}}
        @keyframes heartbeatDeco{0%,100%{transform:scale(1)}25%{transform:scale(1.2)}50%{transform:scale(1)}75%{transform:scale(1.15)}}
        @keyframes bouncePuppy{0%,100%{transform:translateX(-50%) translateY(0)}50%{transform:translateX(-50%) translateY(-8px)}}
        @keyframes swingDeco{0%,100%{transform:rotate(-5deg)}50%{transform:rotate(5deg)}}
        @keyframes tiltDeco{0%,100%{transform:rotate(-3deg)}50%{transform:rotate(5deg)}}
        @keyframes hopDeco{0%,100%{transform:translateY(0) scaleX(1)}50%{transform:translateY(-6px) scaleX(1.05)}}
        @keyframes swayCat{0%,100%{transform:rotate(-4deg)}50%{transform:rotate(4deg)}}
        @keyframes driftCloud{0%,100%{transform:translateX(0) translateY(0)}50%{transform:translateX(6px) translateY(-3px)}}
        @keyframes driftCloudR{0%,100%{transform:translateX(0) translateY(0)}50%{transform:translateX(-6px) translateY(-3px)}}
        @keyframes twinkleStar{0%,100%{transform:scale(1) rotate(0);opacity:.7}50%{transform:scale(1.3) rotate(15deg);opacity:1}}
        50%{transform:translateY(-4px)}}
        @media(max-width:640px){.kt-char{font-size:2rem;-webkit-text-stroke:2px #5D4037}.kt-char-6{font-size:1.7rem}.kawaii-title{gap:0}.kawaideco-pochacco{width:50px;height:46px;top:-18px}}


        
        /* 背景装饰 */
        body::before {
            content: '';
            position: fixed;
            top: 10%;
            left: 5%;
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
            opacity: 0.15;
            animation: float 3s ease-in-out infinite;
        }
        body::after {
            content: '';
            position: fixed;
            top: 15%;
            right: 8%;
            width: 80px;
            height: 50px;
            background: linear-gradient(135deg, #FFFFFF 0%, #E8E8E8 100%);
            opacity: 0.2;
            animation: float 4s ease-in-out infinite reverse;
        }
        
        @keyframes float {
            0%, 100% { transform: translateY(0) rotate(0deg); }
            50% { transform: translateY(-15px) rotate(5deg); }
        }
        
        @keyframes bounce-in {
            0% { transform: scale(0.3); opacity: 0; }
            50% { transform: scale(1.05); }
            70% { transform: scale(0.9); }
            100% { transform: scale(1); opacity: 1; }
        }
        
        @keyframes wiggle {
            0%, 100% { transform: rotate(-3deg); }
            50% { transform: rotate(3deg); }
        }
        
        @keyframes pop {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }
        
        @keyframes slide-up {
            from { transform: translateY(20px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
        
        @keyframes pulse-soft {
            0%, 100% { box-shadow: 0 0 0 0 rgba(255, 182, 193, 0.4); }
            50% { box-shadow: 0 0 0 15px rgba(255, 182, 193, 0); }
        }
        
        @keyframes bounce-hover {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-4px); }
        }
        
        @keyframes wiggle-subtle {
            0%, 100% { transform: rotate(-2deg); }
            50% { transform: rotate(2deg); }
        }
        
        /* 顶部 Tab Toggle */
        .tab-toggle {
            display: flex;
            background: white;
            border: 3px solid #4A5568;
            border-radius: 0;
            padding: 6px;
            gap: 4px;
            box-shadow: 4px 4px 0px #4A5568;
        }
        
        .tab-toggle-btn {
            padding: 12px 28px;
            border-radius: 2xl;
            font-weight: 700;
            cursor: pointer;
            transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
            display: flex;
            align-items: center;
            gap: 8px;
            border: 2px solid transparent;
        }
        
        .tab-toggle-btn:not(.active) {
            background: transparent;
            color: #000000;
        }

        .tab-toggle-btn:not(.active):hover {
            background: #F1F5F9;
            color: #000000;
        }

        .tab-toggle-btn.active {
            background: linear-gradient(135deg, #BBDEFB 0%, #90CAF9 100%);
            color: #000000;
            border-color: #4A5568;
        }
        
        /* 药丸形筛选按钮 */
        .pill-select {
            position: relative;
            display: inline-block;
        }
        
        .pill-select-btn {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 8px 16px;
            border: 2px solid #E2E8F0;
            border-radius: 12px;
            background: white;
            font-weight: 400;
            font-size: 14px;
            color: #000000;
            cursor: pointer;
            transition: all 0.2s ease;
            min-width: 120px;
            justify-content: space-between;
        }

        .pill-select-btn:hover {
            border-color: #94A3B8;
            background: #F8FAFC;
        }

        .pill-select-btn.pink { background: #FFF0F5; border-color: #F9A8D4; }
        .pill-select-btn.blue { background: #E3F2FD; border-color: #93C5FD; }
        .pill-select-btn.yellow { background: #FFFDE7; border-color: #FDE047; }
        .pill-select-btn.mint { background: #E0F2F1; border-color: #5EEAD4; }
        .pill-select-btn.lavender { background: #F3E5F5; border-color: #C4B5FD; }
        
        .pill-dropdown {
            position: absolute;
            top: calc(100% + 6px);
            left: 0;
            min-width: 180px;
            background: white;
            border: 1px solid #E2E8F0;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
            z-index: 50;
            max-height: 260px;
            overflow-y: auto;
            display: none;
        }
        
        .pill-dropdown.show {
            display: block;
            animation: bounce-in 0.1s ease;
        }
        
        .pill-option {
            padding: 10px 16px;
            cursor: pointer;
            transition: all 0.15s ease;
            border-bottom: 1px solid #F1F5F9;
            font-weight: 400;
            font-size: 14px;
            color: #333;
        }

        .pill-option:last-child {
            border-bottom: none;
        }

        .pill-option:hover {
            background: #F8FAFC;
            padding-left: 20px;
        }

        .pill-option.selected {
            background: #F0F4FF;
            color: #000;
            font-weight: 400;
        }
        
        /* 课表卡片 */
        .schedule-card {
            background: #FFFEFA;
            border: 3px solid #4A5568;
            border-radius: 0;
            box-shadow: 5px 5px 0px #4A5568;
            transition: all 0.3s ease;
            overflow: hidden;
        }
        
        .schedule-card:hover {
            box-shadow: 8px 8px 0px #4A5568;
        }

        /* 发现课表紧凑版卡片 */
        .schedule-card-sm {
            background: #FFFEFA;
            border: 2px solid #4A5568;
            border-radius: 0;
            box-shadow: 3px 3px 0px #4A5568;
            transition: all 0.3s ease;
            overflow: hidden;
            color: #000000;
            font-weight: 400;
        }

        .schedule-card-sm:hover {
            box-shadow: 5px 5px 0px #4A5568;
        }

        /* 彩色徽章 */
        .badge {
            display: inline-flex;
            align-items: center;
            padding: 2px 8px;
            border-radius: 50px;
            font-size: 10px;
            font-weight: 700;
            border: 1.5px solid #4A5568;
        }
        
        .badge-pink { background: #FFB6C1; }
        .badge-blue { background: #BBDEFB; }
        .badge-yellow { background: #FFFACD; }
        .badge-mint { background: #B2DFDB; }
        .badge-lavender { background: #E6E6FA; }
        .badge-peach { background: #FFDAB9; }
        
        /* 紧凑型徽章 */
        .badge.text-xs {
            font-size: 10px;
            padding: 2px 8px;
            border-width: 1.5px;
        }
        
        /* 一键导入按钮 */
        .import-btn {
            background: linear-gradient(135deg, #FF8A65 0%, #FF7043 50%, #FF5722 100%);
            background-size: 200% 200%;
            border: 2px solid #4A5568;
            border-radius: 2xl;
            box-shadow: 3px 3px 0px #4A5568;
            color: #000000;
            font-weight: 700;
            padding: 6px 14px;
            cursor: pointer;
            transition: all 0.25s ease;
            animation: gradient-shift 3s ease infinite;
        }
        
        .import-btn:hover {
            transform: translateY(-2px);
            filter: brightness(1.06);
        }

        .import-btn:active {
            transform: translateY(1px);
            box-shadow: 3px 3px 0px #4A5568;
        }
        
        /* 空状态 */
        .empty-state {
            text-align: center;
            padding: 60px 20px;
        }
        
        .empty-emoji {
            font-size: 80px;
            margin-bottom: 20px;
            animation: float 3s ease-in-out infinite;
        }
        
        /* 搜索按钮 */
        .search-btn {
            background: #000000;
            border: none;
            border-radius: 10px;
            color: white;
            font-weight: 400;
            font-size: 14px;
            padding: 8px 20px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .search-btn:hover {
            background: #333;
        }

        .reset-btn {
            background: white;
            border: 1px solid #E2E8F0;
            border-radius: 10px;
            color: #666;
            font-weight: 400;
            font-size: 14px;
            padding: 8px 20px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .reset-btn:hover {
            border-color: #94A3B8;
            color: #333;
        }
        
        .card-cute {
            background: rgba(255, 255, 255, 0.95);
            border: 3px solid #4A5568;
            border-radius: 2xl;
            box-shadow: 6px 6px 0px #4A5568;
            transition: all 0.3s ease;
        }
        
        .card-cute:hover {
            box-shadow: 8px 8px 0px #4A5568;
        }
        
        .btn-cute {
            background: linear-gradient(135deg, #FFB6C1 0%, #FFA07A 100%);
            border: 3px solid #4A5568;
            border-radius: 2xl;
            box-shadow: 4px 4px 0px #4A5568;
            transition: all 0.2s ease;
            font-weight: 700;
        }
        
        .btn-cute:hover {
            box-shadow: 6px 6px 0px #4A5568;
            background: linear-gradient(135deg, #FFC0CB 0%, #FFB6C1 100%);
        }
        
        .btn-cute:active {
            transform: translate(2px, 2px);
            box-shadow: 2px 2px 0px #4A5568;
        }
        
        .btn-cute-green {
            background: linear-gradient(135deg, #B2DFDB 0%, #80CBC4 100%);
        }
        
        .btn-cute-green:hover {
            background: linear-gradient(135deg, #80CBC4 0%, #4DB6AC 100%);
        }
        
        .btn-cute-yellow {
            background: linear-gradient(135deg, #FFFACD 0%, #FFE082 100%);
        }
        
        .btn-cute-yellow:hover {
            background: linear-gradient(135deg, #FFE082 0%, #FFD54F 100%);
        }
        
        .btn-cute-blue {
            background: linear-gradient(135deg, #BBDEFB 0%, #90CAF9 100%);
        }
        
        .btn-cute-blue:hover {
            background: linear-gradient(135deg, #90CAF9 0%, #64B5F6 100%);
        }
        
        .input-cute {
            border: 2.5px solid #4A5568;
            border-radius: xl;
            transition: all 0.2s ease;
            background: #FFFEF7;
        }
        
        .input-cute:focus {
            border-color: #FFB6C1;
            box-shadow: 4px 4px 0px #FFB6C1;
            outline: none;
        }
        
        .input-cute.error {
            border-color: #FF6B6B;
            box-shadow: 4px 4px 0px #FF6B6B;
        }
        
        /* 课表网格 */
        .schedule-grid {
            display: grid;
            grid-template-columns: 90px repeat(5, 1fr);
            gap: 0;
            border: 3px solid #4A5568;
            border-radius: 16px;
            overflow: hidden;
            background: white;
            box-shadow: 6px 6px 0px #4A5568;
        }

        .grid-header {
            background: linear-gradient(180deg, #E8F4FD 0%, #D0E8F8 50%, #C2DFF4 100%);
            border: 1px solid #B8D4E8;
            border-top: none;
            font-weight: 700;
            padding: 14px 8px;
            text-align: center;
            color: #4A6FA5;
            text-shadow: 0 1px 0 rgba(255,255,255,0.8);
            letter-spacing: 2px;
        }

        .grid-lunch-divider {
            border-bottom: 2px dashed #E8B4B8 !important;
        }

        /* 斑马纹 - 仅对空格子生效 */
        .grid-row-even.drop-zone {
            background: #FAFAFA !important;
        }
        .grid-row-odd.drop-zone {
            background: #FEFEFE !important;
        }

        /* Hover 优化 - 空格子极淡粉色 */
        .grid-cell.drop-zone:hover {
            background: #FFF5F7 !important;
            border-color: #FBCFE8 !important;
        }

        .grid-time {
            font-weight: 700;
            padding: 10px 4px;
            text-align: center;
            line-height: 1.3;
            font-size: 14px;
            color: #333;
            border: 1px solid #F1F5F9;
            border-left: 2px solid #E2E8F0;
            border-bottom: none !important;
            white-space: nowrap;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
        .grid-time-num {
            font-size: 16px;
            font-weight: 700;
            color: #333;
        }
        .grid-time-unit {
            font-size: 11px;
            font-weight: 400;
            color: #666;
            margin-left: 1px;
        }
        .grid-time-label {
            font-size: 12px;
            font-weight: 400;
            color: #94A3B8;
            line-height: 1.3;
            margin-top: 4px;
            white-space: nowrap;
        }
        
        .grid-cell {
            border: 1px solid #F1F5F9;
            min-height: 70px;
            cursor: pointer;
            transition: all 0.2s ease;
            position: relative;
            background: #FEFEFE;
        }

        .grid-cell:hover {
            background: #FFF0F5;
            border-color: #FBCFE8;
            z-index: 10;
        }
        
        .grid-cell.has-course {
            border: 3px solid #4A5568;
            border-radius: xl;
            margin: 4px;
            box-shadow: 3px 3px 0px #4A5568;
            cursor: grab;
        }
        
        .grid-cell.dragging { opacity: 0.4; }
        .grid-cell.copying { opacity: 0.6; }
        .grid-cell.drop-zone.drag-over {
            background: rgba(178,223,219,0.5) !important;
            border-color: #4DB6AC !important;
            box-shadow: inset 0 0 0 3px #4DB6AC !important;
        }
        .grid-cell.draggable-cell.drag-over {
            outline: 3px dashed #4DB6AC;
            outline-offset: -2px;
        }

        /* 时段分隔 */
        .time-slot {
            position: relative;
        }
        
        /* 课程卡片 */
        .course-card {
            animation: bounce-in 0.4s ease;
            font-size: 11px;
            line-height: 1.3;
        }
        
        /* 弹窗 */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(4px);
            z-index: 100;
            display: flex;
            align-items: center;
            justify-content: center;
            animation: fade-in 0.2s ease;
        }
        
        @keyframes fade-in {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        .modal-cute {
            background: white;
            border: 4px solid #4A5568;
            border-radius: 0;
            box-shadow: 8px 8px 0px #4A5568;
            animation: bounce-in 0.3s ease;
            max-width: 90vw;
            max-height: 90vh;
            overflow: auto;
        }
        
        .modal-header {
            background: linear-gradient(135deg, #FFB6C1 0%, #FFA07A 100%);
            padding: 16px 24px;
            border-bottom: 3px solid #4A5568;
            border-radius: 0 3xl 0 0;
        }
        
        /* 标签页 */
        .tab-cute {
            border: 3px solid #4A5568;
            border-radius: 2xl;
            transition: all 0.3s ease;
            font-weight: 700;
        }
        
        .tab-cute.active {
            background: linear-gradient(135deg, #FFB6C1 0%, #FFA07A 100%);
            color: white;
            transform: scale(1.05);
            box-shadow: 4px 4px 0px #4A5568;
        }
        
        .tab-cute:not(.active) {
            background: white;
            color: #4A5568;
        }
        
        .tab-cute:not(.active):hover {
            background: #FFF0F5;
            transform: scale(1.02);
        }
        
        /* 星期标签 */
        .weekday-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            border: 2px solid #4A5568;
            border-radius: full;
            font-weight: 700;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        
        .weekday-badge:hover {
            transform: scale(1.1);
        }
        
        .weekday-badge.selected {
            background: #FFB6C1;
            color: white;
            box-shadow: 3px 3px 0px #4A5568;
        }
        
        /* 颜色选择器 */
        .color-option {
            width: 40px;
            height: 40px;
            border: 3px solid #4A5568;
            border-radius: xl;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        
        .color-option:hover {
            transform: scale(1.15);
            box-shadow: 3px 3px 0px #4A5568;
        }
        
        .color-option.selected {
            transform: scale(1.1);
            box-shadow: 4px 4px 0px #4A5568;
        }
        
        /* Toast 提示 */
        .toast {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: #4A5568;
            color: white;
            padding: 14px 36px;
            border-radius: 2xl;
            font-weight: 600;
            z-index: 9999;
            animation: toast-fade-in 0.3s ease;
            box-shadow: 6px 6px 0px rgba(0,0,0,0.25);
            display: flex;
            justify-content: center;
            align-items: center;
            text-align: center;
        }
        
        .toast.success {
            background: linear-gradient(135deg, #B2DFDB 0%, #4DB6AC 100%);
        }
        
        .toast.error {
            background: linear-gradient(135deg, #FFB6C1 0%, #EF5350 100%);
        }
        
        @keyframes toast-fade-in {
            from { opacity: 0; transform: translate(-50%, -48%); }
            to { opacity: 1; transform: translate(-50%, -50%); }
        }
        
        /* 滚动条美化 */
        ::-webkit-scrollbar {
            width: 12px;
        }
        
        ::-webkit-scrollbar-track {
            background: #FFF0F5;
            border-radius: 6px;
        }
        
        ::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, #FFB6C1 0%, #FFA07A 100%);
            border-radius: 6px;
            border: 2px solid #FFF0F5;
        }
        
        /* 装饰元素 */
        .deco-star {
            animation: float 3s ease-in-out infinite;
            color: #FFD700;
        }

        .deco-cloud {
            animation: float 4s ease-in-out infinite reverse;
            color: #87CEEB;
        }

        /* 标题浮动装饰 */
        .title-deco {
            position: absolute;
            pointer-events: none;
            font-size: 21px;
            opacity: 0.65;
            animation: float 3s ease-in-out infinite;
        }
        .td-1 { top: -10px; left: -24px; color: #FF8E9B; animation-delay: 0s; font-size: 20px; }
        .td-2 { top: -6px; right: -20px; color: #7EC8E3; animation-delay: 0.5s; font-size: 16px; }
        .td-3 { bottom: -8px; left: -16px; color: #FFE066; animation-delay: 1s; font-size: 14px; }
        .td-4 { bottom: -6px; right: -22px; color: #98D8C8; animation-delay: 1.5s; font-size: 17px; }
        .td-5 { top: 50%; left: -30px; transform: translateY(-50%); color: #F4A7B9; animation-delay: 0.8s; font-size: 13px; }
        .td-6 { top: 48%; right: -28px; transform: translateY(-50%); color: #A8E6CF; animation-delay: 1.2s; font-size: 14px; }
        
        /* 导出按钮 */
        .export-btn {
            background: linear-gradient(135deg, #FFB6C1 0%, #FFA07A 50%, #FFE082 100%);
            background-size: 200% 200%;
            animation: gradient-shift 3s ease infinite;
            border: 4px solid #4A5568;
            border-radius: 0;
            box-shadow: 6px 6px 0px #4A5568;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        
        .export-btn::before {
            content: '';
            position: absolute;
            top: -10px;
            right: -10px;
            width: 24px;
            height: 24px;
            background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
            border-radius: 4px;
            animation: pop 1s ease infinite;
        }
        
        .export-btn:hover {
            box-shadow: 9px 9px 0px #4A5568;
            background-position: 100% 100%;
        }
        
        .export-btn:active {
            transform: translate(3px, 3px);
            box-shadow: 3px 3px 0px #4A5568;
        }
        
        @keyframes gradient-shift {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }
        
        /* 删除按钮 */
        .delete-btn {
            position: absolute;
            top: -8px;
            right: -8px;
            width: 22px;
            height: 22px;
            background: #EF5350;
            border: 2px solid #4A5568;
            border-radius: full;
            color: white;
            font-size: 10px;
            cursor: pointer;
            opacity: 0;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .grid-cell.has-course:hover .delete-btn {
            opacity: 1;
            transform: scale(1.1);
        }
        
        .delete-btn:hover {
            background: #D32F2F;
            transform: scale(1.2) rotate(90deg);
        }
