
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            background: #f0f2f5;
            color: #1c1e21;
            line-height: 1.34;
        }

        header {
            background: white;
            border-bottom: 1px solid #dddfe2;
        }

        .header-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            padding: 0 16px;
            height: 56px;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 1.25rem;
            font-weight: bold;
            color: #1877f2;
        }
        
.logo:hover {
    opacity: 0.8; 
}

        .logo-icon {
            width: 36px;
            height: 36px;
            background: #1877f2;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .header-nav {
            margin-left: auto;
            display: flex;
            gap: 8px;
        }

        .header-nav a {
            padding: 8px 12px;
            color: #65676b;
            text-decoration: none;
            border-radius: 6px;
            transition: background 0.2s;
            font-size: 0.9375rem;
        }

        .header-nav a:hover {
            background: #f0f2f5;
        }
        
.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e4e6eb;
    font-weight: 600;
    font-size: 1.1rem;
}

.card-content {
    padding: 20px;
}
        
/* 移动端菜单 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #65676b;
    /*margin: 3px 0; */
    transition: all 0.3s ease-in-out; 
    border-radius: 2px;
    position: absolute; 
    left: 50%;
    transform-origin: center; 
}

.menu-toggle span:nth-child(1) {
    top: 12px;
    transform: translateX(-50%);
}

.menu-toggle span:nth-child(2) {
    top: 19px; 
    transform: translateX(-50%);
}

.menu-toggle span:nth-child(3) {
    top: 26px;
    transform: translateX(-50%);
}

.menu-toggle.active span:nth-child(1) {
    top: 19px; 
    transform: translateX(-50%) rotate(45deg); 
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0; 
}

.menu-toggle.active span:nth-child(3) {
    top: 19px; 
    transform: translateX(-50%) rotate(-45deg); 
}

/* --- 移动端菜单 --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .header-nav {
        position: absolute;
        top: 56px; 
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 8px 0; 
        display: none;
        z-index: 1000;
        border-top: 1px solid #e4e6eb;
        border-radius: 0 0 8px 8px;
    }

    .header-nav.active {
        display: flex;
    }

    .header-nav a {
        display: flex; 
        align-items: center; 
        padding: 10px 16px; 
        margin: 2px 12px; 
        border-radius: 8px; 
        color: #050505; 
        text-decoration: none;
        font-size: 15px; 
        font-weight: 500; 
        line-height: 1.5; 
        transition: background-color 0.2s ease;
    }

    .header-nav a:hover {
        background-color: #f2f3f5; 
    }

    .header-nav a:active {
        background-color: #e4e6eb; 
        transform: scale(0.98); 
    }
}

        .main-container {
            max-width: 1200px;
            margin: 20px auto;
            padding: 0 20px;
            display: grid;
            grid-template-columns: 1fr 320px;
            gap: 20px;
        }
        
.main-box {
    display: flex;
    flex-direction: column;
    gap: 16px; 
}

.search-section {
    grid-column: 1 / -1;
    /*padding: 60px 20px;*/
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    /*padding: 16px;*/
}

.search-wrapper {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.search-box {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #dddfe2;
    border-radius: 24px;
    padding: 4px;
    /*box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);*/
    transition: all 0.3s ease;
    margin-bottom: 16px;
}

.search-box:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-color: #1877f2;
}

.search-box:focus-within {
    box-shadow: 0 4px 16px rgba(24, 119, 242, 0.2);
    border-color: #1877f2;
}

