        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: Arial, sans-serif; background: #f5f5f5; padding: 10px; position: relative; }
        .container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 20px; position: relative; z-index: 1; }
        .grid-item { background: #fff; padding: 15px; text-align: center; border-radius: 6px; cursor: pointer; transition: 0.2s; position: relative; z-index: 1; min-height: 80px; display: flex; flex-direction: column; justify-content: center; }
        .grid-item:hover { background: #eee; }
        .add-btn { background: #e8f4ff; color: #007bff; border: 1px dashed #007bff; background-size: cover; background-position: center; }
        .grid-item a { text-decoration: none; color: #333; display: block; width: 100%; height: 100%; }
        #homeItemsMount { display: contents; }
        .top-link { animation: pulse 2s infinite; }
        @keyframes pulse {
            0% { box-shadow: 0 0 0 0 rgba(255, 235, 59, 0.4); }
            70% { box-shadow: 0 0 0 10px rgba(255, 235, 59, 0); }
            100% { box-shadow: 0 0 0 0 rgba(255, 235, 59, 0); }
        }
        .modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; z-index: 999; }
        .modal-box { background: #fff; padding: 20px; border-radius: 8px; width: 90%; max-width: 350px; }
        .modal-box input, .modal-box textarea { width: 100%; padding: 8px; margin: 8px 0; border: 1px solid #ddd; border-radius: 4px; }
        .modal-box button { padding: 8px 16px; background: #007bff; color: #fff; border: none; border-radius: 4px; cursor: pointer; margin-right: 10px; }
        .admin { position: fixed; top: 10px; right: 10px; z-index: 100; }
        .admin a { color: #666; text-decoration: none; font-size: 14px; }
        .msg { text-align: center; color: #ff4444; margin: 10px 0; position: relative; z-index: 1; }
        
        /* 背景样式 */
        .background-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; overflow: hidden; }
        .background-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
        .background-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
        
        /* 主内容容器样式 */
        .main-content { padding-bottom: 200px; position: relative; z-index: 1; }
        
        /* 移动端滚动修复 */
        body, html { height: auto; min-height: 100%; overflow-x: hidden; }
        body { -webkit-overflow-scrolling: touch; margin: 0; padding: 0; }
        
        /* 备案信息样式 */
        .footer-container { position: fixed; bottom: 0; left: 0; width: 100%; text-align: center; font-size: 12px; color: #999; padding: 15px; background: #f5f5f5; border-top: 1px solid #eee; z-index: 10; }
        
        /* 游戏模式动画效果 */
        @keyframes disintegrate {
            0% {
                opacity: 1;
                transform: scale(1);
            }
            30% {
                opacity: 1;
                transform: scale(1.05);
            }
            100% {
                opacity: 0;
                transform: scale(0);
                transform-origin: center;
            }
        }
        
        @keyframes reintegrate {
            0% {
                opacity: 0;
                transform: scale(0);
                transform-origin: center;
                filter: blur(10px);
            }
            50% {
                opacity: 0.5;
                transform: scale(0.8);
                filter: blur(5px);
            }
            100% {
                opacity: 1;
                transform: scale(1);
                filter: blur(0);
            }
        }
        
        .disintegrate {
            animation: disintegrate 1.5s ease-in-out forwards;
        }
        
        .reintegrate {
            animation: reintegrate 1.5s ease-in-out forwards;
        }
        
        /* 为每个链接方块添加碎裂效果 */
        .disintegrate .grid-item {
            animation: disintegrate 1s ease-in-out forwards;
            animation-delay: calc(var(--index) * 0.05s);
        }
        
        .reintegrate .grid-item {
            animation: reintegrate 1s ease-in-out forwards;
            animation-delay: calc(var(--index) * 0.05s);
        }
        
        /* 游戏模式按钮震动效果 */
        @keyframes shake {
            0%, 100% { transform: translateX(0) translateY(-50%); }
            10%, 30%, 50%, 70%, 90% { transform: translateX(-2px) translateY(-50%); }
            20%, 40%, 60%, 80% { transform: translateX(2px) translateY(-50%); }
        }
        
        /* 红色光圈效果 */
        @keyframes pulse {
            0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); }
            70% { box-shadow: 0 0 0 10px rgba(255, 0, 0, 0); }
            100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
        }
        
        /* 触摸小手特效 */
        @keyframes handTap {
            0%, 100% { transform: translateY(-50%) scale(1); }
            50% { transform: translateY(-55%) scale(1.1); }
        }
        
        #gameModeBtn {
            position: relative;
            animation: shake 2s infinite ease-in-out, pulse 2s infinite;
        }
        
        #gameModeBtn::after {
            content: '👈';
            position: absolute;
            right: -30px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 20px;
            animation: handTap 1.5s infinite ease-in-out;
            z-index: 1000;
        }
        
        #gameModeBtn.no-effect {
            animation: none;
        }
        
        #gameModeBtn.no-effect::after {
            display: none;
        }
        
        /* 移动端适配 */
        @media (max-width: 768px) {
            .container {
                grid-template-columns: repeat(3, 1fr) !important;
                gap: 8px !important;
                padding: 0 10px !important;
                max-width: 100% !important;
                width: 100% !important;
            }
            
            .grid-item {
                padding: 12px !important;
                font-size: 14px !important;
                min-width: 0 !important;
                overflow: hidden !important;
            }
            
            .add-btn {
                font-size: 12px !important;
            }
            
            .footer-container {
                padding: 10px !important;
                font-size: 11px !important;
            }
            
            #gameModeBtn {
                padding: 6px 12px !important;
                font-size: 12px !important;
                position: relative !important;
                animation: pulse 2s infinite !important;
            }
            
            #gameModeBtn::after {
                content: '👈';
                position: absolute !important;
                right: -20px !important;
                top: 50% !important;
                transform: translateY(-50%) !important;
                font-size: 16px !important;
                animation: handTap 1.5s infinite ease-in-out !important;
                z-index: 1000 !important;
            }
            
            .grid-item div:first-child {
                top: auto !important;
                left: 2px !important;
                bottom: 2px !important;
                right: auto !important;
                font-size: 5px !important;
                padding: 1px 2px !important;
            }

            .grid-item a {
                min-width: 0 !important;
                overflow-wrap: anywhere;
                word-break: break-word;
            }
        }
        
        /* 搜索相关样式 */
        .search-btn {
            transition: all 0.3s ease;
        }
        
        .search-btn:hover {
            background: #bbdefb !important;
        }
        
        .search-engine-btn {
            padding: 5px 10px;
            border: 1px solid #ddd;
            background: #f5f5f5;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        
        .search-engine-btn.active {
            background: #1976d2;
            color: #fff;
            border-color: #1976d2;
        }
        
        .search-engine-btn:hover {
            background: #e3f2fd;
        }
        
        .search-engine-btn.active:hover {
            background: #1565c0;
        }
        
        /* 格子虚化效果 */
        .grid-item.blur {
            filter: blur(2px);
            opacity: 0.6;
            pointer-events: none;
        }
        
        /* 红色闪烁效果 */
        @keyframes redFlash {
            0% { background-color: rgba(255, 0, 0, 0.1); }
            50% { background-color: rgba(255, 0, 0, 0.5); }
            100% { background-color: rgba(255, 0, 0, 0.1); }
        }
        
        .alarm-flash {
            animation: redFlash 1s infinite;
        }
        
        @media (max-width: 480px) {
            .container {
                grid-template-columns: repeat(3, 1fr) !important;
                gap: 6px !important;
                padding: 0 8px !important;
                width: 100% !important;
            }
            
            .grid-item {
                padding: 10px !important;
                font-size: 12px !important;
            }
            
            .add-btn {
                font-size: 10px !important;
            }
            
            .footer-container {
                padding: 8px !important;
                font-size: 10px !important;
            }
            
            #gameModeBtn {
                padding: 5px 10px !important;
                font-size: 11px !important;
                position: relative !important;
                animation: pulse 2s infinite !important;
            }
            
            #gameModeBtn::after {
                content: '👈';
                position: absolute !important;
                right: -18px !important;
                top: 50% !important;
                transform: translateY(-50%) !important;
                font-size: 14px !important;
                animation: handTap 1.5s infinite ease-in-out !important;
                z-index: 1000 !important;
            }
            
            /* 搜索展开区域移动端适配 */
            .search-expanded {
                grid-column: span 3 !important;
                padding: 15px !important;
            }
            
            .search-engines {
                flex-wrap: wrap !important;
                gap: 5px !important;
            }
            
            .search-engine-btn {
                font-size: 12px !important;
                padding: 4px 8px !important;
            }
        }
        
        /* 推荐提醒覆盖层样式 */
        .domain-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.95);
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .domain-overlay-content {
            background: #fff;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
            max-width: 800px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
        }
        
        .domain-overlay-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 1px solid #eee;
        }
        
        .domain-overlay-header h2 {
            color: #856404;
            margin: 0;
        }
        
        .close-btn {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: #666;
        }
        
        .close-btn:hover {
            color: #333;
        }
        
        .domain-list {
            margin: 20px 0;
        }
        
        .domain-item {
            display: flex;
            align-items: center;
            padding: 15px;
            border-bottom: 1px solid #eee;
            flex-wrap: wrap;
        }
        
        .domain-number {
            width: 40px;
            font-weight: bold;
            margin-right: 10px;
        }
        
        .domain-days {
            width: 60px;
            font-weight: bold;
            color: red;
            margin-right: 15px;
        }
        
        .domain-days.days-warning {
            color: #dc3545;
            font-size: 16px;
        }
        
        .domain-item.border-warning {
            border: 2px solid red;
        }
        
        .domain-item.bg-warning {
            background-color: rgba(220, 53, 69, 0.1);
        }
        
        .domain-item.shake {
            animation: shake 0.5s ease-in-out infinite alternate;
        }
        
        @keyframes shake {
            0% {
                transform: translateX(0);
            }
            100% {
                transform: translateX(5px);
            }
        }
        
        .domain-name {
            flex: 1;
            min-width: 150px;
            margin-right: 15px;
        }
        
        .domain-platform {
            width: 120px;
            margin-right: 15px;
        }
        
        .odd-row {
            background-color: #f8f9fa;
        }
        
        .even-row {
            background-color: #ffffff;
        }
        
        /* 移动端适配 */
        @media (max-width: 768px) {
            .domain-overlay-content {
                padding: 20px;
                width: 95%;
            }
            
            .domain-item {
                padding: 10px;
            }
            
            .domain-number {
                width: 30px;
                margin-right: 8px;
            }
            
            .domain-days {
                width: 50px;
                margin-right: 10px;
            }
            
            .domain-name {
                min-width: 120px;
                margin-right: 10px;
            }
            
            .domain-platform {
                width: 100px;
                margin-right: 10px;
            }
        }
        .news-panel {
            position: fixed;
            left: 0;
            top: 120px;
            width: 320px;
            max-height: calc(100vh - 150px);
            background: #fff;
            border: 1px solid #d9e5f6;
            border-left: none;
            border-radius: 0 12px 12px 0;
            box-shadow: 0 8px 24px rgba(16, 42, 67, 0.14);
            z-index: 998;
            display: none;
            overflow: hidden;
            transition: width 0.22s ease;
        }
        .news-panel.collapsed {
            width: 30px;
            background: rgba(207, 223, 244, 0.9);
            border: 1px solid #cfdff4;
            border-left: none;
        }
        .news-panel-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            padding: 10px 10px 8px;
            border-bottom: 1px solid #e7eef9;
            background: #f7fbff;
        }
        .news-panel-title {
            font-size: 14px;
            font-weight: 700;
            color: #12457c;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .news-panel-toggle {
            border: 1px solid #cfdff4;
            background: #fff;
            color: #24588f;
            border-radius: 8px;
            padding: 4px 8px;
            font-size: 12px;
            cursor: pointer;
            min-width: 34px;
            min-height: 30px;
        }
        .news-panel-body {
            display: block;
        }
        .news-panel-meta {
            font-size: 12px;
            color: #607589;
            padding: 8px 10px;
            border-bottom: 1px solid #eef3fb;
            background: #fff;
        }
        .news-panel-list {
            max-height: calc(100vh - 245px);
            overflow-y: auto;
            padding: 8px 10px;
            display: flex;
            flex-direction: column;
            gap: 8px;
            background: #fff;
        }
        .news-panel-item {
            border: 1px solid #e1eaf7;
            border-radius: 8px;
            padding: 8px;
            background: #fbfdff;
            cursor: pointer;
            transition: all 0.2s;
        }
        .news-panel-item:hover {
            background: #e8f4ff;
            transform: translateX(2px);
        }
        .news-panel-item.promo-item {
            border-color: #28a745;
            background: #f0f9f0;
        }
        .news-panel-item.promo-item:hover {
            background: #e0f5e0;
        }
        .news-panel-item a {
            color: #0c62be;
            text-decoration: none;
            font-size: 13px;
            line-height: 1.45;
            font-weight: 600;
            display: block;
        }
        .news-panel-item.promo-item a {
            color: #28a745;
        }
        .news-panel-item .meta {
            margin-top: 4px;
            color: #6b7e92;
            font-size: 11px;
        }
        .news-panel-item .promo-badge {
            display: inline-block;
            background: #28a745;
            color: #fff;
            font-size: 10px;
            padding: 1px 6px;
            border-radius: 10px;
            margin-right: 4px;
        }
        .news-panel-empty {
            color: #6b7e92;
            font-size: 12px;
            padding: 8px;
            text-align: center;
        }
        .news-panel.collapsed .news-panel-title,
        .news-panel.collapsed .news-panel-body {
            display: none;
        }
        .news-panel.collapsed .news-panel-header {
            border-bottom: none;
            padding: 4px 2px;
            justify-content: center;
            background: transparent;
        }
        .news-panel.collapsed .news-panel-toggle {
            writing-mode: horizontal-tb;
            text-orientation: mixed;
            padding: 4px;
            min-height: 24px;
            min-width: 24px;
            background: transparent;
            border: none;
            border-radius: 0;
            font-size: 16px;
            color: #24588f;
        }
        .news-panel-loading {
            text-align: center;
            padding: 20px;
            color: #6b7e92;
        }
        .news-tip-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.6);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 99999;
        }
        .news-tip-modal.show {
            display: flex;
        }
        .news-tip-box {
            background: #fff;
            padding: 30px;
            border-radius: 12px;
            text-align: center;
            max-width: 300px;
        }
        .news-tip-box h4 {
            color: #28a745;
            margin-bottom: 15px;
            font-size: 18px;
        }
        .news-tip-box p {
            color: #666;
            margin-bottom: 20px;
        }
        .news-tip-box button {
            padding: 10px 30px;
            background: #007bff;
            color: #fff;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
        }
        .news-tip-box button:hover {
            background: #0056b3;
        }
        .grid-item-new {
            position: relative;
            padding: 8px;
            min-height: 90px;
            border-radius: 10px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
            overflow: hidden;
        }
        #homeItemsMount .grid-item-new:nth-child(odd) {
            background: #ffffff;
        }
        #homeItemsMount .grid-item-new:nth-child(even) {
            background: #f5e8d5;
        }
        .grid-item-new.top-link {
            border: 3px solid #ffd700 !important;
            background: linear-gradient(135deg, #fff9e6 0%, #fff 100%);
        }
        .grid-item-new.default-blur .item-content {
            filter: blur(6px);
            opacity: 0.3;
            pointer-events: none;
        }
        .grid-item-new .item-tag-only {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
            position: absolute;
            top: 0;
            left: 0;
            z-index: 2;
            font-weight: 600;
            font-size: 14px;
            color: #0c7c7b;
        }
        .grid-item-new .item-content {
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
        .grid-item-new.has-revealed .item-tag-only {
            display: none;
        }
        .grid-item-new.has-revealed .item-content {
            filter: none;
            opacity: 1;
            pointer-events: auto;
        }
        @media (min-width: 769px) {
            .grid-item-new:hover {
                transform: translateY(-3px);
                box-shadow: 0 6px 20px rgba(0,0,0,0.12);
            }
            .grid-item-new.default-blur:hover {
                filter: none;
            }
            .grid-item-new.default-blur:hover .item-content {
                filter: none;
                opacity: 1;
                pointer-events: auto;
            }
            .grid-item-new.default-blur:hover .item-tag-only {
                display: none;
            }
        }
        @media (max-width: 768px) {
            .news-panel {
                top: 100px;
                max-height: calc(100vh - 125px);
                width: 280px;
                display: block !important;
            }
            .news-panel:not(.collapsed) {
                width: min(280px, 82vw);
            }
            .news-panel.collapsed {
                width: 30px;
            }
            .grid-item-new {
                min-height: 80px;
            }
        }
