        * { 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;
            }
        }

/* 2026 首页重排：导航站信息架构 */
:root {
    --page-bg: #f4f7f8;
    --ink: #142026;
    --muted-ink: #64727b;
    --line: #dde7ea;
    --panel: rgba(255, 255, 255, 0.88);
    --panel-solid: #ffffff;
    --brand: #0c7c7b;
    --brand-dark: #075b60;
    --blue: #2563eb;
    --amber: #b7791f;
    --rose: #be3455;
    --shadow-soft: 0 18px 42px rgba(20, 32, 38, 0.08);
}

html,
body {
    min-height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--ink);
    background:
        linear-gradient(180deg, rgba(12, 124, 123, 0.08) 0, rgba(12, 124, 123, 0) 310px),
        var(--page-bg);
    padding: 0;
    margin: 0;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(20, 32, 38, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(20, 32, 38, 0.035) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 520px);
    z-index: 0;
}

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

.background-container {
    opacity: 0.7;
    filter: saturate(1);
}

.background-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(244, 247, 248, 0.3);
    backdrop-filter: blur(0px);
}

.main-content {
    position: relative;
    z-index: 1;
    padding: 22px 18px 110px;
}

.site-shell {
    width: min(1440px, 100%);
    margin: 0 auto;
}

.site-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 0 24px;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), #2f6bd1);
    font-size: 21px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(12, 124, 123, 0.2);
}

.brand-lockup strong,
.brand-lockup small {
    display: block;
}

.brand-lockup strong {
    font-size: 18px;
    line-height: 1.2;
}

.brand-lockup small {
    margin-top: 2px;
    color: var(--muted-ink);
    font-size: 12px;
}

.top-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.top-nav a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid rgba(12, 124, 123, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #30535a;
    font-size: 13px;
    text-decoration: none;
}

.top-nav a:hover {
    border-color: rgba(12, 124, 123, 0.42);
    color: var(--brand-dark);
}

.hero-panel {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(420px, 1.1fr);
    gap: 28px;
    align-items: center;
    padding: 34px;
    border: 1px solid rgba(12, 124, 123, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.eyebrow {
    margin: 0 0 9px;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 700;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: 0;
    color: var(--ink) !important;
}

.hero-desc {
    max-width: 560px;
    margin: 15px 0 0;
    color: var(--muted-ink);
    font-size: 15px;
    line-height: 1.75;
}

.search-expanded {
    display: block !important;
    grid-column: auto;
    padding: 18px;
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 8px;
    background: var(--panel-solid);
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.09);
    z-index: 2;
}

.search-engines {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.search-engine-btn,
.alarm-clock button {
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f7fafb;
    color: #3d4c54;
    cursor: pointer;
    transition: all 0.18s ease;
}

.search-engine-btn:hover,
.alarm-clock button:hover {
    border-color: rgba(37, 99, 235, 0.35);
    background: #eef5ff;
}

.search-engine-btn.active {
    border-color: var(--blue);
    background: var(--blue);
    color: #fff;
}

.alarm-clock {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted-ink);
    font-size: 12px;
}

#alarmTime,
#alarmPauseBtn {
    display: none;
}

#alarmTime {
    min-height: 32px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 9px;
    background: #fff;
}

.search-row {
    display: flex;
    gap: 10px;
}

.search-row input {
    min-width: 0;
    flex: 1;
    height: 50px;
    border: 1px solid #d4e0e4;
    border-radius: 8px;
    padding: 0 15px;
    background: #fbfdfe;
    color: var(--ink);
    outline: none;
}

.search-row input:focus {
    border-color: rgba(12, 124, 123, 0.55);
    box-shadow: 0 0 0 4px rgba(12, 124, 123, 0.1);
}

.search-row button,
.primary-small-btn {
    border: none;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}

.search-row button {
    min-width: 92px;
    padding: 0 18px;
}

.search-row button:hover,
.primary-small-btn:hover {
    background: var(--brand-dark);
}

