        /* --- 全局与基础样式 (喜庆版) --- */
        :root {
            --xn-font-family-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Noto Sans SC", sans-serif;
            --xn-modal-bg: #fffaf0; /* 温暖的象牙白 */
            --xn-text-primary: #333333;
            --xn-text-secondary: #555555;
            --xn-text-light: #a0aec0;
            --xn-divider-color: #eeebe8;
            --xn-accent-gold: #e7c082; /* 更明亮华丽的金色 */
            --xn-accent-red: #d9534f;   /* 喜庆的红色 */
            --xn-scroll-track: #f5f2f0;
            --xn-scroll-thumb: #e0d9d1;
            --xn-shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
        }

        body {
            font-family: var(--xn-font-family-sans);
            margin: 0;
            background-color: #f7fafc;
            overflow-x: hidden; /* 防止横向滚动 */
        }

        /* --- 弹窗内容区 --- */
        .xn-modal-content {
            position: fixed;
            top: 50%;
            left: 50%;
            background-color: var(--xn-modal-bg);
            border-radius: 16px;
            box-shadow: var(--xn-shadow-lg);
            width: 90%;
            max-width: 800px;
            display: flex;
            flex-direction: column;
            max-height: 90vh;
            border: 2px solid var(--xn-accent-gold);
            overflow: visible;
            z-index: 1000;
            
            /* 初始/隐藏状态 */
            opacity: 0;
            transform: translate(-50%, -50%) scale(0.9);
            pointer-events: none;
            transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease-out;
        }
        
        /* 打开弹窗的动画 */
        .xn-modal-content.xn-show {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
            pointer-events: auto;
        }

        /* 最小化动画 */
        .xn-modal-content.xn-minimizing {
            /* 动画目标: 左侧1/4处 */
            transform-origin: center;
            transition: transform 0.6s cubic-bezier(0.55, -0.6, 0.6, 1.2), opacity 0.5s ease-out, filter 0.6s ease;
            transform: translate(calc(-25vw - 50%), calc(50vh - 50px)) scale(0.01) rotate(-360deg);
            opacity: 0;
            filter: blur(5px);
        }

        .xn-modal-content::before,
        .xn-modal-content::after {
            content: '🏮';
            position: absolute;
            top: -20px;
            font-size: 36px;
            text-shadow: 0 4px 8px rgba(0,0,0,0.3);
            z-index: 10;
        }
        .xn-modal-content::before { left: 20px; transform: rotate(-15deg); }
        .xn-modal-content::after { right: 20px; transform: rotate(15deg); }
        
        .xn-modal-header { padding: 24px 24px 16px 24px; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; background-color: var(--xn-accent-red); border-bottom: 2px solid var(--xn-accent-gold); border-top-left-radius: 12px; border-top-right-radius: 12px; color: white; }
        .xn-modal-header h2 { margin: 0; font-size: 1.5rem; font-weight: 700; text-shadow: 1px 1px 2px rgba(0,0,0,0.2); }
        .xn-close-btn { background: none; border: none; cursor: pointer; padding: 4px; color: white; transition: color 0.2s ease, transform 0.3s ease; }
        .xn-close-btn:hover { color: var(--xn-accent-gold); transform: rotate(180deg) scale(1.1); }
        .xn-modal-body { padding: 24px; overflow-y: auto; flex-grow: 1; }
        .xn-modal-footer { padding: 12px 24px; text-align: center; font-size: 0.8rem; color: white; background-color: var(--xn-accent-red); border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; flex-shrink: 0; border-top: 2px solid var(--xn-accent-gold); }
        .xn-latest-container { display: flex; gap: 24px; margin-bottom: 24px; }
        .xn-latest-card { flex: 1; min-width: 0; background: #ffffff; border: 1px solid var(--xn-divider-color); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; }
        .xn-latest-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
        .xn-latest-card .xn-image-container { width: 100%; height: 150px; position: relative; }
        .xn-latest-card img { width: 100%; height: 100%; object-fit: cover; }
        .xn-latest-card .xn-category-tag { position: absolute; top: 12px; left: 12px; padding: 6px 14px; border-radius: 9999px; color: white; font-size: 0.8rem; font-weight: 600; text-shadow: 1px 1px 1px rgba(0,0,0,0.25); box-shadow: 0 2px 5px rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.3); }
        .xn-category-tag.honor { background-color: var(--xn-accent-gold); color: #5a3a00; }
        .xn-category-tag.project { background-color: var(--xn-accent-red); }
        .xn-latest-card .xn-card-content { padding: 16px; }
        .xn-latest-card h3 { font-size: 1.125rem; font-weight: 700; color: var(--xn-text-primary); margin: 0 0 8px 0; }
        .xn-latest-card p { font-size: 0.875rem; color: var(--xn-text-secondary); margin: 0; line-height: 1.6; }
        .xn-history-section h3 { font-size: 1.25rem; font-weight: 700; color: var(--xn-accent-red); margin: 0 0 16px 0; text-align: center; padding-bottom: 8px; border-bottom: 2px solid var(--xn-accent-gold); }
        .xn-history-list-container { max-height: 160px; overflow-y: auto; padding: 4px; }
        .xn-history-list-container::-webkit-scrollbar { width: 8px; }
        .xn-history-list-container::-webkit-scrollbar-track { background: var(--xn-scroll-track); border-radius: 4px; }
        .xn-history-list-container::-webkit-scrollbar-thumb { background: var(--xn-scroll-thumb); border-radius: 4px; border: 2px solid var(--xn-scroll-track); }
        .xn-history-list-container::-webkit-scrollbar-thumb:hover { background: var(--xn-accent-gold); }
        .xn-history-list { list-style: none; padding: 0; margin: 0; }
        .xn-history-list a{text-decoration: none;
    color: inherit;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;}
        .xn-history-item { display: flex; justify-content: space-between; align-items: center; padding: 12px; border-radius: 8px; transition: background-color 0.2s ease, color 0.2s ease; cursor: pointer; }
        .xn-history-item:hover { background-color: var(--xn-accent-red); }
        .xn-history-item:hover .title, .xn-history-item:hover .date { color: white; }
        .xn-history-item .title { font-size: 0.9375rem; color: var(--xn-text-secondary); font-weight: 500; }
        .xn-history-item .date { font-size: 0.8125rem; color: var(--xn-text-light); flex-shrink: 0; margin-left: 16px; }

        /* --- 最小化图标 --- */
        .xn-minimized-icon {
            position: fixed;
            bottom: 60px;
            left: 25vw; /* 屏幕左侧1/4处 */
            width: 60px; /* 稍大一点以容纳文字 */
            height: 60px;
            background: var(--xn-accent-red);
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            z-index: 1001;
            box-shadow: 0 5px 15px rgba(0,0,0,0.3), inset 0 2px 4px rgba(0,0,0,0.4);
            border: 2px solid var(--xn-accent-gold);
            color: white;
            font-size: 16px;
            font-weight: bold;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
            
            /* 初始/隐藏状态 */
            opacity: 0;
            transform: translateX(-50%) scale(0);
            pointer-events: none;
            transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
        }

        .xn-minimized-icon.xn-show {
            opacity: 1;
            transform: translateX(-50%) scale(1);
            pointer-events: auto;
            animation: xn-shake 1.5s cubic-bezier(.36,.07,.19,.97) 0.5s infinite;
        }

        .xn-minimized-icon:hover {
            transform: translateX(-50%) scale(1.1);
        }

        @keyframes xn-shake {
            10%, 90% { transform: translateX(-50%) scale(1) translate3d(-1px, 0, 0); }
            20%, 80% { transform: translateX(-50%) scale(1) translate3d(2px, 0, 0); }
            30%, 50%, 70% { transform: translateX(-50%) scale(1) translate3d(-3px, 0, 0); }
            40%, 60% { transform: translateX(-50%) scale(1) translate3d(3px, 0, 0); }
        }

        /* --- 响应式布局 --- */
        @media (max-width: 768px) {
            .xn-latest-container { flex-direction: column; }
            .xn-modal-content { max-width: 95%; }
            .xn-modal-header h2 { font-size: 1.25rem; }
            .xn-history-section h3, .xn-latest-card h3 { font-size: 1rem; }
            .xn-modal-content::before { left: 10px; font-size: 30px; }
            .xn-modal-content::after { right: 10px; font-size: 30px; }
        }
