/* ==========================================================================
   前台首页 xun.css —— 1:1 移植 xunsoso.com 首页结构与样式
   说明：样式选择器保持 #app > .top-nav 结构，模板中已提供 <div id="app"> 容器。
   本文件应在 theme.css / index.css 之后加载，以覆盖旧版样式。
   ========================================================================== */

/* 隐藏原导航栏 */
    .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;
        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: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease, filter 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: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease, filter 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: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease, filter 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: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease, filter 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 .domain-tester {
        position: relative;
        z-index: 1001;
    }
    #app > .top-nav .domain-tester-btn {
        display: flex;
        align-items: center;
        gap: 5px;
        padding: 4px 10px;
        border-radius: 16px;
        cursor: pointer;
        transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
        background: var(--theme-surface);
        color: var(--theme-text-secondary);
        border: 1px solid var(--theme-border);
        font-size: 12px;
        white-space: nowrap;
    }
    #app > .top-nav .domain-tester-btn:hover {
        background: var(--theme-background);
        color: var(--theme-primary);
        border-color: var(--theme-primary);
    }
    #app > .top-nav .domain-tester-dot {
        width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
        background: #999;
    }
    #app > .top-nav .domain-tester-dot.testing { background: #f59e0b; animation: domain-pulse 1s infinite; }
    #app > .top-nav .domain-tester-dot.green { background: #22c55e; }
    #app > .top-nav .domain-tester-dot.red { background: #ef4444; }
    @keyframes domain-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
    #app > .top-nav .domain-tester-latency { font-weight: 600; font-variant-numeric: tabular-nums; }
    #app > .top-nav .domain-tester-latency.testing { color: #999; }
    #app > .top-nav .domain-tester-latency.green { color: #22c55e; }
    #app > .top-nav .domain-tester-latency.blue { color: #3b82f6; }
    #app > .top-nav .domain-tester-latency.orange { color: #f59e0b; }
    #app > .top-nav .domain-tester-latency.red { color: #ef4444; }
    #app > .top-nav .domain-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: 260px;
        max-width: 400px;
        z-index: 9999;
        border: 1px solid var(--theme-border);
    }
    #app > .top-nav .domain-dropdown-tip {
        font-size: 12px;
        color: var(--theme-primary);
        font-weight: 600;
        padding: 6px 10px 8px;
        border-bottom: 1px solid var(--theme-border);
        margin-bottom: 4px;
        text-align: center;
    }
    #app > .top-nav .domain-option {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 10px;
        border-radius: 6px;
        cursor: pointer;
        transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
        color: var(--theme-text);
    }
    #app > .top-nav .domain-option:hover { background: var(--theme-background); }
    #app > .top-nav .domain-option.active { background: var(--theme-primary-gradient); color: #fff; }
    #app > .top-nav .domain-option-name { flex: 1; font-size: 12px; word-break: break-all; }
    #app > .top-nav .domain-option-latency { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; flex-shrink: 0; }
    #app > .top-nav .domain-option-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; background: #999; }
    #app > .top-nav .domain-option-dot.testing { background: #f59e0b; animation: domain-pulse 1s infinite; }
    #app > .top-nav .domain-option-dot.green { background: #22c55e; }
    #app > .top-nav .domain-option-dot.red { background: #ef4444; }

    /* 主题切换器 */
    #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: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease, filter 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: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease, filter 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;
        }
    }