.search-history {
    min-height: 18px;
    margin-top: 10px;
    color: var(--muted-ink);
    font-size: 12px;
    line-height: 1.6;
}

.quick-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.quick-action-card {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 72px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--ink);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.quick-action-card:hover {
    transform: translateY(-2px);
    border-color: rgba(12, 124, 123, 0.38);
    box-shadow: 0 10px 24px rgba(20, 32, 38, 0.08);
}

.quick-action-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #e9f6f4;
    color: var(--brand-dark);
    font-weight: 800;
}

.quick-action-card:nth-child(3) span {
    background: #eef5ff;
    color: var(--blue);
}

.quick-action-card:nth-child(4) span {
    background: #fff7e8;
    color: var(--amber);
}

.quick-action-card strong {
    font-size: 14px;
}

.save-expanded {
    display: none;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid rgba(123, 31, 162, 0.18);
    border-radius: 8px;
    background: var(--panel-solid);
    box-shadow: var(--shadow-soft);
    max-height: 70vh;
    overflow-y: auto;
}

.save-expanded h3 {
    margin: 0 0 14px;
    color: #64238a;
    font-size: 16px;
}

.table-wrapper {
    overflow-x: auto;
    margin-bottom: 14px;
}

#saveTable {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: 14px;
}

#saveTable th,
#saveTable td {
    border: 1px solid var(--line) !important;
    padding: 9px !important;
}

#saveTable th {
    background: #f6f8fa !important;
    font-weight: 700;
}

.primary-small-btn {
    min-height: 38px;
    padding: 0 16px;
}

.home-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 22px;
    align-items: start;
    margin-top: 22px;
}

.links-panel {
    min-width: 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.section-heading h2 {
    margin: 0;
    font-size: 24px;
    color: var(--ink) !important;
}

.section-count {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--muted-ink);
    font-size: 12px;
}

.links-collapse-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--muted-ink);
    cursor: pointer;
    transition: all 0.2s ease;
}

.links-collapse-btn:hover {
    background: rgba(12, 124, 123, 0.1);
    border-color: var(--brand);
    color: var(--brand);
}

.links-collapse-btn .collapse-icon {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.links-collapse-btn.collapsed .collapse-icon {
    transform: rotate(-90deg);
}

@media (max-width: 768px) {
    .links-collapse-btn {
        display: flex;
    }
}

.container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 12px;
    position: relative;
    z-index: 1;
}

#homeItemsMount {
    display: contents;
}

.grid-item,
.grid-item-new {
    min-height: 112px;
    padding: 14px;
    border: 1px solid rgba(221, 231, 234, 0.92);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--ink);
    box-shadow: 0 1px 0 rgba(20, 32, 38, 0.03);
    overflow: hidden;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.grid-item:hover,
.grid-item-new:hover {
    transform: translateY(-3px);
    border-color: rgba(12, 124, 123, 0.34);
    background: #ffffff !important;
    box-shadow: 0 14px 30px rgba(20, 32, 38, 0.1);
}

.grid-item-new.top-link {
    border-color: rgba(183, 121, 31, 0.55) !important;
    background: linear-gradient(180deg, #fffaf0, #ffffff) !important;
}

.top-link {
    animation: none;
}

.grid-item-new.default-blur .item-content,
.grid-item-new.has-revealed .item-content {
    filter: none;
    opacity: 1;
    pointer-events: auto;
}

.grid-item-new .item-tag-only {
    display: none;
}

.grid-item-new .item-content a {
    font-weight: 700;
    line-height: 1.45;
    word-break: break-word;
}

.side-rail {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.side-placeholder,
.news-panel,
.dh-panel,
#todayEntryPanel {
    position: static;
    width: 100%;
    max-width: none;
    max-height: none;
    display: block;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-solid);
    box-shadow: 0 10px 28px rgba(20, 32, 38, 0.07);
    overflow: hidden;
}

.side-placeholder {
    padding: 16px;
    color: var(--muted-ink);
}

