/* ============================================================
   爱搜网盘 · 520so 同款设计系统（1:1 复刻）
   来源：520so.cc 内联样式
   4 套主题：暖红 / 海洋蓝 / 森林绿 / 暗夜黑（默认海洋蓝）
   ============================================================ */


/* ===== 520so 原始样式 ===== */

        /* 主题配色方案 - 默认红 */
        :root,
        [data-theme="red"] {
            --theme-primary: #ff6b6b;
            --theme-primary-light: #ff8e53;
            --theme-primary-gradient: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
            --theme-primary-hover: #ff5252;
            --theme-secondary-gradient: linear-gradient(135deg, #ff8e53 0%, #ffa940 100%);
            --theme-tertiary-gradient: linear-gradient(135deg, #ffa940 0%, #ffc53d 100%);
            --theme-background: #f5f5f5;
            --theme-surface: #ffffff;
            --theme-card: #fff8f0;
            --theme-card-gradient: linear-gradient(135deg, #fff8f0 0%, #fff0f0 100%);
            --theme-text: #333333;
            --theme-text-secondary: #666666;
            --theme-border: #f0f0f0;
        }

        /* 海洋蓝主题 */
        [data-theme="blue"] {
            --theme-primary: #4a90e2;
            --theme-primary-light: #5fa3f0;
            --theme-primary-gradient: linear-gradient(135deg, #4a90e2 0%, #5fa3f0 100%);
            --theme-primary-hover: #3a7bc8;
            --theme-secondary-gradient: linear-gradient(135deg, #5fa3f0 0%, #7eb8f7 100%);
            --theme-tertiary-gradient: linear-gradient(135deg, #7eb8f7 0%, #9dcdff 100%);
            --theme-background: #f0f4f8;
            --theme-surface: #ffffff;
            --theme-card: #f0f8ff;
            --theme-card-gradient: linear-gradient(135deg, #f0f8ff 0%, #e6f2ff 100%);
            --theme-text: #2c3e50;
            --theme-text-secondary: #5a6c7d;
            --theme-border: #e1e8ed;
        }

        /* 森林绿主题 */
        [data-theme="green"] {
            --theme-primary: #27ae60;
            --theme-primary-light: #2ecc71;
            --theme-primary-gradient: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
            --theme-primary-hover: #229954;
            --theme-secondary-gradient: linear-gradient(135deg, #2ecc71 0%, #58d68d 100%);
            --theme-tertiary-gradient: linear-gradient(135deg, #58d68d 0%, #82e0aa 100%);
            --theme-background: #f0f7f4;
            --theme-surface: #ffffff;
            --theme-card: #f0faf4;
            --theme-card-gradient: linear-gradient(135deg, #f0faf4 0%, #e6f5eb 100%);
            --theme-text: #1e3a2f;
            --theme-text-secondary: #4a6356;
            --theme-border: #d4e6dc;
        }

        /* 暗夜黑主题 */
        [data-theme="dark"] {
            --theme-primary: #6366f1;
            --theme-primary-light: #8b5cf6;
            --theme-primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
            --theme-primary-hover: #4f46e5;
            --theme-secondary-gradient: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
            --theme-tertiary-gradient: linear-gradient(135deg, #a78bfa 0%, #c4b5fd 100%);
            --theme-background: #0f0f1a;
            --theme-surface: #1a1a2e;
            --theme-card: #252538;
            --theme-card-gradient: linear-gradient(135deg, #252538 0%, #1e1e32 100%);
            --theme-text: #f0f0f5;
            --theme-text-secondary: #a0a0b0;
            --theme-border: #3a3a4a;
            --theme-text-muted: #808090;
        }
        
        body {
            background-color: var(--theme-background) !important;
            color: var(--theme-text);
            transition: background-color 0.3s ease, color 0.3s ease;
        }
            

/* ===== 下一个 style 块 ===== */


    /* 隐藏原导航栏 */
    .headerBox,
    .headerKox {
        display: none !important;
    }
    
    /* 顶部导航栏样式 - 卡片式 */
    #app > .top-nav {
        background: transparent !important;
        padding: 12px 16px 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    #app > .top-nav .top-nav-box {
        width: 1048px !important;
        max-width: calc(100% - 32px) !important;
        margin: 0 auto !important;
        padding: 6px 16px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        background: var(--theme-surface) !important;
        border-radius: 10px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
        position: relative !important;
        transition: background-color 0.3s ease !important;
    }

    #app > .top-nav .top-nav-logo {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        text-decoration: none !important;
    }

    #app > .top-nav .top-nav-logo .logo-img,
    #app > .top-nav .top-nav-logo .logo-placeholder {
        width: 36px !important;
        height: 36px !important;
        border-radius: 8px !important;
        flex-shrink: 0 !important;
    }

    #app > .top-nav .top-nav-logo .logo-placeholder {
        background: var(--theme-primary-gradient) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #fff !important;
        font-weight: bold !important;
        font-size: 14px !important;
    }

    #app > .top-nav .top-nav-logo .logo-text {
        display: flex !important;
        flex-direction: column !important;
        gap: 0px !important;
    }

    #app > .top-nav .top-nav-logo .logo-title-row {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }

    #app > .top-nav .top-nav-logo .logo-name {
        font-size: 16px !important;
        font-weight: 600 !important;
        color: var(--theme-text) !important;
    }

    #app > .top-nav .top-nav-logo .logo-version {
        font-size: 10px !important;
        color: var(--theme-primary) !important;
        background: rgba(255, 107, 107, 0.1) !important;
        padding: 1px 6px !important;
        border-radius: 8px !important;
        font-weight: 500 !important;
    }

    #app > .top-nav .top-nav-logo .logo-subtitle {
        font-size: 11px !important;
        color: var(--theme-text-secondary) !important;
        max-width: 20em;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: inline-block;
        /* 如需多行截断，使用以下属性（会有警告但兼容性好） */
        /* display: -webkit-box; */
        /* -webkit-line-clamp: 2; */
        /* -webkit-box-orient: vertical; */
        /* white-space: normal; */
    }

    #app > .top-nav .top-nav-menu {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
    }

    #app > .top-nav .nav-menu-item {
        padding: 6px 14px !important;
        font-size: 13px !important;
        color: var(--theme-text-secondary) !important;
        cursor: pointer !important;
        border-radius: 16px !important;
        transition: all 0.2s ease !important;
        text-decoration: none !important;
        display: inline-block !important;
    }

    #app > .top-nav .nav-menu-item:hover,
    #app > .top-nav .nav-menu-item.active {
        color: var(--theme-primary) !important;
        background: rgba(255, 107, 107, 0.1) !important;
    }

    #app > .top-nav .top-nav-actions {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }

    #app > .top-nav .nav-filter-btn {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        padding: 6px 12px !important;
        font-size: 13px !important;
        color: var(--theme-text-secondary) !important;
        cursor: pointer !important;
        border-radius: 16px !important;
        transition: all 0.2s ease !important;
        border: 1px solid var(--theme-border) !important;
    }

    #app > .top-nav .nav-filter-btn:hover {
        border-color: var(--theme-primary) !important;
        color: var(--theme-primary) !important;
    }

    #app > .top-nav .nav-theme-btn {
        width: 32px !important;
        height: 32px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        background: var(--theme-surface) !important;
        color: var(--theme-text) !important;
        border: 1px solid var(--theme-border) !important;
    }

    #app > .top-nav .nav-theme-btn:hover {
        background: var(--theme-background) !important;
        color: var(--theme-primary) !important;
    }

    #app > .top-nav .nav-avatar {
        width: 32px !important;
        height: 32px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        background: var(--theme-surface) !important;
        color: var(--theme-text) !important;
        border: 1px solid var(--theme-border) !important;
    }

    #app > .top-nav .nav-avatar:hover {
        background: #f5f5f5 !important;
        color: var(--theme-primary) !important;
    }

    /* 主题切换器 */
    #app > .top-nav .theme-switcher {
        position: relative;
        z-index: 1001;
    }

    #app > .top-nav .theme-switcher-btn {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        cursor: pointer;
        transition: all 0.2s ease;
        background: var(--theme-surface);
        color: var(--theme-text-secondary);
        border: 1px solid var(--theme-border);
        font-size: 14px;
    }

    #app > .top-nav .theme-switcher-btn:hover {
        background: var(--theme-background);
        color: var(--theme-primary);
        border-color: var(--theme-primary);
    }

    #app > .top-nav .theme-dropdown {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        background: var(--theme-surface);
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        padding: 8px;
        min-width: 140px;
        z-index: 9999;
        border: 1px solid var(--theme-border);
        transition: background-color 0.3s ease;
    }

    #app > .top-nav .theme-option {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 12px;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.2s ease;
        color: var(--theme-text);
    }

    #app > .top-nav .theme-option:hover {
        background: var(--theme-background);
    }

    #app > .top-nav .theme-option.active {
        background: var(--theme-primary-gradient);
        color: #fff;
    }

    #app > .top-nav .theme-dot {
        width: 16px;
        height: 16px;
        border-radius: 50%;
        flex-shrink: 0;
    }

    #app > .top-nav .theme-name {
        font-size: 13px;
        white-space: nowrap;
    }

    #app > .top-nav .nav-menu-icon {
        font-size: 20px !important;
        cursor: pointer !important;
        color: var(--theme-text-secondary) !important;
        display: none !important;
    }
    
    @media (max-width: 1024px) {
        #app > .top-nav .top-nav-box {
            width: 100% !important;
            max-width: 100% !important;
        }
    }
    
    @media (max-width: 768px) {
        #app > .top-nav .top-nav-menu,
        #app > .top-nav .nav-filter-btn {
            display: none !important;
        }
        #app > .top-nav .nav-menu-icon {
            display: block !important;
        }
        #app > .top-nav .top-nav-logo .logo-subtitle {
            display: none !important;
        }
        #app > .top-nav .theme-switcher-btn {
            width: 28px;
            height: 28px;
            font-size: 12px;
        }
        #app > .top-nav .theme-dropdown {
            right: -40px;
            min-width: 120px;
        }
        #app > .top-nav .theme-name {
            font-size: 12px;
        }
    }