/* 首页新样式 - 参考 msmy.cn */
    
    .home-container {
        width: 1080px;
        margin: 0 auto;
        padding: 16px 16px 24px;
    }

    /* 通知轮播 */
    .notice-bar {
        background: var(--theme-primary-gradient);
        border-radius: 12px;
        margin-bottom: 16px;
        padding: 0 18px;
        box-shadow: 0 4px 16px rgba(255, 107, 107, 0.25);
        transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    .notice-bar::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.12);
        pointer-events: none;
    }
    .notice-bar-inner {
        display: flex;
        align-items: center;
        height: 44px;
        gap: 12px;
        position: relative;
        z-index: 1;
    }
    .notice-icon {
        flex-shrink: 0;
        color: #fff;
        display: flex;
        align-items: center;
        filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
        animation: notice-bell 2s ease-in-out infinite;
    }
    @keyframes notice-bell {
        0%, 80%, 100% { transform: rotate(0); }
        5% { transform: rotate(15deg); }
        10% { transform: rotate(-13deg); }
        15% { transform: rotate(10deg); }
        20% { transform: rotate(-8deg); }
        25% { transform: rotate(0); }
    }
    .notice-swiper {
        flex: 1;
        height: 28px;
        overflow: hidden;
        position: relative;
    }
    .notice-swiper-wrapper {
        transition: transform 0.4s ease;
    }
    .notice-item {
        height: 28px;
        line-height: 28px;
        font-size: 14px;
        font-weight: 500;
        color: #fff;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-shadow: 0 1px 2px rgba(0,0,0,0.1);
        position: relative;
    }
    .notice-item.marquee {
        overflow: visible;
        text-overflow: unset;
        animation: notice-marquee var(--marquee-duration, 8s) linear infinite;
    }
    @keyframes notice-marquee {
        0%, 10% { transform: translateX(0); }
        90%, 100% { transform: translateX(-100%); }
    }

    /* 公告弹出提示栏 */
    .notice-popup {
        position: fixed;
        top: 20px;
        left: 50%;
        transform: translateX(-50%) translateY(-20px);
        z-index: 9999;
        min-width: 320px;
        max-width: 560px;
        background: var(--theme-primary-gradient);
        border-radius: 16px;
        padding: 18px 24px;
        box-shadow: 0 8px 32px color-mix(in srgb, var(--theme-primary) 35%, transparent), 0 2px 8px rgba(0,0,0,0.1);
        display: flex;
        align-items: flex-start;
        gap: 14px;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
        pointer-events: none;
    }
    .notice-popup.show {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
        pointer-events: auto;
    }
    .notice-popup.hide {
        opacity: 0;
        visibility: hidden;
        transform: translateX(-50%) translateY(-20px);
    }
    .notice-popup-icon {
        flex-shrink: 0;
        width: 36px;
        height: 36px;
        background: rgba(255,255,255,0.2);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        animation: notice-popup-pulse 2s ease-in-out infinite;
    }
    .notice-popup-icon svg {
        color: #fff;
    }
    @keyframes notice-popup-pulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.08); }
    }
    .notice-popup-content {
        flex: 1;
        color: #fff;
        font-size: 15px;
        line-height: 1.6;
        text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    }
    .notice-popup-close {
        flex-shrink: 0;
        width: 24px;
        height: 24px;
        background: rgba(255,255,255,0.2);
        border: none;
        border-radius: 50%;
        color: #fff;
        font-size: 14px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s;
        line-height: 1;
    }
    .notice-popup-close:hover {
        background: rgba(255,255,255,0.35);
    }
    .notice-popup-progress {
        position: absolute;
        bottom: 0;
        left: 16px;
        right: 16px;
        height: 3px;
        background: rgba(255,255,255,0.2);
        border-radius: 0 0 16px 16px;
        overflow: hidden;
    }
    .notice-popup-progress-bar {
        height: 100%;
        background: rgba(255,255,255,0.7);
        border-radius: 0 0 16px 16px;
        width: 100%;
        transform-origin: left;
        animation: notice-popup-countdown 4s linear forwards;
    }
    @keyframes notice-popup-countdown {
        from { transform: scaleX(1); }
        to { transform: scaleX(0); }
    }
    @media (max-width: 768px) {
        .notice-popup {
            min-width: 0;
            width: calc(100% - 32px);
            max-width: calc(100% - 32px);
            padding: 14px 16px;
            top: 12px;
        }
        .notice-popup-content {
            font-size: 13px;
        }
    }

    /* TAC 验证码容器 */
    #captcha-box > * {
        pointer-events: auto;
    }
    @media (max-width: 480px) {
        #captcha-box {
            align-items: flex-start;
            padding-top: 10vh;
        }
    }

    /* 资源分享弹窗样式 */
    .el-overlay .share-dialog {
        background: var(--theme-surface) !important;
        border-radius: 12px !important;
        overflow: hidden;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
    }
    .el-overlay-dialog .share-dialog {
        background: var(--theme-surface) !important;
        border-radius: 12px !important;
        overflow: hidden;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
    }
    .share-dialog.el-dialog {
        background: var(--theme-surface) !important;
        border-radius: 12px !important;
        overflow: hidden;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
    }
    .share-dialog .el-dialog__header {
        padding: 16px 20px;
        margin: 0;
        border-bottom: 1px solid var(--theme-border);
        background: var(--theme-surface);
        border-radius: 12px 12px 0 0;
    }
    .share-dialog .el-dialog__header .el-dialog__title {
        font-size: 16px;
        font-weight: 600;
        color: var(--theme-text);
    }
    .share-dialog .el-dialog__headerbtn {
        z-index: 10;
    }
    .share-dialog .el-dialog__headerbtn .el-dialog__close {
        color: var(--theme-text);
    }
    .share-dialog .el-dialog__body {
        padding: 0;
        background: var(--theme-surface) !important;
    }
    .share-form {
        padding: 20px;
    }
    .share-form-item {
        margin-bottom: 16px;
    }
    .share-label {
        display: block;
        font-size: 13px;
        font-weight: 500;
        color: var(--theme-text);
        margin-bottom: 6px;
    }
    .share-input {
        width: 100%;
        height: 40px;
        padding: 0 12px;
        border: 1px solid var(--theme-border);
        border-radius: 8px;
        font-size: 13px;
        color: var(--theme-text);
        background: var(--theme-background);
        outline: none;
        transition: border-color 0.2s ease;
        box-sizing: border-box;
    }
    .share-input:focus {
        border-color: var(--theme-primary);
    }
    .share-input::placeholder {
        color: var(--theme-text-secondary);
    }
    .share-textarea {
        width: 100%;
        padding: 12px;
        border: 1px solid var(--theme-border);
        border-radius: 8px;
        font-size: 13px;
        color: var(--theme-text);
        background: var(--theme-background);
        outline: none;
        resize: vertical;
        min-height: 160px;
        transition: border-color 0.2s ease;
        box-sizing: border-box;
        line-height: 1.6;
    }
    .share-textarea:focus {
        border-color: var(--theme-primary);
    }
    .share-textarea::placeholder {
        color: var(--theme-text-secondary);
    }
    .share-tip {
        font-size: 12px;
        color: var(--theme-text-secondary);
        margin-bottom: 16px;
    }
    .share-tip-inline {
        font-size: 12px;
        color: var(--theme-text-secondary, #999);
        margin-top: 4px;
    }
    .share-actions {
        display: flex;
        justify-content: flex-end;
        gap: 10px;
    }
    .share-btn-secondary {
        padding: 8px 20px;
        border: 1px solid var(--theme-border);
        border-radius: 8px;
        background: var(--theme-surface);
        color: var(--theme-text-secondary);
        font-size: 13px;
        cursor: pointer;
        transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
    }
    .share-btn-secondary:hover {
        border-color: var(--theme-primary);
        color: var(--theme-primary);
    }
    .share-btn-primary {
        padding: 8px 24px;
        border: none;
        border-radius: 8px;
        background: var(--theme-primary-gradient);
        color: #fff;
        font-size: 13px;
        font-weight: 500;
        cursor: pointer;
        transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
    }
    .share-btn-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(255, 107, 107, 0.35);
    }
    .share-btn-primary:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }
    @media (max-width: 480px) {
        .share-dialog {
            width: 92vw !important;
        }
        .share-form {
            padding: 16px;
        }
    }

    /* 资源访问风险告知弹窗样式 */
    .el-overlay .risk-dialog,
    .el-overlay-dialog .risk-dialog,
    .risk-dialog.el-dialog {
        background: var(--theme-surface) !important;
        border-radius: 16px !important;
        overflow: hidden;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15) !important;
    }
    .risk-dialog .el-dialog__header {
        display: none;
    }
    .risk-dialog .el-dialog__body {
        padding: 0 !important;
        background: var(--theme-surface) !important;
        max-height: 62vh;
        overflow-y: auto;
    }
    .risk-body {
        padding: 28px 28px 16px;
    }
    .risk-title {
        font-size: 20px;
        font-weight: 700;
        color: var(--theme-text);
        margin-bottom: 8px;
        line-height: 1.3;
    }
    .risk-subtitle {
        font-size: 13px;
        color: var(--theme-text-secondary, #888);
        line-height: 1.6;
        margin-bottom: 18px;
    }
    .risk-card {
        background: var(--theme-other_background, #f5f6fa);
        border-radius: 12px;
        padding: 18px 20px;
        margin-bottom: 14px;
    }
    .risk-card-expand {
        margin-top: 4px;
    }
    .risk-intro {
        font-size: 13px;
        line-height: 1.75;
        margin-bottom: 14px;
        color: var(--theme-text-secondary, #555);
    }
    .risk-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .risk-list li {
        position: relative;
        padding-left: 20px;
        font-size: 13px;
        line-height: 1.75;
        color: var(--theme-text-secondary, #555);
        margin-bottom: 8px;
    }
    .risk-list li:last-child {
        margin-bottom: 0;
    }
    .risk-list li::before {
        content: '';
        position: absolute;
        left: 4px;
        top: 9px;
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--theme-primary);
        flex-shrink: 0;
    }
    .risk-section {
        margin-bottom: 12px;
    }
    .risk-h3 {
        font-size: 15px;
        font-weight: 600;
        color: var(--theme-text);
        margin: 0 0 10px 0;
    }
    .risk-h4 {
        font-size: 13px;
        font-weight: 600;
        color: var(--theme-primary);
        margin: 12px 0 6px 0;
    }
    .risk-p {
        font-size: 13px;
        color: var(--theme-text-secondary, #555);
        line-height: 1.75;
        margin: 0 0 8px 0;
        text-align: justify;
    }
    .risk-p:last-child {
        margin-bottom: 0;
    }
    .risk-toggle {
        text-align: center;
        font-size: 13px;
        color: var(--theme-primary, #8b5cf6);
        cursor: pointer;
        padding: 10px 0 2px;
        user-select: none;
        margin-top: 4px;
    }
    .risk-toggle i {
        margin-left: 4px;
    }
    .risk-dialog .el-dialog__footer {
        padding: 14px 24px 18px !important;
        border-top: 1px solid var(--theme-border, #eee);
        background: var(--theme-surface) !important;
        border-radius: 0 0 16px 16px;
    }
    .risk-actions {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .risk-checkbox-label {
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        user-select: none;
        flex: 1;
    }
    .risk-checkbox-label span {
        font-size: 13px;
        color: var(--theme-text-secondary, #666);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .risk-checkbox-label .risk-link {
        color: var(--theme-primary);
        cursor: pointer;
        white-space: nowrap;
    }
    .risk-checkbox-label .risk-link:hover {
        text-decoration: underline;
    }
    .risk-checkbox {
        width: 16px;
        height: 16px;
        cursor: pointer;
        accent-color: var(--theme-primary);
        flex-shrink: 0;
    }
    .risk-btn-primary {
        padding: 10px 28px;
        border: none;
        border-radius: 22px;
        background: var(--theme-primary-gradient);
        color: #fff;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
        white-space: nowrap;
        flex-shrink: 0;
        margin-left: 16px;
    }
    .risk-btn-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
        filter: brightness(1.05);
    }
    .risk-btn-primary.risk-btn-disabled,
    .risk-btn-primary:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
        filter: none;
    }
    @media (max-width: 480px) {
        .risk-dialog {
            width: 92vw !important;
        }
        .risk-body {
            padding: 20px 16px 12px;
        }
        .risk-title {
            font-size: 17px;
        }
        .risk-card {
            padding: 14px 16px;
            border-radius: 10px;
        }
        .risk-list li {
            font-size: 12.5px;
        }
        .risk-actions {
            flex-direction: column;
            gap: 12px;
            align-items: stretch;
        }
        .risk-checkbox-label {
            justify-content: center;
        }
        .risk-btn-primary {
            margin-left: 0;
            text-align: center;
        }
        .risk-dialog .el-dialog__footer {
            padding: 12px 16px 16px !important;
        }
    }

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

    /* 左侧搜索区域 */
    .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;
        max-width: 364px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

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

    .search-input-box {
        display: flex;
        align-items: center;
        background: var(--theme-background);
        border-radius: 10px;
        border: 2px solid transparent;
        transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease, filter 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: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease, filter 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: 8px;
        margin-bottom: 2px;
        transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
        max-height: 300px;
        overflow: hidden;
    }

    .hot-keywords.mobile-hidden {
        max-height: 0;
        opacity: 0;
        margin-top: 0;
        margin-bottom: 0;
    }

    .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: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease, filter 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-section .info-card:last-child {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .info-section .info-card:last-child .resource-missing {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .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;
    }

    .welfare-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .welfare-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 10px 4px;
        border-radius: 8px;
        background: var(--theme-background);
        transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
        text-decoration: none;
    }

    .welfare-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    .welfare-icon {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        margin-bottom: 6px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    .welfare-name {
        font-size: 12px;
        color: var(--theme-text);
        text-align: center;
        line-height: 1.3;
        word-break: break-all;
    }

    /* 手机端广而告之 - 单行横滑（默认隐藏，768px以下显示） */
    .welfare-mobile {
        display: none;
        margin-bottom: 12px;
        background: var(--theme-surface);
        border-radius: 10px;
        padding: 10px 12px;
    }
    .welfare-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 8px;
    }
    .welfare-mobile-title {
        font-size: 13px;
        font-weight: 600;
        color: var(--theme-text);
    }
    .welfare-mobile-more {
        font-size: 12px;
        color: var(--theme-text-secondary);
        text-decoration: none;
    }
    .welfare-mobile-list {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 2px;
    }
    .welfare-mobile-list::-webkit-scrollbar {
        display: none;
    }
    .welfare-mobile-item {
        display: flex;
        align-items: center;
        gap: 5px;
        padding: 5px 10px;
        border-radius: 16px;
        background: var(--theme-background);
        text-decoration: none;
        flex-shrink: 0;
        white-space: nowrap;
    }
    .welfare-mobile-icon {
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        flex-shrink: 0;
    }
    .welfare-mobile-name {
        font-size: 12px;
        color: var(--theme-text);
    }

    .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: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease, filter 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: 4px;
        background: var(--theme-surface);
        padding: 3px;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }

    .pan-type-tab {
        padding: 3px 10px;
        font-size: 12px;
        color: var(--theme-text-secondary);
        cursor: pointer;
        border-radius: 6px;
        transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease, filter 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-label {
        color: var(--theme-text-secondary);
        font-size: 12px;
        margin-right: 8px;
        margin-left: 4px;
        display: inline-flex;
        align-items: center;
    }

    /* 手机端网盘类型切换 - 默认隐藏 */
    .pan-type-mobile {
        display: none;
        align-items: center;
        flex-wrap: nowrap;
        gap: 4px;
        background: var(--theme-surface);
        padding: 3px;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .pan-type-mobile::-webkit-scrollbar {
        display: none;
    }

    .pan-type-mobile-list {
        display: flex;
        flex-wrap: nowrap;
        gap: 4px;
    }

    .pan-type-mobile-btn {
        padding: 3px 10px;
        font-size: 12px;
        color: var(--theme-text-secondary);
        cursor: pointer;
        border-radius: 6px;
        transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
        user-select: none;
        border: none;
        background: transparent;
        flex-shrink: 0;
        white-space: nowrap;
    }

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

    .pan-type-mobile-btn.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: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease, filter 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-mobile {
            display: flex;
        }

        /* 手机端隐藏网盘类型文字标题 */
        .pan-type-label {
            display: none;
        }

        .pan-type-select-wrapper {
            display: none !important;
        }

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

        /* 隐藏右侧信息卡片模块 */
        .info-section {
            display: none;
        }
        /* 手机端显示广而告之单行 */
        .welfare-mobile {
            display: block;
        }
    }

    /* 手机端浮动网盘类型栏 */
    .mobile-floating-pantype {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
        background: var(--theme-surface, #fff);
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        padding: 8px 12px;
        display: none;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        border-bottom: 1px solid var(--theme-border, #eee);
        transform: translateY(-100%);
        transition: transform 0.25s ease;
    }

    .mobile-floating-pantype.show {
        display: flex;
        transform: translateY(0);
    }

    .mobile-floating-pantype::-webkit-scrollbar {
        display: none;
    }

    .mobile-floating-pantype-list {
        display: flex;
        gap: 4px;
        width: 100%;
    }

    .mobile-floating-pantype-btn {
        padding: 5px 12px;
        font-size: 12px;
        border-radius: 14px;
        border: 1px solid var(--theme-border, #eee);
        background: var(--theme-surface, #fff);
        color: var(--theme-text-secondary, #999);
        white-space: nowrap;
        cursor: pointer;
        transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
        flex-shrink: 0;
    }

    .mobile-floating-pantype-btn.active {
        background: var(--theme-primary, #ff6b6b);
        border-color: var(--theme-primary, #ff6b6b);
        color: #fff;
        font-weight: 500;
    }

    /* 电脑端悬浮网盘类型栏 */
    .desktop-floating-pantype {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
        background: var(--theme-surface, #fff);
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        padding: 8px 0;
        display: none;
        justify-content: center;
        border-bottom: 1px solid var(--theme-border, #eee);
        transform: translateY(-100%);
        transition: transform 0.25s ease;
    }

    .desktop-floating-pantype.show {
        display: flex;
        transform: translateY(0);
    }

    .desktop-floating-pantype-inner {
        display: flex;
        align-items: center;
        gap: 4px;
        max-width: 1048px;
        width: 100%;
        padding: 0 16px;
        box-sizing: border-box;
    }

    .desktop-floating-pantype-label {
        font-size: 12px;
        color: var(--theme-text-secondary, #999);
        margin-right: 8px;
        flex-shrink: 0;
    }

    .desktop-floating-pantype-btn {
        padding: 3px 10px;
        font-size: 12px;
        border-radius: 6px;
        border: none;
        background: transparent;
        color: var(--theme-text-secondary, #999);
        white-space: nowrap;
        cursor: pointer;
        transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
        flex-shrink: 0;
    }

    .desktop-floating-pantype-btn:hover {
        color: var(--theme-primary, #ff6b6b);
    }

    .desktop-floating-pantype-btn.active {
        background: var(--theme-primary, #ff6b6b);
        color: #fff;
        font-weight: 600;
    }

    /* 失效链接样式 */
    .search-result-item.link-invalid {
        opacity: 0.5;
        background: #fef0f0;
        border-color: #fbc4c4;
        cursor: not-allowed;
    }
    .search-result-item.link-invalid:hover {
        opacity: 0.7;
        box-shadow: none;
    }
    .search-result-item.link-invalid .search-result-name {
        text-decoration: line-through;
        color: #999;
    }
    .search-result-item.link-invalid .search-result-actions {
        display: none;
    }
    
    .search-result-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 18px;
        font-weight: 700;
        color: var(--theme-text);
    }

    .search-result-title-left {
        display: flex;
        align-items: center;
        gap: 6px;
    }

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

    .search-result-count {
        font-size: 12px;
        color: var(--theme-text-secondary);
    }
    
        /* ===== 搜索结果声明 ===== */
    .search-notice {
        background: var(--theme-bg-secondary, #f5f6fa);
        border: 1px solid var(--theme-border, #e8e9ef);
        border-radius: 8px;
        padding: 10px 14px;
        font-size: 12px;
        color: var(--theme-text-secondary, #888);
        line-height: 1.8;
        margin: 8px 0 12px;
        text-align: center;
    }
    .search-notice a {
        color: var(--theme-primary, #4e6ef2);
        text-decoration: none;
        font-weight: 500;
    }
    .search-notice a:hover { text-decoration: underline; }

        /* ===== 搜索结果分页 ===== */
    .search-result-pagination { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
    .search-page-main { display: inline-flex; align-items: center; gap: 10px; }
    .search-page-btn { border: 1px solid #dcdfe6; background: #fff; color: #606266; border-radius: 8px; padding: 6px 12px; cursor: pointer; transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease, opacity .2s ease, filter .2s ease; }
    .search-page-btn:hover:not(:disabled) { border-color: #409eff; color: #409eff; }
    .search-page-btn:disabled { cursor: not-allowed; opacity: .45; }
    .search-page-info { color: #909399; font-size: 13px; min-width: 90px; text-align: center; }
    .search-page-jump { display: inline-flex; align-items: center; gap: 6px; }
    .search-page-input { width: 60px; border: 1px solid #dcdfe6; border-radius: 8px; padding: 6px 8px; font-size: 13px; text-align: center; outline: none; }
    .search-page-input:focus { border-color: #409eff; }
    @media (max-width: 768px) {
        .search-result-pagination { flex-direction: column; align-items: stretch; gap: 8px; padding: 0 6px; }
        .search-page-main { width: 100%; justify-content: space-between; gap: 8px; }
        .search-page-info { min-width: 0; flex: 1; font-size: 12px; }
        .search-page-jump { width: 100%; justify-content: center; }
        .search-page-btn { min-width: 72px; padding: 6px 10px; font-size: 12px; }
        .search-page-input { width: 58px; padding: 5px 6px; font-size: 12px; }
    }


    .search-result-close {
        cursor: pointer;
        color: var(--theme-text-secondary);
        font-size: 14px;
        padding: 4px 8px;
        border-radius: 4px;
        transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease, filter 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: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, opacity 0.25s ease, filter 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-tag.local {
        background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
        color: #fff;
        font-weight: 500;
    }

    /* 链接有效性标签（对齐 xunsoso.com） */
    .search-result-tag.valid {
        background: linear-gradient(135deg, #67c23a, #85ce61);
        color: #fff;
        font-weight: 500;
    }

    .search-result-tag.invalid {
        background: linear-gradient(135deg, #f56c6c, #f78989);
        color: #fff;
        font-weight: 500;
    }

    .search-result-tag.validating {
        background: linear-gradient(135deg, #e6a23c, #ebb563);
        color: #fff;
        font-weight: 500;
    }

    .validating-spinner {
        display: inline-block;
        width: 12px;
        height: 12px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-top-color: #fff;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
        vertical-align: middle;
        margin-right: 3px;
    }

    @keyframes spin {
        from {
            transform: rotate(0deg);
        }
        to {
            transform: rotate(360deg);
        }
    }

    @keyframes resultFadeIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .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: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease, filter 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;
    }

    /* 资源弹窗样式 */
    .el-overlay .el-dialog.resource-dialog,
    .el-overlay-dialog .resource-dialog,
    .resource-dialog {
        background: var(--theme-surface) !important;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    }
    .resource-dialog .el-dialog__header {
        padding: 16px 20px;
        margin: 0;
        border-bottom: 1px solid var(--theme-border);
        background: var(--theme-surface) !important;
    }
    .resource-dialog .el-dialog__header .el-dialog__title {
        font-size: 16px;
        font-weight: 600;
        color: var(--theme-text);
    }
    .resource-dialog .el-dialog__body {
        padding: 0;
        background: var(--theme-surface) !important;
    }
    .resource-dialog-content {
        padding: 24px;
        background: var(--theme-surface) !important;
    }
    .normal-content, .magnet-content, .error-content {
        text-align: center;
        background: var(--theme-surface);
    }
    .success-title {
        font-size: 20px;
        font-weight: bold;
        color: var(--theme-text);
        margin-bottom: 8px;
    }
    .resource-subtitle {
        font-size: 13px;
        color: var(--theme-text-secondary);
        margin-bottom: 16px;
        padding: 0 10px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .url-box {
        background: var(--theme-background);
        border-radius: 8px;
        padding: 12px 16px;
        margin-bottom: 12px;
        text-align: left;
    }
    .url-label {
        font-size: 12px;
        color: var(--theme-text-secondary);
        margin-bottom: 4px;
    }
    .url-text {
        font-size: 13px;
        color: var(--theme-primary);
        word-break: break-all;
        line-height: 1.5;
    }
    .tip-text {
        font-size: 11px;
        color: var(--theme-text-secondary);
        margin-bottom: 20px;
    }
    .dialog-actions {
        display: flex;
        gap: 12px;
        justify-content: center;
        flex-wrap: wrap;
    }
    .dialog-actions .btn-primary {
        padding: 10px 24px;
        background: var(--theme-primary);
        color: #fff;
        border: none;
        border-radius: 6px;
        font-size: 14px;
        cursor: pointer;
        transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
    }
    .dialog-actions .btn-primary:hover {
        background: var(--theme-primary);
        filter: brightness(1.1);
    }
    .dialog-actions .btn-secondary {
        padding: 10px 24px;
        background: var(--theme-surface);
        color: var(--theme-text);
        border: 1px solid var(--theme-border);
        border-radius: 6px;
        font-size: 14px;
        cursor: pointer;
        transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
    }
    .dialog-actions .btn-secondary:hover {
        background: var(--theme-border);
    }
    .error-title {
        font-size: 18px;
        font-weight: bold;
        color: #ff4d4f;
        margin-bottom: 12px;
    }
    .error-message {
        font-size: 14px;
        color: var(--theme-text-secondary);
        margin-bottom: 20px;
    }

    /* 最近更新列表区域 */
    .latest-section {
        margin-top: 16px;
        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;
    }

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

    .latest-title {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 16px;
        font-weight: 700;
        color: var(--theme-text);
    }

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

    .latest-more {
        font-size: 12px;
        color: var(--theme-text-secondary);
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 4px;
        transition: color 0.2s ease;
    }

    .latest-more:hover {
        color: var(--theme-primary);
    }

    .latest-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .latest-item {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 12px;
        background: var(--theme-background);
        border-radius: 8px;
        cursor: pointer;
        transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
        min-width: 0;
    }

    .latest-item:hover {
        background: var(--theme-border);
        transform: translateY(-1px);
    }

    .latest-item-index {
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--theme-primary);
        color: #fff;
        font-size: 11px;
        font-weight: 600;
        border-radius: 4px;
        flex-shrink: 0;
    }

    .latest-item-index.top3 {
        background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    }

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

    .latest-item-title {
        font-size: 13px;
        color: var(--theme-text);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 2px;
        max-width: 100%;
    }

    .latest-item-meta {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 11px;
        color: var(--theme-text-secondary);
    }

    .latest-item-tag {
        padding: 1px 5px;
        background: var(--theme-primary);
        color: #fff;
        border-radius: 3px;
        font-size: 10px;
    }

    .latest-item-empty {
        grid-column: 1 / -1;
        text-align: center;
        padding: 30px;
        color: var(--theme-text-secondary);
        font-size: 13px;
    }

    /* 第三方热播榜区域 */
    .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: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease, filter 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: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease, filter 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: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease, filter 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) {
        .notice-bar {
            margin-bottom: 10px;
            padding: 0 12px;
            border-radius: 10px;
        }
        .notice-bar-inner {
            height: 38px;
            gap: 8px;
        }
        .notice-icon svg {
            width: 16px;
            height: 16px;
        }
        .notice-item {
            font-size: 12px;
        }
        .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-left {
            gap: 4px;
        }
        .search-result-title-icon {
            font-size: 14px;
        }
        .search-result-count {
            font-size: 11px;
        }

        /* 资源弹窗手机端适配 */
        .el-overlay .el-dialog.resource-dialog,
        .el-overlay-dialog .resource-dialog,
        .resource-dialog {
            width: 92vw !important;
            max-width: 400px;
            background: var(--theme-surface) !important;
            box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
        }
        .resource-dialog .el-dialog__header,
        .resource-dialog .el-dialog__body {
            background: var(--theme-surface) !important;
        }
        .resource-dialog-content {
            padding: 16px;
            background: var(--theme-surface) !important;
        }
        .success-title {
            font-size: 18px;
        }
        .url-box {
            padding: 10px 12px;
        }
        .dialog-actions {
            gap: 8px;
        }
        .dialog-actions .btn-primary,
        .dialog-actions .btn-secondary {
            padding: 8px 16px;
            font-size: 13px;
        }

        /* 最近更新列表手机端适配 */
        .latest-section {
            margin-top: 12px;
            padding: 12px;
        }
        .latest-title {
            font-size: 14px;
        }
        .latest-list {
            grid-template-columns: 1fr;
            gap: 8px;
        }
        .latest-item {
            padding: 8px 10px;
        }
        .latest-item-title {
            font-size: 12px;
        }
        .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: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease, filter 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: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease, filter 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;
    }


/* ==========================================================================
   本项目适配覆盖（使现有功能类对齐 xunsoso 视觉）
   ========================================================================== */
.search-page-wrapper { padding-top: 0 !important; }

/* 结果区默认显示由 JS 的 d-none 控制 */
#scrollableResults { display: block !important; }
#scrollableResults.d-none { display: none !important; }
#scrollableResults { overflow: visible !important; height: auto !important; max-height: none !important; }

/* 网盘类型切换：单行展示，超出横向滚动（对齐 xunsoso） */
.pan-type-tabs,
#netdisk-filter-bar {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 3px;
    padding: 3px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
#netdisk-filter-bar::-webkit-scrollbar { display: none; }
#netdisk-filter-bar .pan-type-label { flex-shrink: 0; }
#netdisk-filter-bar .filter-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 3px 8px;
    font-size: 12px;
}
.pan-type-mobile { display: none !important; }

/* 分类区在搜索时由 JS 加 d-none 隐藏 */
.category-section.d-none { display: none !important; }

/* 复用 pan-type-tab 视觉呈现 JS 生成的筛选按钮 */
.filter-btn { border: none; font-family: inherit; }

/* 旧的分隔线在卡片化布局中不再需要 */
.result-divider { display: none !important; }

/* 移动端输入框字号 >= 16px，避免 iOS 聚焦自动放大 */
@media (max-width: 768px) {
    .search-input-box input,
    #searchInput,
    .advanced-filter-input,
    input, textarea, select {
        font-size: 16px !important;
    }

    /* 手机端隐藏"网盘类型"文字，筛选标签单行横向滚动 */
    .pan-type-tabs .pan-type-label { display: none; }
}

/* 项目自有的加载/状态条在 xunsoso 风格下的轻量呈现 */
.home-status-bar {
    margin: 8px 0;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    color: var(--theme-text-secondary);
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    text-align: center;
}

/* 获取资源弹窗（链接结果）适配 Bootstrap 模态框，保持 xunsoso 视觉 */
#resourceDetailModal .modal-dialog {
    width: 420px;
    max-width: calc(100vw - 32px);
    margin: 15vh auto 50px;
}
#resourceDetailModal .resource-dialog {
    width: 100% !important;
    max-width: 100%;
    border: none;
    padding: 16px;
}
#resourceDetailModal .resource-dialog .el-dialog__header {
    padding: 16px 20px;
}
#resourceDetailModal .resource-dialog .el-dialog__body {
    padding: 0;
}
#resourceDetailModal .modal-content {
    overflow: hidden;
}
#resourceDetailModal .el-dialog__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
#resourceDetailModal .el-dialog__header .btn-close {
    margin: 0;
    padding: 0.25rem;
}
#resourceDetailModal .el-dialog__title {
    margin: 0;
}
#resourceDetailModal .resource-dialog-content {
    display: block;
}
/* 移动端点击手感：禁止双击缩放、避免 300ms 延迟与文字自动放大 */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
a, button,
.nav-menu-item, .hot-keyword, .pan-type-tab, .pan-type-mobile-btn,
.search-result-item, .search-result-btn, .category-tab, .welfare-item {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