#searchForm {
    display: flex;
    align-items: center;
    flex: 1; 
    margin: 0;
    padding: 0;
    border: none;
}
.search-select {
    padding: 12px 16px;
    border: none;
    background: transparent;
    font-size: 0.9375rem;
    cursor: pointer;
    outline: none;
    color: #65676b;
    font-weight: 500;
}
.search-divider {
    width: 1px;
    height: 32px;
    background: #dddfe2;
    margin: 0 8px;
    margin-left: -2px;
    margin-right: 15px;
}
.search-input {
    flex: 1;
    padding: 12px 0px;
    border: none;
    background: transparent;
    font-size: 1rem;
    outline: none;
    color: #1c1e21;
    margin-right: 10px;
}
.search-icon-btn {
    padding: 10px;
    background: #1877f2;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s ease;
    margin-right: 4px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.search-icon-btn:hover {
    background: #166fe5;
    transform: scale(1.01);
}

.search-icon-btn:active {
    transform: scale(0.95);
}
.search-suggestions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.875rem;
    color: #65676b;
    flex-wrap: wrap;
}
.search-suggestions span {
    font-weight: 500;
}
.search-suggestions a {
    color: #1877f2;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.search-suggestions a:hover {
    background: #e7f3ff;
    text-decoration: underline;
}

        .content-card {
            background: white;
            border-radius: 8px;
            /*box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);*/
            padding: 16px;
        }
        
        #navCategories {
            background: white;
            border-radius: 8px;
            /*box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);*/
            padding: 16px;
        }

        .nav-section {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .category {
            padding-bottom: 16px;
        }

        .category:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }

        .category-header {
            display: flex;
            align-items: center;
            margin-bottom: 12px;
        }

        .category-icon {
            width: 36px;
            height: 36px;
            background: #f0f2f5;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 12px;
            font-size: 1.2rem;
        }

        .category-title {
            font-size: 1.0625rem;
            font-weight: 600;
            color: #1c1e21;
        }

        .nav-links {
           display: flex;
           flex-wrap: wrap;
           gap: 8px;
           margin-left: 0;
        }

        .nav-link {
            padding: 8px 12px;
            background: #f0f2f5;
            border-radius: 6px;
            text-decoration: none;
            color: #65676b;
            font-size: 0.9375rem;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .nav-link:hover {
            background: #e4e6eb;
            transform: translateY(-1px);
        }

        .sidebar {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .sidebar-widget {
            background: white;
            border-radius: 8px;
            /*box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);*/
            padding: 16px;
        }

        .widget-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 12px;
            padding-bottom: 8px;
            border-bottom: 1px solid #e4e6eb;
        }

        .widget-title {
            font-size: 1.0625rem;
            font-weight: 600;
            color: #1c1e21;
        }


        .placeholder {
            background: #f0f2f5;
            border: 2px dashed #ccd0d5;
            border-radius: 8px;
            padding: 40px 20px;
            text-align: center;
            color: #65676b;
            font-size: 0.875rem;
        }

        .custom-link-form {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-bottom: 12px;
        }

        .input-group {
            display: flex;
            gap: 8px;
        }

        .custom-input {
            flex: 1;
            padding: 8px 12px;
            border: 1px solid #f0f2f5;
            border-radius: 6px;
            font-size: 0.9375rem;
            background: #f0f2f5;
        }

        .custom-input:focus {
            outline: none;
            border-color: #1877f2;
            box-shadow: 0 0 0 2px #e7f3ff;
        }

        .add-btn {
            padding: 8px 16px;
            background: #1877f2;
            color: white;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            transition: background 0.2s;
        }

        .add-btn:hover {
            background: #166fe5;
        }

        .saved-links {
            display: flex;
            flex-direction: column;
            gap: 6px;
            max-height: 300px;
            overflow-y: auto;
        }

        .saved-link {
            display: flex;
            align-items: center;
            padding: 8px 12px;
            background: #f0f2f5;
            border-radius: 6px;
            transition: background 0.2s;
        }

        .saved-link:hover {
            background: #e4e6eb;
        }

        .saved-link a {
            flex: 1;
            color: #1877f2;
            text-decoration: none;
            font-size: 0.9375rem;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .saved-link a:hover {
            text-decoration: underline;
        }

        .delete-btn {
            padding: 4px 8px;
            background: #e4e6eb;
            border: none;
            border-radius: 4px;
            color: #65676b;
            font-size: 0.75rem;
            cursor: pointer;
            transition: all 0.2s;
        }

        .delete-btn:hover {
            background: #d8dadf;
        }

        footer {
            background: white;
            border-top: 1px solid #dddfe2;
            padding: 20px 0;
        }

        .footer-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 16px;
            text-align: center;
        }

        .footer-links {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 16px;
            margin-bottom: 12px;
        }

        .footer-links a {
            color: #65676b;
            text-decoration: none;
            font-size: 0.875rem;
        }

        .footer-links a:hover {
            text-decoration: underline;
        }

        .footer-copyright {
            color: #65676b;
            font-size: 0.8125rem;
        }

.spinner {
    display: block;
    width: 20px;
    height: 20px;
    border: 3px solid #e4e6eb;
    border-top-color: #1877f2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: auto;
}
        @keyframes spin {
            to { transform: rotate(360deg); }
        }


        .toast {
            position: fixed;
            top: 20px;
            right: 20px;
            background: #323232;
            color: white;
            padding: 12px 20px;
            border-radius: 6px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            z-index: 2000;
            animation: toastIn 0.3s ease;
        }

        @keyframes toastIn {
            from {
                transform: translateX(100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

.notes-toolbar {
    margin-bottom: 12px;
}

.notes-add-btn {
    width: 100%;
    padding: 10px 12px;
    background: #1877f2;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.note-item {
    background: #f0f2f5;
    border: 1px solid #dddfe2;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    position: relative;
    transition: all 0.2s;
}

.note-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.note-content {
    min-height: 60px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    outline: none;
    white-space: pre-wrap;
    word-break: break-word;
    background: transparent;
    border: none;
    resize: none;
    width: 100%;
    font-family: inherit;
}

.note-content::placeholder {
    color: #999;
    font-style: italic;
}

.note-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    opacity: 0;
    transition: opacity 0.2s;
}

.note-item:hover .note-footer {
    opacity: 1;
}

.note-time {
    font-size: 11px;
    color: #999;
}

.note-delete-btn {
    background: #ff4d4f;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
}

.note-delete-btn:hover {
    background: #d9363e;
}

@media (max-width: 768px) {
            .main-container {
                grid-template-columns: 1fr;
                margin: 10px auto;
                padding: 0 10px;
                display: grid;
                gap: 10px;
            }

            .search-section {
                grid-column: 1;
            }
            .nav-links {
                display: flex;
                flex-wrap: wrap;
                gap: 8px;
                margin-left: 0;
            }

            .nav-link {
                flex-grow: 0;
            } 
            
.custom-select-trigger {
padding: 10px 15px !important;
    }
/*    .search-section {
        padding: 20px 16px;
        min-height: auto;
    }*/

    .search-wrapper {
        max-width: 100%;
    }

    .search-box {
        flex-direction: column;
        border-radius: 12px;
        padding: 8px;
    }

    #searchForm {
        width: 100%;
        flex-direction: column;
    }

    .search-select {
        width: 100%;
        padding: 10px 12px;
        border-bottom: 1px solid #dddfe2;
        margin-bottom: 8px;
    }

    .search-divider {
        width: 100%; 
        height: 1px; 
        margin: 8px 0; 
        transform: scaleY(0.5);
    }

    .search-input {
        width: 100%;
        padding: 10px 15px;
        /*margin-bottom: 8px;*/
        margin-right: 0px;
    }

    .search-icon-btn {
        width: 100%;
        border-radius: 8px;
        margin-right: 0;
        padding: 12px;
    }
}

    .platform-tabs {
        display: flex;
        gap: 5px;
    }
    
    .tab-btn {
        padding: 5px 10px;
        background: #f5f5f5;
        border: 1px solid #ddd;
        border-radius: 3px;
        cursor: pointer;
        font-size: 12px;
        transition: all 0.3s;
    }
    
    .tab-btn:hover {
        background: #e9e9e9;
    }
    
    .tab-btn.active {
        background: #1877f2;
        color: white;
        border-color: #1877f2;
    }
    
    .hot-item {
        display: flex;
        padding: 10px 0px;
        border-bottom: 1px solid #f0f0f0;
        transition: background 0.2s;
    }
    
    .hot-item:hover {
        background: #f9f9f9;
    }
    
    .hot-rank {
        margin-right: 10px;
        width: 20px;
        text-align: center;
    }
    
    .rank-number {
        display: inline-block;
        width: 18px;
        height: 18px;
        line-height: 18px;
        text-align: center;
        font-size: 12px;
        color: #666;
        background: #f5f5f5;
        border-radius: 2px;
    }
    
    .top-1 {
        background: #ff4d4f;
        color: white;
    }
    
    .top-2 {
        background: #ff7a45;
        color: white;
    }
    
    .top-3 {
        background: #ffa940;
        color: white;
    }
    
    .hot-content {
        flex: 1;
    }
    
    .hot-title {
        color: #333;
        text-decoration: none;
        font-size: 14px;
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .hot-title:hover {
        color: #1877f2;
    }
    
.bing-wallpaper-container {
    text-align: center;
}

.bing-wallpaper-container img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.bing-wallpaper-container img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.wallpaper-title {
    margin-top: 8px;
    font-size: 0.75rem;
    color: #65676b;
    line-height: 1.4;
}

.wallpaper-title a {
    color: inherit; 
    text-decoration: none; 
    transition: color 0.2s ease;
}

.wallpaper-title a:hover {
    color: #1877f2; 
    text-decoration: underline; 
}


    /* 下拉框 */
    .custom-select-wrapper {
        position: relative;
        width: 100px; 
        user-select: none;
    }

    .custom-select-trigger {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 17px;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .arrow-icon {
        color: #6b7280;
        transition: transform 0.2s ease;
    }

    .custom-select-trigger.active .arrow-icon {
        transform: rotate(180deg);
    }

    .custom-options {
        position: absolute;
        top: calc(100% + 5px);
        left: 0;
        right: 0;
        background-color: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.2s ease;
        z-index: 10;
        overflow: hidden;
    }

    .custom-options.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .custom-option {
        padding: 10px 15px;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

    .custom-option:hover {
        background-color: #f3f4f6;
    }

    .custom-option.selected {
        background-color: #eff6ff;
        color: #3b82f6;
        font-weight: 500;
    }

    @media (max-width: 768px) {
        .custom-select-wrapper {
            width: 100%; 
        }

        .custom-option {
            flex: 1; 
            text-align: center; 
            border-radius: 6px; 
        }
    }
    
    
/* 导航Toast*/
.nav-toast-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.nav-toast-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-toast {
    background: #ffffff;
    border-radius: 12px;
    padding: 0;
    text-align: left;
    transform: scale(0.9) translateY(10px);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.12);
    position: relative;
    max-width: 480px;
    width: 90%;
    overflow: hidden;
}

.nav-toast-overlay.active .nav-toast {
    transform: scale(1) translateY(0);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.nav-toast-header {
    background: linear-gradient(135deg, #1877f2 0%, #42a5f5 100%);
    padding: 20px 24px;
    position: relative;
}

.nav-toast-title {
    font-size: 20px;
    color: #ffffff;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-toast-title::before {
    content: '';
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: titleDot 2s ease-in-out infinite;
}

@keyframes titleDot {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.nav-toast-content {
    padding: 20px 24px;
    background: #ffffff;
}

.nav-toast-paragraph {
    font-size: 15px;
    color: #1c1e21;
    line-height: 1.5;
    margin-bottom: 12px;
}

.nav-toast-paragraph:last-child {
    margin-bottom: 0;
}

.nav-toast-footer {
    padding: 12px 24px;
    background: #f0f2f5;
    border-top: 1px solid #e4e6eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-toast-hint {
    font-size: 13px;
    color: #65676b;
}

.nav-toast-close-btn {
    background: #e4e6eb;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    color: #1c1e21;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.nav-toast-close-btn:hover {
    background: #d8dadf;
}


    .featured-link {
        background: #ffffff;
        border: 1px solid #e4e6eb;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }

    .featured-link:hover {
        background: #f8f9fa;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .featured-icon {
        width: 17px;
        height: 17px;
        border-radius: 4px;
        object-fit: cover;
    }
    
    .featured-link {
    padding: 8px 12px;
    background: #f0f2f5;
    border-radius: 6px;
    text-decoration: none;
    color: #65676b;
    font-size: 0.9375rem;
    transition: all 0.2s;
    display: flex
;
    align-items: center;
    gap: 8px;
    }

    .featured-link:hover {
            background: #e4e6eb;
            transform: translateY(-1px);
    }
    .load-more-container {
        text-align: center;
/*        padding: 20px;
        background: #ffffff;
        border-radius: 8px;
        margin: 20px 0;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);*/
    }

    .load-more-btn {
padding: 8px 16px;
    background: #1877f2;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    }

    .load-more-btn:hover:not(:disabled) {
        background: #166fe5;
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(24, 119, 242, 0.3);
    }

    .load-more-btn:active {
        transform: translateY(0);
    }

    .load-more-btn:disabled {
        background: #e4e6eb;
        color: #8a8d91;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

    .load-more-btn .icon {
        margin-right: 8px;
        font-size: 16px;
    }
    
    
    
    
/* 资讯流 */
.news-feed-container {
    background: #fff;
    border-radius: 8px;
    /*box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);*/
}

.news-feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #e4e6eb;
}

.news-feed-header h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #1c1e21;
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.refresh-btn-header {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.refresh-btn-header:hover {
    background-color: #f0f2f5;
}

.refresh-btn-header:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.last-update {
    font-size: 0.875rem;
    color: #65676b;
}

/*.news-feed-list {
    max-height: 2000px;
    overflow-y: auto;
}*/

.news-item {
    display: flex;
    padding: 12px;
    border-bottom: 1px solid #e4e6eb;
    transition: background-color 0.2s;
}

.news-item:hover {
    background-color: #f0f2f5;
}

.news-rank {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #65676b;
    margin-right: 12px;
    flex-shrink: 0;
}

.news-item:nth-child(-n+3) .news-rank {
    color: #fff;
    border-radius: 50%;
}

.news-item:nth-child(1) .news-rank {
    background-color: #f02849;
}

.news-item:nth-child(2) .news-rank {
    background-color: #ff6600;
}

.news-item:nth-child(3) .news-rank {
    background-color: #ffa500;
}

.news-content {
    flex: 1;
    min-width: 0;
}

.news-header {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.news-title {
    font-size: 0.9375rem;
    font-weight: 500;
    margin: 0;
    flex: 1;
}

.news-title a {
    color: #1c1e21;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-title a:hover {
    text-decoration: underline;
}

.hot-tag {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
    flex-shrink: 0;
}

.hot-tag-1 {
    background-color: #ff6600;
    color: #fff;
}

.hot-tag-2 {
    background-color: #1877f2;
    color: #fff;
}

.hot-tag-3 {
    background-color: #f02849;
    color: #fff;
}

.news-desc {
    font-size: 0.8125rem;
    color: #65676b;
    margin: 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    color: #65676b;
    margin-top: 4px;
}

.hot-score {
    margin-right: 8px;
}

.hot-change {
    font-weight: 600;
}

.hot-change.up {
    color: #f02849;
}

.hot-change.down {
    color: #1877f2;
}

.hot-change.new {
    color: #00a400;
}

.news-image {
    width: 100px;
    height: 80px;
    margin-left: 12px;
    flex-shrink: 0;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}
.news-feed-container .news-feed-footer {
    padding: 12px 16px;
    text-align: center;
    overflow: hidden;
    position: relative;
}
.news-feed-container .news-feed-more-btn {
    background: #e4e6eb;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 0.875rem;
    color: #1c1e21;
    cursor: pointer;
    transition: background-color 0.2s;
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-feed-container .news-feed-more-btn:hover {
    background: #d8dadf;
}

.news-feed-container .news-feed-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f0f2f5;
    color: #8a8d91;
}
.news-feed-container .news-feed-more-btn.completed {
    background: #f0f2f5;
    color: #8a8d91;
    cursor: default;
}

.load-more-btn:hover {
    background: #d8dadf;
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.refresh-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231c1e21'%3E%3Cpath d='M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z'/%3E%3C/svg%3E");
    background-size: contain;
}

.refresh-icon.spinning {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #65676b;
}

.error-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #65676b;
}

.error-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2365667b'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E");
    background-size: contain;
}

.error-message button {
    margin-top: 12px;
    padding: 6px 12px;
    background: #1877f2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
}

.error-message button:hover {
    background: #166fe5;
}

.hot-tag-img {
    height: 16px; 
    margin-left: 8px;
    vertical-align: middle; 
    flex-shrink: 0; 
}


/* 搜索*/
.search-container {
    background: white;
    border-radius: 8px;
    padding: 16px;
    width: 100%;
    /*box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);*/
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.search-header {
    text-align: center;
    margin-bottom: 20px;
}

.time-display {
    color: #1877f2;
}

.time-main {
    font-size: 24px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.time-date {
    font-size: 13px;
    opacity: 0.9;
    font-weight: 400;
}
.search-options-top {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}
.search-options-bottom {
    margin-top: 16px;
    display: flex;
    justify-content: center;
}

.search-options-top .options-card,
.search-options-bottom .options-card {

}

.search-options-top .options-card:hover,
.search-options-bottom .options-card:hover {
/*    background: #f0f2f5;
    border-color: #dee2e6;*/
}

.category-tabs,
.engines-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px; 
    justify-content: center;
    max-width: 100%;
}

.category-tab,
.engine-tab {
    display: flex;
    align-items: center;
    gap: 6px; 
    padding: 8px 14px; 
    background: white;
    border: 1px solid #e4e6eb;
    border-radius: 17px; 
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px; 
    font-weight: 500;
    color: #65676b;
    flex-shrink: 0; 
}

.category-tab:hover,
.engine-tab:hover {
    background: #f0f2f5;
    border-color: #1877f2;
    color: #1877f2;
}

.category-tab.active,
.engine-tab.active {
    background: #1877f2;
    border-color: #1877f2;
    color: white;
}

.category-tab svg,
.engine-tab svg {
    width: 14px; 
    height: 14px;
}

.search-options {
    display: none;
}

.search-box-wrapper {
    position: relative;
    margin-bottom: 10px;
}

.search-input-container {
    position: relative;
    display: flex;
    align-items: center;
    background: #f0f2f5;
    border-radius: 17px;
    padding: 0 12px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.search-input-container:focus-within {
    background: white;
    border-color: #1877f2;
    box-shadow: 0 0 0 2px rgba(24, 119, 242, 0.1);
}

.search-icon {
    width: 16px;
    height: 16px;
    color: #65676b;
    margin-right: 10px;
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    border: none;
    background: none;
    padding: 11px 0;
    font-size: 15px;
    outline: none;
    color: #1c1e21;
}

.search-input::placeholder {
    color: #8a8d91;
}
.clear-btn {
    display: none; 
    background: none;
    border: none;
    width: 20px; 
    height: 20px;
    padding: 0; 
    cursor: pointer;
    color: #65676b;
    transition: all 0.2s ease;
    border-radius: 50%; 
    margin-right: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-btn:hover {
    background: #e4e6eb; 
    color: #1c1e21;
    border-radius: 50%;
}

.clear-btn svg {
    pointer-events: none; 
}
.search-btn-inline {
    background: #1877f2;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 6px;
    flex-shrink: 0;
    padding: 0;
}

.search-btn-inline:hover {
    background: #166fe5;
    transform: scale(1.05);
}

.search-btn-inline:active {
    transform: scale(0.95);
}

.search-btn-inline svg {
    width: 14px;
    height: 14px;
    stroke: white;
    stroke-width: 2;
    pointer-events: none; 
}

.search-input-container:not(:has(input:placeholder-shown)) .clear-btn {
    display: flex;
}

.search-input-container:not(:has(input:placeholder-shown)) .clear-btn {
    display: flex; 
}

.search-input-container:hover::after {
    background-color: #166fe5;
    transform: translateY(-50%) scale(1.05);
}

.search-input-container:active::after {
    transform: translateY(-50%) scale(0.95);
}
.search-button {
    display: none;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid #e4e6eb;
}

.panel-toggles {
    display: flex;
    gap: 16px;
    padding: 10px 14px;
    border-bottom: 1px solid #f0f2f5;
}

.toggle-switch {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.toggle-switch input {
    display: none;
}

.slider {
    width: 32px;
    height: 18px;
    background: #e4e6eb;
    border-radius: 9px;
    position: relative;
    transition: background 0.2s;
    margin-right: 6px;
}

.slider::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.toggle-switch input:checked + .slider {
    background: #1877f2;
}

.toggle-switch input:checked + .slider::before {
    transform: translateX(14px);
}

.toggle-label {
    font-size: 12px;
    color: #65676b;
    font-weight: 500;
}

.panel-section {
    padding: 6px 0;
}

.panel-section:not(:last-child) {
    border-bottom: 1px solid #f0f2f5;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px 3px;
    font-size: 12px;
    font-weight: 600;
    color: #65676b;
}

.panel-header svg {
    width: 13px;
    height: 13px;
}

.clear-history-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: #1877f2;
    font-size: 11px;
    cursor: pointer;
    transition: opacity 0.2s;
    font-weight: 500;
}

.clear-history-btn:hover {
    opacity: 0.8;
}

.suggestions-list,
.history-list {
    display: flex;
    flex-direction: column;
}

.suggestion-item,
.history-item {
    padding: 8px 14px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 12px;
    color: #1c1e21;
    display: flex;
    align-items: center;
    gap: 8px;
}

.suggestion-item:hover,
.history-item:hover {
    background: #f0f2f5;
}

.suggestion-item svg {
    width: 13px;
    height: 13px;
    color: #65676b;
    flex-shrink: 0;
}

.dropdown-panel::-webkit-scrollbar {
    width: 3px;
}

.dropdown-panel::-webkit-scrollbar-track {
    background: transparent;
}

.dropdown-panel::-webkit-scrollbar-thumb {
    background: #e4e6eb;
    border-radius: 2px;
}

.dropdown-panel::-webkit-scrollbar-thumb:hover {
    background: #d0d3d8;
}

@media (max-width: 768px) {
.search-header {
    margin-bottom: 10px;
}
.search-options-top {
    margin-bottom: 5px;
}

.search-box-wrapper {
    margin-bottom: 0px;
}
.search-options-bottom {
    margin-top: 5px;
}
    .search-options-top .options-card,
    .search-options-bottom .options-card {
        padding: 10px 12px; 
    }
    
    .category-tab,
    .engine-tab {
        padding: 6px 10px; 
        font-size: 13px; 
    }
    
    .category-tabs,
    .engines-tabs {
        gap: 6px; 
    }
}
/*友联*/
.links-list {
    display: flex;
    flex-wrap: wrap; 
    gap: 6px; 
    justify-content: flex-start; 
}

.link-tag {
    display: inline-block;
    padding: 6px 12px;
    background: #f0f2f5;
    color: #65676b;
    text-decoration: none;
    font-size: 0.875rem; 
    font-weight: 500;
    border-radius: 18px; 
    transition: background-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.link-tag:hover {
    color: #050505;
    text-decoration: none; 
}

.placeholder-text {
    display: block;  
    width: 100%;     
    text-align: center;
    color: #65676b;
    font-size: 0.875rem;
}


/* 天气 */
#weatherWidget {
    display: flex;
    flex-direction: column;
}

.weather-card {
    /*background: #f0f2f5;*/
    border-radius: 12px;
    /*padding: 16px;*/
    color: #1c1e21;
    position: relative;
    overflow: hidden;
    /*box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);*/
}

.weather-fist {
margin-bottom: 10px;
}

.weather-header {
    margin-bottom: 10px;
}

.location {
font-size: 1.0625rem;
    font-weight: 600;
    color: #1c1e21;
}

.weather-main {
    text-align: center;
    margin-bottom: 10px;
}

.weather-current-temp {
    font-size: 30px;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 8px;
    color: #1c1e21;
}

.weather-current-desc {
    font-size: 18px;
    color: #65676b;
    font-weight: 400;
}

.weather-details {
    display: flex;
    justify-content: space-around;
    padding-top: 10px;
    border-top: 1px solid #e4e6eb;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #65676b;
}

.detail-icon {
    font-size: 16px;
}


.weather-forecast-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.weather-forecast-item {
    background: #f0f2f5;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.weather-forecast-item:hover {
    transform: translateX(2px);
}

.weather-forecast-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.weather-forecast-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1c1e21;
    min-width: 36px;
}

.weather-forecast-icon {
    font-size: 1.2rem;
    color: #1877f2;
}

.weather-forecast-desc {
    font-size: 0.8rem;
    color: #65676b;
}

.weather-forecast-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.weather-forecast-temp {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1c1e21;
}

.weather-forecast-temp .min {
    color: #65676b;
    font-weight: 400;
    font-size: 0.8rem;
}

.weather-forecast-wind {
    font-size: 0.7rem;
    color: #65676b;
    display: flex;
    align-items: center;
    gap: 3px;
}

.weather-forecast-wind i {
    font-size: 0.7rem;
    color: #1877f2;
}