/* ===== 下一个 style 块 ===== */


    /* 首页新样式 - 参考 msmy.cn */
    
    /* 二维码弹窗样式 */
    .qrcode-dialog {
        background: #fff !important;
        border-radius: 12px !important;
        overflow: hidden;
    }
    .qrcode-dialog .el-dialog__header {
        background: #fff !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .qrcode-dialog .el-dialog__body {
        background: #fff !important;
        padding: 0 !important;
    }
    .el-overlay-dialog .qrcode-dialog {
        border-radius: 12px;
    }
    
    .home-container {
        width: 1080px;
        margin: 0 auto;
        padding: 16px 16px 24px;
    }

    .home-main {
        display: flex;
        gap: 16px;
        margin-bottom: 16px;
    }

    /* 左侧搜索区域 */
    .search-section {
        flex: 1;
        background: var(--theme-surface);
        border-radius: 12px;
        padding: 24px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        transition: background-color 0.3s ease;
    }

    .search-header {
        margin-bottom: 16px;
    }

    .search-title {
        font-size: 24px;
        font-weight: 700;
        color: var(--theme-text);
        margin-bottom: 6px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .search-title .highlight {
        background: var(--theme-primary-gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-weight: 800;
        letter-spacing: 1px;
    }

    .search-subtitle {
        font-size: 13px;
        color: var(--theme-text-secondary);
        line-height: 1.5;
    }

    .search-box-wrapper {
        position: relative;
        margin-bottom: 16px;
    }

    .search-input-box {
        display: flex;
        align-items: center;
        background: var(--theme-background);
        border-radius: 10px;
        border: 2px solid transparent;
        transition: all 0.3s ease;
        overflow: hidden;
    }

    .search-input-box:focus-within {
        border-color: var(--theme-primary);
        background: var(--theme-surface);
        box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
    }

    .search-icon {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--theme-text-secondary);
        font-size: 18px;
    }

    .search-input-box input {
        flex: 1;
        height: 44px;
        border: none;
        background: transparent;
        font-size: 14px;
        color: var(--theme-text);
        outline: none;
    }

    .search-input-box input::placeholder {
        color: var(--theme-text-secondary);
    }

    .input-search-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 44px;
        color: var(--theme-text-secondary);
        flex-shrink: 0;
    }

    .search-btn {
        height: 38px;
        padding: 0 20px;
        margin: 3px;
        background: var(--theme-primary-gradient);
        color: #fff;
        border: none;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .search-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(255, 107, 107, 0.35);
    }

    /* 热词区域 */
    .hot-keywords {
        margin-top: 12px;
    }

    .hot-keywords-label {
        font-size: 12px;
        color: var(--theme-text-secondary);
        margin-bottom: 8px;
    }

    .hot-keywords-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .hot-keyword {
        padding: 5px 12px;
        background: var(--theme-background);
        border-radius: 16px;
        font-size: 12px;
        color: var(--theme-text-secondary);
        cursor: pointer;
        transition: all 0.2s ease;
        border: 1px solid transparent;
    }

    .hot-keyword:hover {
        background: rgba(255, 107, 107, 0.1);
        color: var(--theme-primary);
        border-color: rgba(255, 107, 107, 0.3);
    }

    /* 提示文字 */
    .search-tips {
        margin-top: 0;
        padding-top: 2px;
        font-size: 11px;
        color: var(--theme-text-secondary);
        line-height: 1.5;
    }

    /* TMDB 影视信息 */
    .tmdb-info {
        display: flex;
        gap: 10px;
        margin-top: 10px;
        padding: 10px;
        background: var(--theme-background);
        border-radius: 6px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .tmdb-poster {
        flex-shrink: 0;
        width: 60px;
        height: 90px;
        border-radius: 4px;
        overflow: hidden;
        background: var(--theme-border);
    }

    .tmdb-poster img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .tmdb-content {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }

    .tmdb-title {
        margin-bottom: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .tmdb-title-cn {
        font-size: 14px;
        font-weight: 600;
        color: var(--theme-text);
    }

    .tmdb-title-en {
        font-size: 11px;
        color: var(--theme-text-secondary);
        margin-left: 4px;
    }

    .tmdb-year {
        font-size: 11px;
        color: var(--theme-primary);
        margin-bottom: 4px;
    }

    .tmdb-overview {
        font-size: 11px;
        color: var(--theme-text-secondary);
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* 右侧信息卡片 */
    .info-section {
        width: 320px;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .info-card {
        background: var(--theme-surface);
        border-radius: 12px;
        padding: 16px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        transition: background-color 0.3s ease;
    }

    .info-card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
    }

    .info-card-title {
        font-size: 14px;
        font-weight: 600;
        color: var(--theme-text);
    }

    .info-card-more {
        font-size: 11px;
        color: var(--theme-text-secondary);
        cursor: pointer;
    }

    .stats-grid {
        display: flex;
        justify-content: space-between;
        gap: 12px;
    }

    .stat-item {
        text-align: center;
        flex: 1;
    }

    .stat-label {
        font-size: 11px;
        color: var(--theme-text-secondary);
        margin-bottom: 4px;
    }

    .stat-value {
        font-size: 18px;
        font-weight: 700;
        color: var(--theme-text);
    }

    /* 资源缺失卡片 */
    .resource-missing {
        background: var(--theme-background);
        border-radius: 10px;
        padding: 16px;
        text-align: center;
    }

    .resource-missing-icon {
        width: 40px;
        height: 40px;
        background: var(--theme-primary-gradient);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 10px;
        color: #fff;
        font-size: 18px;
    }

    .resource-missing-title {
        font-size: 13px;
        font-weight: 600;
        color: var(--theme-text);
        margin-bottom: 4px;
    }

    .resource-missing-desc {
        font-size: 11px;
        color: var(--theme-text-secondary);
        margin-bottom: 12px;
    }

    .resource-missing-btns {
        display: flex;
        gap: 8px;
        justify-content: center;
    }

    .resource-btn {
        padding: 6px 16px;
        border-radius: 16px;
        font-size: 12px;
        cursor: pointer;
        transition: all 0.2s ease;
        border: none;
    }

    .resource-btn-primary {
        background: var(--theme-primary-gradient);
        color: #fff;
    }

    .resource-btn-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
    }

    .resource-btn-secondary {
        background: var(--theme-surface);
        color: var(--theme-text-secondary);
        border: 1px solid var(--theme-border);
    }

    .resource-btn-secondary:hover {
        border-color: var(--theme-primary);
        color: var(--theme-primary);
    }

    /* 搜索结果区域 */
    .search-result-section {
        margin-top: 16px;
        display: none;
    }
    
    .search-result-section.show {
        display: block;
    }
    
    .search-result-header {
        display: flex;
        flex-direction: column;
        margin-bottom: 12px;
        gap: 10px;
    }
    
    .search-result-actions {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .search-result-filter-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 10px;
    }

    .pan-type-tabs {
        display: flex;
        gap: 6px;
        background: var(--theme-background);
        padding: 4px;
        border-radius: 20px;
    }
    
    .pan-type-tab {
        padding: 4px 14px;
        font-size: 12px;
        color: var(--theme-text-secondary);
        cursor: pointer;
        border-radius: 16px;
        transition: all 0.2s ease;
        user-select: none;
    }
    
    .pan-type-tab:hover {
        color: var(--theme-primary);
    }
    
    .pan-type-tab.active {
        background: var(--theme-primary);
        color: #fff;
        font-weight: 600;
    }

    /* 移动端网盘类型按钮组 - 默认隐藏 */
    .pan-type-select-wrapper {
        display: none;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .pan-type-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .pan-type-header .search-result-close {
        display: none;
        font-size: 11px;
        padding: 3px 6px;
    }

    .pan-type-label {
        font-size: 11px;
        color: var(--theme-text-secondary);
        font-weight: 500;
    }

    .pan-type-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }

    .pan-type-btn {
        padding: 3px 10px;
        font-size: 11px;
        border: 1px solid var(--theme-border);
        border-radius: 10px;
        background: var(--theme-surface);
        color: var(--theme-text-secondary);
        cursor: pointer;
        transition: all 0.2s ease;
        white-space: nowrap;
    }

    .pan-type-btn:hover {
        border-color: var(--theme-primary);
        color: var(--theme-primary);
    }

    .pan-type-btn.active {
        background: var(--theme-primary-gradient);
        border-color: var(--theme-primary);
        color: #fff;
        font-weight: 500;
    }

    /* 旧的下拉列表样式 - 保留兼容 */
    .pan-type-dropdown {
        display: none;
    }

    /* 移动端适配 */
    @media screen and (max-width: 768px) {
        .pan-type-tabs {
            display: none;
        }

        .pan-type-select-wrapper {
            display: flex;
        }

        .pan-type-header .search-result-close {
            display: inline-flex;
        }

        .desktop-close {
            display: none;
        }

        /* 隐藏右侧信息卡片模块 */
        .info-section {
            display: none;
        }
    }
    
    .search-result-title {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 18px;
        font-weight: 700;
        color: var(--theme-text);
    }

    .search-result-title-icon {
        color: var(--theme-primary);
    }

    .search-result-count {
        font-size: 12px;
        color: var(--theme-text-secondary);
    }

    .search-result-close {
        cursor: pointer;
        color: var(--theme-text-secondary);
        font-size: 14px;
        padding: 4px 8px;
        border-radius: 4px;
        transition: all 0.2s ease;
    }

    .search-result-close:hover {
        background: var(--theme-background);
        color: var(--theme-text);
    }

    .search-result-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .search-result-item {
        display: flex;
        align-items: flex-start;
        gap: 16px;
        padding: 16px;
        background: var(--theme-surface);
        border-radius: 12px;
        border: 1px solid var(--theme-border);
        transition: all 0.25s ease;
        cursor: pointer;
        text-decoration: none;
        color: inherit;
    }

    .search-result-item:hover {
        border-color: var(--theme-primary);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    }

    .search-result-cover {
        width: 100px;
        height: 130px;
        border-radius: 10px;
        overflow: hidden;
        flex-shrink: 0;
        background: var(--theme-background);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--theme-text-secondary);
        font-size: 12px;
    }

    .search-result-cover img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .search-result-info {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .search-result-name {
        font-size: 15px;
        font-weight: 700;
        color: var(--theme-text);
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .search-result-desc {
        font-size: 13px;
        color: var(--theme-text-secondary);
        line-height: 1.6;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .search-result-meta {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .search-result-tag {
        display: inline-flex;
        align-items: center;
        gap: 3px;
        padding: 3px 9px;
        border-radius: 14px;
        font-size: 11px;
        white-space: nowrap;
    }
    
    .search-result-tag.type {
        background: var(--theme-primary);
        color: #fff;
    }

    .search-result-tag.source {
        background: var(--theme-background);
        color: var(--theme-text-secondary);
        border: 1px solid var(--theme-border);
    }

    .search-result-tag.time {
        background: var(--theme-card);
        color: var(--theme-text);
    }
    
    .search-result-actions {
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: flex-end;
    }
    
    .search-result-btn {
        padding: 5px 16px;
        border-radius: 18px;
        font-size: 12px;
        cursor: pointer;
        transition: all 0.2s ease;
        text-align: center;
        min-width: 70px;
    }
    
    .search-result-btn.valid {
        background: var(--theme-card);
        color: var(--theme-text);
        border: 1px solid var(--theme-border);
    }

    .search-result-btn.detail {
        background: var(--theme-background);
        color: var(--theme-text-secondary);
        border: none;
    }

    .search-result-btn.get {
        background: var(--theme-primary-gradient);
        color: #fff;
        border: none;
        font-weight: 600;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .search-result-loading,
    .search-result-empty {
        text-align: center;
        padding: 40px 20px;
        color: var(--theme-text-secondary);
        font-size: 14px;
    }

    .search-result-loading {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .search-result-loading i {
        animation: spin 1s linear infinite;
        font-size: 32px;
        color: var(--theme-primary);
    }

    .search-result-loading .loading-text {
        position: relative;
    }

    .search-result-loading .loading-text::after {
        content: '';
        animation: loadingDots 1.5s steps(4, end) infinite;
    }

    @keyframes loadingDots {
        0% { content: ''; }
        25% { content: '.'; }
        50% { content: '..'; }
        75% { content: '...'; }
        100% { content: ''; }
    }

    .search-result-loading .loading-pulse {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: var(--theme-primary-gradient);
        opacity: 0.3;
        animation: pulse 1.5s ease-in-out infinite;
        position: absolute;
    }

    .search-result-loading .loading-pulse:nth-child(2) {
        animation-delay: 0.5s;
    }

    .search-result-loading .loading-pulse:nth-child(3) {
        animation-delay: 1s;
    }

    @keyframes pulse {
        0% {
            transform: scale(0.8);
            opacity: 0.5;
        }
        50% {
            transform: scale(1.2);
            opacity: 0.2;
        }
        100% {
            transform: scale(0.8);
            opacity: 0.5;
        }
    }

    .search-result-loading .loading-wrapper {
        position: relative;
        width: 60px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .search-result-loading .loading-wrapper i {
        position: relative;
        z-index: 1;
    }

    /* 第三方热播榜区域 */
    .ranking-section {
        margin-top: 16px;
    }
    
    .ranking-header {
        margin-bottom: 12px;
    }
    
    .ranking-title {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 18px;
        font-weight: 700;
        color: var(--theme-text);
        margin-bottom: 4px;
    }

    .ranking-title-icon {
        color: var(--theme-primary);
    }

    .ranking-subtitle {
        font-size: 12px;
        color: var(--theme-text-secondary);
    }

    /* Tab 切换 */
    .tab-list {
        display: flex;
        gap: 4px;
        background: var(--theme-surface);
        border-radius: 8px;
        padding: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        margin-bottom: 8px;
        transition: background-color 0.3s ease;
    }

    .tab-item {
        padding: 4px 12px;
        font-size: 12px;
        color: var(--theme-text-secondary);
        cursor: pointer;
        border-radius: 12px;
        transition: all 0.2s ease;
        border: none;
        background: transparent;
    }

    .tab-item.active {
        background: var(--theme-primary-gradient);
        color: #fff;
    }

    .tab-item:hover:not(.active) {
        background: var(--theme-background);
        color: var(--theme-text);
    }
    
    .tab-refresh {
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 3px;
        font-size: 11px;
        color: #999;
        cursor: pointer;
        padding: 3px 8px;
        border-radius: 10px;
        transition: all 0.2s ease;
    }
    
    .tab-refresh:hover {
        background: var(--theme-background);
        color: var(--theme-text);
    }

    /* 三列卡片网格 */
    .ranking-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .ranking-card {
        background: var(--theme-surface);
        border-radius: 12px;
        padding: 14px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        transition: background-color 0.3s ease;
    }

    .ranking-card-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 10px;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--theme-border);
    }
    
    .ranking-card-title-group {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .ranking-card-icon {
        width: 24px;
        height: 24px;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
    }
    
    .ranking-icon-hot {
        background: rgba(255, 107, 107, 0.1);
        color: var(--theme-primary);
    }
    
    .ranking-icon-new {
        background: rgba(255, 142, 83, 0.1);
        color: var(--theme-primary-light);
    }
    
    .ranking-icon-good {
        background: rgba(255, 169, 64, 0.1);
        color: #ffa940;
    }
    
    .ranking-card-name {
        font-size: 13px;
        font-weight: 600;
        color: var(--theme-text);
    }

    .ranking-card-date {
        font-size: 11px;
        color: var(--theme-text-secondary);
        margin-left: 8px;
    }

    .ranking-card-more {
        font-size: 11px;
        color: var(--theme-text-secondary);
        cursor: pointer;
        text-decoration: none;
        transition: color 0.2s ease;
    }
    
    .ranking-card-more:hover {
        color: var(--theme-primary);
    }
    
    /* 带封面的列表项 */
    .ranking-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .ranking-item {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 6px;
        border-radius: 8px;
        transition: all 0.2s ease;
        cursor: pointer;
        text-decoration: none;
    }
    
    .ranking-item:hover {
        background: var(--theme-background);
    }

    .ranking-rank {
        width: 22px;
        height: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        font-size: 12px;
        font-weight: 700;
        color: var(--theme-text-secondary);
        background: var(--theme-background);
        flex-shrink: 0;
    }
    
    .ranking-rank.top1 {
        background: var(--theme-primary-gradient);
        color: #fff;
    }
    .ranking-rank.top2 {
        background: var(--theme-secondary-gradient);
        color: #fff;
    }
    .ranking-rank.top3 {
        background: var(--theme-tertiary-gradient);
        color: #fff;
    }
    
    .ranking-cover {
        width: 40px;
        height: 54px;
        border-radius: 6px;
        overflow: hidden;
        background: var(--theme-border);
        flex-shrink: 0;
    }

    .ranking-cover img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .ranking-info {
        flex: 1;
        min-width: 0;
    }

    .ranking-item-title {
        font-size: 13px;
        font-weight: 500;
        color: var(--theme-text);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        margin-bottom: 2px;
    }
    
    .ranking-meta {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 10px;
        color: var(--theme-text-secondary);
    }

    .ranking-meta span {
        white-space: nowrap;
    }

    .ranking-score {
        margin-left: auto;
        font-size: 11px;
        color: var(--theme-text-secondary);
        flex-shrink: 0;
    }
    
    .ranking-item:hover .ranking-item-title {
        color: var(--theme-primary);
    }

    @media (max-width: 1024px) {
        .home-container {
            width: 100%;
            padding: 16px;
        }
        .home-main {
            flex-direction: column;
        }
        .info-section {
            width: 100%;
        }
        .ranking-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 768px) {
        .search-section {
            padding: 16px;
        }
        .search-title {
            font-size: 18px;
            margin-bottom: 4px;
        }
        .search-subtitle {
            font-size: 11px;
        }
        .search-input-box input {
            height: 40px;
            font-size: 13px;
        }
        .search-btn {
            height: 34px;
            padding: 0 16px;
            font-size: 12px;
        }
        .input-search-icon {
            height: 40px;
            width: 32px;
        }
        .hot-keyword {
            padding: 4px 10px;
            font-size: 11px;
        }
        .search-tips {
            font-size: 10px;
        }
        .tmdb-title-cn {
            font-size: 12px;
        }
        .tmdb-title-en {
            font-size: 10px;
        }
        .tmdb-year {
            font-size: 10px;
        }
        .tmdb-overview {
            font-size: 10px;
        }
        .stats-grid {
            gap: 10px;
        }
        .stat-value {
            font-size: 16px;
        }
        /* 手机端：榜单卡片堆叠显示，每个卡片内部是网格 */
        .ranking-grid {
            grid-template-columns: 1fr;
            gap: 12px;
        }
        .ranking-card {
            padding: 10px;
        }
        .ranking-card-header {
            padding-bottom: 8px;
            margin-bottom: 8px;
        }
        .ranking-card-icon {
            width: 20px;
            height: 20px;
            font-size: 11px;
        }
        .ranking-card-name {
            font-size: 13px;
        }
        .ranking-card-date {
            font-size: 10px;
        }
        .ranking-card-more {
            font-size: 10px;
        }
        /* 列表项改为紧凑卡片 */
        .ranking-list {
            gap: 4px;
        }
        .ranking-item {
            padding: 4px;
            gap: 4px;
        }
        .ranking-rank {
            width: 16px;
            height: 16px;
            font-size: 10px;
            border-radius: 4px;
        }
        .ranking-cover {
            width: 28px;
            height: 38px;
            border-radius: 3px;
        }
        .ranking-info {
            min-width: 0;
        }
        .ranking-title {
            font-size: 10px;
            -webkit-line-clamp: 1;
            line-clamp: 1;
        }
        .ranking-meta {
            font-size: 9px;
        }
        
        /* 隐藏第三方热播榜标题和副标题 */
        .ranking-section .ranking-title,
        .ranking-section .ranking-subtitle {
            display: none !important;
        }
        
        /* 手机端卡片网格样式 */
        .ranking-grid-mobile {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
            padding: 4px;
        }
        
        .ranking-card-mobile {
            display: flex;
            flex-direction: column;
            text-decoration: none;
            color: inherit;
        }
        
        .ranking-card-cover {
            position: relative;
            width: 100%;
            aspect-ratio: 3/4;
            border-radius: 6px;
            overflow: hidden;
            background: #f0f0f0;
        }
        
        .ranking-card-cover img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .ranking-card-rank {
            position: absolute;
            top: 4px;
            left: 4px;
            padding: 2px 6px;
            font-size: 10px;
            font-weight: 700;
            color: #fff;
            background: rgba(0,0,0,0.5);
            border-radius: 4px;
            z-index: 1;
        }
        
        .ranking-card-rank.top1 {
            background: var(--theme-primary-gradient);
        }
        
        .ranking-card-rank.top2 {
            background: linear-gradient(135deg, #ff8e53 0%, #ffa940 100%);
        }
        
        .ranking-card-rank.top3 {
            background: linear-gradient(135deg, #ffa940 0%, #ffc53d 100%);
        }
        
        .ranking-card-title {
            margin-top: 6px;
            font-size: 12px;
            font-weight: 500;
            color: #333;
            line-height: 1.4;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            text-align: center;
        }
        
        .tab-list {
            overflow-x: auto;
            flex-wrap: nowrap;
            padding: 6px;
            gap: 3px;
        }
        
        .tab-item {
            padding: 3px 10px;
            font-size: 11px;
            border-radius: 10px;
            white-space: nowrap;
        }
        
        .tab-refresh {
            font-size: 10px;
            padding: 2px 6px;
        }
        
        /* 搜索结果手机端适配 */
        .search-result-header {
            margin-bottom: 8px;
            gap: 8px;
        }
        .search-result-title {
            font-size: 14px;
        }
        .search-result-title-icon {
            font-size: 14px;
        }
        .search-result-count {
            font-size: 11px;
        }
        .search-result-close {
            font-size: 12px;
        }
        .pan-type-select {
            padding: 4px 20px 4px 10px;
            font-size: 12px;
            min-width: 80px;
        }
        .pan-type-label {
            padding: 4px 6px 4px 10px;
            font-size: 12px;
        }
        .search-result-item {
            padding: 12px;
            gap: 10px;
        }
        .search-result-cover {
            width: 70px;
            height: 90px;
        }
        .search-result-info {
            gap: 6px;
        }
        .search-result-name {
            font-size: 13px;
            line-height: 1.3;
        }
        .search-result-desc {
            font-size: 11px;
            line-height: 1.4;
        }
        .search-result-tag {
            padding: 2px 6px;
            font-size: 10px;
        }
        .search-result-actions {
            gap: 6px;
        }
        .search-result-btn {
            padding: 4px 10px;
            font-size: 11px;
            min-width: 60px;
            border-radius: 14px;
        }
        .search-result-loading,
        .search-result-empty {
            padding: 30px 16px;
            font-size: 12px;
        }
        .search-result-loading i {
            font-size: 24px;
        }
    }
    
    /* 手机端导航抽屉 - 紧凑样式 */
    .nav-drawer .el-dialog__header {
        display: none;
    }
    .nav-drawer .el-dialog__body {
        padding: 0;
    }
    .nav-drawer-content {
        background: var(--theme-surface);
    }
    .nav-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        border-bottom: 1px solid var(--theme-border);
    }
    .nav-drawer-title {
        font-size: 14px;
        font-weight: 600;
        color: var(--theme-text);
    }
    .nav-drawer-close {
        font-size: 16px;
        color: var(--theme-text-secondary);
        cursor: pointer;
        padding: 4px;
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        transition: all 0.2s ease;
    }
    .nav-drawer-close:hover {
        background: var(--theme-background);
        color: var(--theme-text);
    }
    .nav-drawer-menu {
        padding: 8px;
    }
    .nav-drawer-item {
        display: flex;
        align-items: center;
        padding: 10px 12px;
        border-radius: 8px;
        color: var(--theme-text);
        text-decoration: none;
        transition: all 0.2s ease;
        margin-bottom: 4px;
        font-size: 13px;
    }
    .nav-drawer-item:last-child {
        margin-bottom: 0;
    }
    .nav-drawer-item:hover {
        background: var(--theme-background);
    }
    .nav-drawer-item.active {
        background: var(--theme-primary-gradient);
        color: #fff;
    }

/* ===== 补充：弹窗 + 结果项 + 排行榜（适配用） ===== */
.modal-mask{position:fixed;inset:0;z-index:500;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(15,15,26,.45);backdrop-filter:blur(4px)}
.modal{position:relative;width:100%;max-width:400px;max-height:90vh;overflow-y:auto;background:#fff;border-radius:16px;padding:24px;box-shadow:0 20px 60px rgba(0,0,0,.2);text-align:center;color:#2c3e50}
.modal-close{position:absolute;top:10px;right:14px;border:none;background:none;font-size:24px;line-height:1;color:#999;cursor:pointer}
.modal-close:hover{color:#333}
.modal-loading{padding:40px 0}
.spinner{width:26px;height:26px;border-radius:50%;border:2.5px solid #e5e6eb;border-top-color:#4a90e2;margin:0 auto;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.modal .title{font-size:15px;font-weight:700;margin-bottom:6px}
.modal .tips{font-size:12.5px;color:#7a8b9c;margin-bottom:14px}
.qrcode{width:168px;height:168px;margin:0 auto 14px;padding:10px;background:#fff;border:1px solid #eef2f6;border-radius:10px;display:grid;place-items:center}
.qrcode svg{width:100%;height:100%}
.modal-item{font-size:13px;color:#5a6c7d;margin-bottom:10px;word-break:break-all;padding:0 4px}
.modal-link-row{display:flex;gap:8px;margin-bottom:14px}
.modal-link-row input{flex:1;min-width:0;padding:9px 12px;border:1px solid #e1e8ed;border-radius:8px;background:#f7fafc;font-size:12px;font-family:ui-monospace,Consolas,monospace;color:#5a6c7d}
.modal-btn{padding:0 14px;border:1px solid #e1e8ed;border-radius:8px;background:#fff;font-size:13px;cursor:pointer;color:#5a6c7d}
.modal-btn:hover{border-color:#4a90e2;color:#4a90e2}
.modal-actions{display:flex;gap:10px}
.modal-btn-primary{flex:1;padding:11px;border:none;border-radius:9px;background:linear-gradient(135deg,#4a90e2,#5fa3f0);color:#fff;font-size:14px;font-weight:600;cursor:pointer}
.modal-btn-primary:hover{opacity:.92}
.modal-error{padding:16px;background:#fef0f0;border:1px solid #fde2e2;border-radius:10px;color:#e74c3c;font-size:13.5px}

.pan-type-tag{display:inline-flex;align-items:center;padding:2px 9px;border-radius:999px;background:#eef5ff;color:#4a90e2;font-size:11.5px;font-weight:600}
.pwd-tag{display:inline-flex;align-items:center;padding:2px 9px;border-radius:999px;background:#fff5e6;color:#e69138;font-size:11.5px;font-weight:600;font-family:ui-monospace,Consolas,monospace}
.get-resource-btn{padding:9px 20px;border:none;border-radius:9px;background:linear-gradient(135deg,#4a90e2,#5fa3f0);color:#fff;font-size:13.5px;font-weight:600;cursor:pointer;white-space:nowrap;transition:transform .15s ease,box-shadow .2s ease}
.get-resource-btn:hover{transform:translateY(-1px);box-shadow:0 6px 16px rgba(74,144,226,.35)}
.get-resource-btn:disabled{opacity:.6;transform:none;cursor:default}

.search-result-empty{padding:56px 20px;text-align:center;color:#8a9bad}
.search-result-empty .empty-icon{font-size:38px;margin-bottom:10px;opacity:.6}
.search-result-empty .empty-title{font-size:15px;font-weight:700;color:#5a6c7d;margin-bottom:6px}
.search-result-empty .empty-desc{font-size:13px}

.ranking-item{display:flex;align-items:center;gap:10px;padding:8px 6px;border-radius:8px;cursor:pointer;transition:background-color .15s ease}
.ranking-item:hover{background:var(--theme-card)}
.ranking-no{width:20px;height:20px;border-radius:6px;display:grid;place-items:center;font-size:11px;font-weight:800;background:#eef2f6;color:#8a9bad;flex:none}
.ranking-no.top{background:linear-gradient(135deg,#ff8a3d,#ff5c5c);color:#fff}
.ranking-cover{width:34px;height:46px;border-radius:5px;object-fit:cover;flex:none;background:#eef2f6}
.ranking-info{flex:1;min-width:0}
.ranking-item-title{font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#2c3e50}
.ranking-meta{font-size:11px;color:#8a9bad;margin-top:2px}
.ranking-loading,.ranking-empty{padding:20px;text-align:center;font-size:12.5px;color:#a0aec0}

[data-theme="dark"] .modal,[data-theme="dark"] .modal .title,[data-theme="dark"] .modal .tips{background:#1a1a2e;color:#e2e8f0}
[data-theme="dark"] .modal-link-row input{background:#252538;border-color:#33334d;color:#a0aec0}
[data-theme="dark"] .modal-btn{background:#252538;border-color:#33334d;color:#a0aec0}
[data-theme="dark"] .pan-type-tag{background:#1e2a44;color:#7eb8f7}
[data-theme="dark"] .ranking-item-title{color:#e2e8f0}
[data-theme="dark"] .ranking-no{background:#252538;color:#8a9bad}

/* ============================================================
   有效性标签（原样取自 520so.cc）
   有效=绿色  失效=红色  检测中=灰色  胶囊形状
   ============================================================ */
.link-state-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .04em;
    border: 1px solid transparent;
    white-space: nowrap;
}
.link-state-loading {
    color: #8b8f98;
    background: rgba(139, 143, 152, .10);
    border-color: rgba(139, 143, 152, .18);
}
.link-state-good {
    color: #17a34a;
    background: rgba(23, 163, 74, .10);
    border-color: rgba(23, 163, 74, .20);
}
.link-state-bad {
    color: #e5484d;
    background: rgba(229, 72, 77, .10);
    border-color: rgba(229, 72, 77, .20);
}

/* 网盘类型标签（与结果项同一行） */
.search-result-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 9px;
    border-radius: 14px;
    font-size: 11px;
    white-space: nowrap;
}
.search-result-tag.type {
    color: #4a90e2;
    background: rgba(74, 144, 226, .10);
    border: 1px solid rgba(74, 144, 226, .20);
    font-weight: 600;
}
.search-result-tag.source {
    color: #8b8f98;
    background: rgba(139, 143, 152, .10);
    border: 1px solid rgba(139, 143, 152, .18);
}

/* 深色主题适配 */
[data-theme="dark"] .link-state-good  { color:#3fd06a; background:rgba(63,208,106,.14); border-color:rgba(63,208,106,.24); }
[data-theme="dark"] .link-state-bad   { color:#ff6b70; background:rgba(255,107,112,.14); border-color:rgba(255,107,112,.24); }
[data-theme="dark"] .link-state-loading{color:#9aa0aa; background:rgba(154,160,170,.12); border-color:rgba(154,160,170,.2); }