.side-placeholder strong,
.side-placeholder span {
    display: block;
}

.side-placeholder strong {
    color: var(--ink);
    margin-bottom: 5px;
}

.side-rail .news-panel {
    display: block !important;
}

.side-rail .news-panel.collapsed {
    width: 100%;
}

.side-rail .news-panel.collapsed .news-panel-title {
    display: none;
}

.side-rail .news-panel.collapsed .news-panel-body {
    display: none;
}

.side-rail .news-panel.collapsed .news-panel-toggle {
    font-size: 12px;
    writing-mode: horizontal-tb;
}

.news-panel-header,
.dh-panel-header {
    border-bottom: 1px solid var(--line) !important;
    background: #f7fbfb !important;
    color: var(--ink) !important;
}

.news-panel-title,
.dh-panel-title {
    color: var(--ink) !important;
}

.news-panel-toggle,
.dh-panel-toggle {
    border: 1px solid var(--line) !important;
    background: #fff !important;
    color: var(--brand-dark) !important;
    border-radius: 8px !important;
}

.news-panel-list {
    max-height: 430px;
}

.side-rail .dh-panel-body {
    max-height: 540px;
    overflow-y: auto !important;
}

.news-panel-item,
.dh-site-item {
    border-radius: 8px !important;
}

.dh-panel {
    transform: none !important;
}

.side-rail .dh-panel.collapsed .dh-panel-body {
    display: none !important;
}

#dhPanelOpenBtn,
#todayEntryOpenBtn {
    display: none !important;
}

#todayEntryPanel {
    flex-direction: column;
}

#todayEntryPanel > div:first-child {
    background: #f7fbfb !important;
    color: var(--ink) !important;
    border-bottom: 1px solid var(--line);
}

#todayEntryPanel a {
    color: inherit !important;
}

.modal {
    backdrop-filter: blur(4px);
}

.modal-box,
.news-tip-box {
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(20, 32, 38, 0.22);
}

.footer-container {
    position: relative;
    z-index: 1;
    margin-top: 24px;
    padding: 18px 160px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.86);
}

#gameModeBtn {
    border-radius: 8px !important;
    animation: none;
}

#gameModeBtn::after {
    display: none;
}

.msg {
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid rgba(190, 52, 85, 0.18);
    border-radius: 8px;
    background: rgba(255, 245, 247, 0.92);
    color: var(--rose);
    text-align: left;
}

@media (max-width: 1100px) {
    .hero-panel {
        grid-template-columns: 1fr;
    }

    .home-layout {
        grid-template-columns: 1fr;
    }

    .side-rail {
        grid-row: auto;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 14px 12px 90px;
    }

    .site-topbar {
        align-items: flex-start;
        flex-direction: column;
        padding-bottom: 16px;
    }

    .top-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .hero-panel {
        padding: 20px;
        gap: 20px;
    }

    .hero-copy h1 {
        font-size: 36px;
    }

    .quick-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-engines,
    .alarm-clock,
    .search-row {
        align-items: stretch;
    }

    .alarm-clock {
        width: 100%;
        margin-left: 0;
        flex-wrap: wrap;
    }

    .search-row {
        flex-direction: column;
    }

    .search-row button {
        height: 44px;
    }

    .container {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        padding: 0 !important;
    }

    .grid-item,
    .grid-item-new {
        min-height: 104px;
        padding: 12px !important;
        font-size: 13px !important;
    }

    .news-panel {
        top: auto;
        width: 100%;
        max-height: none;
    }

    .footer-container {
        padding: 58px 12px 16px;
    }

    .footer-container > div:first-child,
    .footer-container > div:nth-child(2) {
        top: 14px !important;
        transform: none !important;
    }
}

@media (max-width: 480px) {
    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .quick-actions {
        gap: 8px;
    }

    .quick-action-card {
        min-height: 64px;
        padding: 10px;
    }

    .quick-action-card span {
        width: 32px;
        height: 32px;
    }

    .container {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
