/* ============================================================
 * 全盘搜索主题（quanpan）—— 仿 quanpan.xyz 视觉风格
 * 加载于 app.css / m.css 之后，用于覆盖默认主题样式
 * ============================================================ */

body {
    background: #fff;
    font-family: "SF Pro SC", "SF Pro Text", "SF Pro Icons", "PingFang SC",
        "Helvetica Neue", "Helvetica", "Arial", sans-serif;
}

/* 禁止横向拖动：轨道负边距/脉冲动画可能产生水平溢出 */
html,
body {
    overflow-x: hidden;
}

/* overflow-x:hidden 会使 overflow-y 计算为 auto，#app/.home 变成滚动容器，
   裁掉绝对定位的搜索联想下拉框（首页表现为底部"白边"遮挡）。
   clip 只裁横向溢出、不产生滚动容器，纵向不裁剪。 */
#app {
    overflow-x: clip;
}

#app[data-page="home"] .home {
    overflow-x: clip;
}

/* 去掉默认主题背景图 */
.headBg {
    display: none !important;
}

#app {
    max-width: 760px !important;
    margin: 0 auto;
    padding: 0 15px 30px !important;
}

/* ------------------------------------------------------------
 * 公共页脚
 * ------------------------------------------------------------ */
.footerBox {
    padding: 25px 0;
    text-align: center;
    color: #888;
    font-size: 13px;
}

.footerBox p {
    color: #888;
    font-size: 13px;
    margin: 0 0 4px;
}

.footerBox a {
    color: #888;
}

.footerBox a:hover {
    color: #5268ff;
}

/* ------------------------------------------------------------
 * 首页：隐藏固定顶栏（quanpan.xyz 首页无顶栏）
 * ------------------------------------------------------------ */
#app[data-page="home"] .common-header {
    display: none;
}

/* 首页完全复刻 quanpan.xyz 的 body>main 布局：
   去掉 #app 外壳宽度/内边距限制，去掉 app.css 的 .home 顶部 78px 偏移。
   注意：body 为纵向 flex，#app 带 margin:0 auto 时会取消 stretch 并按内容
   max-content 收缩（首页最宽行为标语，约 450px），必须显式 width:100% */
#app[data-page="home"] {
    max-width: none !important;
    padding: 0 !important;
    width: 100% !important;
}

#app[data-page="home"] .home {
    margin-top: 0;
}

/* 搜索页：与首页一致，去掉 #app 外壳限制与 app.css 的 .home 顶部偏移 */
#app[data-page="search"] {
    max-width: none !important;
    padding: 0 !important;
    width: 100% !important;
}

#app[data-page="search"] .home {
    margin-top: 0;
}

/* 桌面端搜索框宽度强制与参考站一致（720px），
   高特异性+!important，免疫旧版 main.css 浏览器缓存中的残留约束 */
#app[data-page="home"] .home,
#app[data-page="search"] .home {
    width: 100% !important;
    max-width: 720px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

#app[data-page="home"] .home .search,
#app[data-page="search"] .home .search,
#app[data-page="home"] .home .search-form,
#app[data-page="search"] .home .search-form {
    width: 100% !important;
    max-width: 720px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 搜索页卡片（link-item）内的高亮与缓存徽标 */
.link-note .keyword-highlight {
    color: #2356dc;
}

.link-note .cache-badge {
    margin-right: 6px;
    vertical-align: 2px;
}

/* 搜索/详情页：隐藏顶栏本体，保留弹窗组件 */
#app[data-page="search"] > .headerBox,
#app[data-page="search"] > .headerKox,
#app[data-page="detail"] > .headerBox,
#app[data-page="detail"] > .headerKox {
    display: none;
}

/* ------------------------------------------------------------
 * 首页品牌区
 * ------------------------------------------------------------ */
.home-hero.brand {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 300px !important;
    margin-bottom: 40px !important;
    padding: 0 !important;
    overflow: hidden;
    text-align: center;
}

.brand-logo {
    margin-bottom: 8px;
}

.brand-logo img {
    max-width: 180px;
    max-height: 90px;
    display: inline-block;
}

.brand-slogan {
    color: #222;
    font-size: 32px;
    font-weight: 900;
    line-height: 1.35;
    margin: 18px 0 0;
}

.brand-slogan-strong {
    position: relative;
    padding-bottom: 5px;
    background-image: linear-gradient(135deg, #cf54f7, #507dff, #19bc12);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.brand-subtitle {
    margin-top: 18px;
}

.brand-subtitle-item {
    display: inline-block;
    padding: 0 10px;
    font-size: 15px;
    color: #464646;
}

/* ------------------------------------------------------------
 * 首页搜索框（大圆角 + 描边）
 * ------------------------------------------------------------ */
.search-container {
    width: min(100%, 720px) !important;
    max-width: 720px !important;
    margin: 0 auto;
}

.search-container > .flex {
    display: flex;
    align-items: stretch;
    background: #fff;
    transition: all 0.3s;
    border-radius: 14px;
    padding: 2px;
    position: relative;
    border: 2px solid #6d81e2;
}

.search-container .search-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    padding: 10px 15px;
    font-size: 16px;
    color: #1f2937;
    height: auto;
    border-radius: 0;
    box-shadow: none;
}

.search-container .search-button {
    border: none;
    width: 48px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    flex-shrink: 0;
}

.search-container .search-button .fa {
    color: #5268ff;
    font-size: 18px;
    margin: 0 !important;
}

.search-container > .flex:hover {
    background: #f4faff;
}

.search-container > .flex:hover .search-button .fa {
    background-image: linear-gradient(to top left, #d965ff, #658eff, #28c566);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 搜索按钮内的加载圈圈（仿 quanpan.xyz 的 .loader）。
   注意：app.css 已占用 .loader 类名（文字版加载动画），
   此处必须使用独立类名，避免 ::before/字号等样式污染 */
.search-btn .qp-btn-loader {
    margin: 0 auto;
    width: 22px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(farthest-side, #28c566 100%, transparent) top no-repeat,
        conic-gradient(transparent 30%, #d965ff, #658eff);
    background-size: 8px 8px, 100% 100%;
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 0);
    mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 0);
    animation: qp-btn-spin 0.5s infinite linear;
}

@keyframes qp-btn-spin {
    100% { transform: rotate(1turn); }
}

/* 搜索联想下拉 */
.search-container .search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: -2px;
    width: calc(100% + 4px);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    z-index: 100;
    max-height: 430px;
    overflow-y: auto;
}

.search-container .search-suggestions .suggestion-item {
    padding: 9px 16px;
    cursor: pointer;
    transition: background 0.12s;
    color: #1f2937;
    font-size: 14px;
}

.search-container .search-suggestions .suggestion-item:hover {
    background: rgba(0, 0, 0, 0.03);
    color: #5268ff;
}

.search-container .skeleton-loader {
    padding: 12px 16px;
}

/* ------------------------------------------------------------
 * 首页：分类标签 + 资源列表（卡片化）
 * ------------------------------------------------------------ */
.nav-content-container {
    width: 100% !important;
    max-width: 720px !important;
    margin: 25px auto 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.nav-content-container .nav {
    padding: 0 !important;
    border: none !important;
}

.nav-content-container .nav ul {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 5px;
    padding: 12px 0 0;
    margin: 0;
    list-style: none;
}

.nav-content-container .nav ul::-webkit-scrollbar {
    display: none;
}

.nav-content-container .nav .nav-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6px 11px 7px;
    border: 1px solid #e5e7ed;
    border-radius: 8px;
    background: #e5e7ed;
    color: #505050;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    transition: background 0.2s;
    list-style: none;
}

.nav-content-container .nav .nav-item:hover {
    background: #fff;
}

.nav-content-container .nav .nav-item.nav-active {
    background: #fff;
    border-color: #e8e8e8;
    color: #202020;
    font-weight: 700;
}

.nav-content-container .content {
    padding: 0 !important;
}

.home-card-head {
    margin: 18px 2px 4px;
}

.home-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #202020;
    margin: 0;
}

.home-card-count {
    color: #9ca3af;
    font-size: 13px;
}

.resource-list ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.resource-list li.resource-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid #e5e7ed;
    border-radius: 12px;
    margin-top: 10px;
    background: #fff;
    transition: background 0.25s;
    list-style: none;
}

.resource-list li.resource-item:hover {
    background: #f7fcff;
}

.resource-list .number {
    width: 20px !important;
    height: 20px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: 600;
    flex-shrink: 0;
    margin: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.resource-list .number-default {
    background: #f1f3f5 !important;
    color: #6b7280 !important;
}

.resource-list .number-1 {
    background: #ffe0e0 !important;
    color: #ff4d4f !important;
}

.resource-list .number-2 {
    background: #fff4e0 !important;
    color: #ff9500 !important;
}

.resource-list .number-3 {
    background: #e2ebff !important;
    color: #6b7280 !important;
}

.resource-list li.resource-item .title {
    flex: 1;
    min-width: 0;
    color: #1f2937;
    font-size: 15px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.12s;
}

.resource-list li.resource-item:hover .title {
    color: #2356dc;
}

.resource-list li.resource-item .date {
    font-size: 12px;
    color: #6b7280;
    background: #f1f3f5 !important;
    padding: 6px 7px !important;
    border-radius: 5px !important;
    flex-shrink: 0;
}

/* ------------------------------------------------------------
 * 搜索页 / 详情页：品牌 Logo（收缩态）
 * ------------------------------------------------------------ */
.qp-brand {
    text-align: center;
    margin: 30px auto 6px;
}

.qp-brand a {
    display: inline-block;
}

.qp-brand img {
    height: 40px;
    display: block;
}

.qp-brand-name {
    font-size: 22px;
    font-weight: 900;
    color: #222;
}

/* ------------------------------------------------------------
 * 搜索页 / 详情页：搜索框
 * ------------------------------------------------------------ */
.searchBox {
    width: 100% !important;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 !important;
}

.searchBox .search {
    position: relative;
    margin: 15px auto 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    width: 100%;
    height: 52px !important;
    border-radius: 14px !important;
    border: 2px solid #6d81e2;
    display: flex;
    align-items: stretch;
    padding: 2px;
    transition: background 0.3s;
}

.searchBox .search:hover {
    background: #f4faff !important;
}

.searchBox .search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border-radius: 0 !important;
    border: none;
    font-size: 16px !important;
    padding: 0 12px !important;
    color: #1f2937 !important;
    background: transparent;
}

.searchBox .search .btn {
    width: 48px !important;
    height: 100% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 10px;
    flex-shrink: 0;
}

.searchBox .search .btn .iconfont {
    color: #5268ff;
    font-size: 20px !important;
}

.searchBox .search:hover .btn .iconfont {
    background-image: linear-gradient(to top left, #d965ff, #658eff, #28c566);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 分类 / 网盘下拉 */
.searchBox .search .select {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 12px;
    color: #505050;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    border-right: 1px solid #eef0f4;
    flex-shrink: 0;
}

.searchBox .search .select .iconfont {
    font-size: 12px !important;
    color: #9ca3af;
}

.searchBox .search .pan-select-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
    flex-shrink: 0;
}

.searchBox .search .pan-select-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    padding: 6px;
    z-index: 120;
    min-width: 120px;
}

.searchBox .search .pan-select-item {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    color: #4b5563;
    cursor: pointer;
    white-space: nowrap;
}

.searchBox .search .pan-select-item:hover {
    background: rgba(0, 0, 0, 0.03);
}

.searchBox .search .pan-select-item.active {
    color: #5268ff;
    font-weight: 700;
}

/* ------------------------------------------------------------
 * 搜索页主体
 * ------------------------------------------------------------ */
.listBox {
    width: 100% !important;
    max-width: 720px;
    margin: 0 auto;
    display: block;
    min-height: calc(100vh - 260px);
}

.listBox .left {
    width: 100% !important;
    flex: none;
    overflow: visible;
}

/* quanpan.xyz 搜索页无侧边栏 */
#app[data-page="search"] .listBox .right,
#app[data-page="detail"] .listBox .right {
    display: none;
}

.search-results-section {
    padding-top: 20px;
}

.section-header-compact {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.section-header-compact h3 {
    font-size: 14px;
    color: #6b7280;
    font-weight: 400;
    margin: 0;
    padding: 0;
}

.section-header-compact h3:after {
    display: none;
}

.section-header-compact h3 .keyword-highlight {
    color: #2356dc;
    font-weight: 700;
}

.section-header-compact h3 .search-status {
    color: #9ca3af;
}

/* 网盘类型筛选（标签栏） */
.pan-filter-minimal {
    display: flex;
    padding: 12px 0 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 5px;
}

.pan-filter-minimal::-webkit-scrollbar {
    display: none;
}

.pan-filter-minimal a {
    display: inline-block;
    padding: 6px 11px;
    border: 1px solid #e5e7ed;
    border-radius: 8px;
    background: #e5e7ed;
    color: #505050;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s;
}

.pan-filter-minimal a:hover {
    background: #fff;
}

.pan-filter-minimal a.active {
    background: #fff;
    border-color: #e8e8e8;
    color: #202020;
    font-weight: 700;
}

/* 传送带加载动画 */
.loading-minimal {
    display: none;
}

.qp-search-loading {
    padding: 40px 0 10px;
    text-align: center;
}

.qp-loading {
    height: 80px;
    width: 250px;
    margin: 0 auto 12px;
    overflow: hidden;
    padding: 15px;
    position: relative;
}

.qp-loading::before,
.qp-loading::after {
    content: '';
    position: absolute;
    top: 0;
    height: 100%;
    width: 60px;
    z-index: 1;
}

.qp-loading::before {
    background: linear-gradient(to left, transparent 0%, #fff 90%);
    left: 0;
}

.qp-loading::after {
    background: linear-gradient(to right, transparent 0%, #fff 90%);
    right: 0;
}

.qp-loading-box {
    display: flex;
    gap: 5px;
    width: max-content;
    animation: qp-belt 5s infinite;
}

.qp-loading-dot {
    height: 48px;
    width: 48px;
    padding: 10px;
    background: #fff;
    border-radius: 50px;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.qp-loading-dot img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    display: block;
}

/* 4 个图标一组，步长 53px，一组 212px，无缝循环 */
@keyframes qp-belt {
    0% { transform: translateX(0); }
    6% { transform: translateX(-53px); }
    25% { transform: translateX(-53px); }
    31% { transform: translateX(-106px); }
    50% { transform: translateX(-106px); }
    56% { transform: translateX(-159px); }
    75% { transform: translateX(-159px); }
    81% { transform: translateX(-212px); }
    100% { transform: translateX(-212px); }
}

.qp-loader-text {
    display: inline-block;
    font-size: 15px;
    font-weight: 700;
    color: #505050;
    padding: 8px 30px;
    border-radius: 50px;
    border: 1px solid #e5e7ed;
}

/* 搜索结果卡片 */
.list.resource-result-list {
    padding: 0;
}

.resource-result-card {
    border: 1px solid #e5e7ed;
    border-radius: 12px;
    padding: 15px;
    margin-top: 10px;
    background: #fff;
    transition: background 0.25s, opacity 0.25s;
}

.resource-result-card:hover {
    background: #f7fcff;
}

.resource-result-card .resource-title {
    color: #1f2937;
    font-size: 15px;
    font-weight: 700;
    word-break: break-all;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    transition: color 0.12s;
    text-decoration: none;
}

.resource-result-card:hover .resource-title {
    color: #2356dc;
}

.resource-result-card .resource-title .keyword-highlight {
    color: #2356dc;
}

.resource-result-card .cache-badge {
    display: inline-block;
    font-size: 12px;
    line-height: 1;
    padding: 5px 7px;
    border-radius: 5px;
    background: #f1f3f5;
    color: #5b6370;
    font-weight: 500;
    margin-right: 6px;
    vertical-align: 1px;
}

.resource-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

.resource-pan-meta {
    display: flex;
    align-items: center;
}

.resource-pan-icon {
    height: 26px;
    width: 26px;
    object-fit: contain;
    border-radius: 6px;
}

.result-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.resource-tree-btn {
    border: none;
    font-size: 13px;
    color: #5b6370;
    background: #f1f3f5;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.resource-tree-btn:hover {
    background: #e9ecef;
}

.resource-get-btn {
    border: none;
    border-radius: 8px;
    padding: 6px 18px;
    font-size: 13px;
    cursor: pointer;
    text-align: center;
    font-weight: 500;
    background: #edf3ff;
    color: #2356dc;
    transition: background 0.25s, color 0.25s;
}

.resource-get-btn:hover {
    background: linear-gradient(135deg, #4577fc, #2356dc);
    color: #fff;
}

/* 目录树面板 */
.resource-tree-panel {
    margin-top: 12px;
    border-top: 1px dashed #e5e7ed;
    padding-top: 10px;
    font-size: 13px;
    color: #4b5563;
}

.resource-tree-header {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.resource-tree-header em {
    color: #9ca3af;
    font-style: normal;
    font-weight: 400;
}

/* ------------------------------------------------------------
 * 本地搜索模式（未开启全网搜）
 * ------------------------------------------------------------ */
.local-section {
    padding-top: 20px;
}

.local-section .section-header h3 {
    font-size: 14px;
    color: #6b7280;
    font-weight: 400;
}

.local-section .section-header h3 span {
    color: #2356dc;
    font-weight: 700;
}

.local-section .list .item {
    border: 1px solid #e5e7ed;
    border-radius: 12px;
    padding: 15px;
    margin-top: 10px;
    background: #fff;
    transition: background 0.25s;
}

.local-section .list .item:hover {
    background: #f7fcff;
}

.local-section .list .item .title {
    color: #1f2937;
    font-size: 15px;
    font-weight: 700;
    word-break: break-all;
    display: block;
    text-decoration: none;
    transition: color 0.12s;
}

.local-section .list .item:hover .title {
    color: #2356dc;
}

.local-section .list .item .type {
    color: #6b7280;
    font-size: 13px;
    margin-top: 8px;
}

.local-section .list .item .type span span {
    color: #2356dc;
}

.local-section .list .item .btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.local-section .list .item .btns .btn {
    border: none;
    border-radius: 8px;
    padding: 6px 16px;
    font-size: 13px;
    cursor: pointer;
    background: #edf3ff;
    color: #2356dc;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background 0.25s, color 0.25s;
}

.local-section .list .item .btns .btn:hover {
    background: linear-gradient(135deg, #4577fc, #2356dc);
    color: #fff;
}

.local-section .list .item .btns .btn .iconfont {
    font-size: 14px;
}

.local-section .list .item .btns .btn .icon {
    width: 16px;
    height: 16px;
}

.local-section .page {
    display: flex;
    justify-content: center;
    margin: 25px 0 10px;
}

/* ------------------------------------------------------------
 * 详情页
 * ------------------------------------------------------------ */
.listBox.detailBox {
    padding-top: 20px;
}

.listBox.detailBox .left > h3 {
    font-size: 16px;
    color: #202020;
    font-weight: 700;
    margin: 18px 2px 10px;
}

.listBox.detailBox .left > h3:after {
    display: none;
}

.listBox.detailBox .box.details {
    background: #fff;
    border: 1px solid #e5e7ed;
    border-radius: 12px;
    padding: 20px;
    box-shadow: none;
}

.listBox.detailBox .details .pic {
    margin-bottom: 12px;
}

.listBox.detailBox .details .pic img {
    max-width: 180px;
    max-height: 260px;
    border-radius: 8px;
    object-fit: cover;
}

.listBox.detailBox .details .title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px;
    word-break: break-all;
}

.listBox.detailBox .details .cat {
    display: flex;
    padding: 9px 0;
    border-top: 1px solid #f3f4f6;
    font-size: 14px;
}

.listBox.detailBox .details .cat .l {
    width: 80px;
    flex-shrink: 0;
    color: #9ca3af;
    font-size: 13px;
}

.listBox.detailBox .details .cat .r {
    flex: 1;
    min-width: 0;
    color: #4b5563;
    word-break: break-all;
}

.listBox.detailBox .details .cat .r .icon {
    width: 18px;
    height: 18px;
    vertical-align: -3px;
    margin-right: 4px;
}

.listBox.detailBox .details .cat .r .btn {
    color: #2563eb;
    word-break: break-all;
}

.listBox.detailBox .details .btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.listBox.detailBox .details .btns .btn {
    border: none;
    border-radius: 8px;
    padding: 9px 22px;
    font-size: 13px;
    cursor: pointer;
    background: #edf3ff;
    color: #2356dc;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background 0.25s, color 0.25s;
}

.listBox.detailBox .details .btns .btn:hover {
    background: linear-gradient(135deg, #4577fc, #2356dc);
    color: #fff;
}

.listBox.detailBox .details .btns .btnCol {
    background: linear-gradient(135deg, #4577fc, #2356dc);
    color: #fff;
}

.listBox.detailBox .details .btns .btnCol:hover {
    opacity: 0.9;
}

/* 相关资源列表 */
.samelistBox {
    padding: 8px 20px !important;
}

.samelist .item {
    display: block;
    text-decoration: none;
}

.samelist .item p {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 0;
    margin: 0;
    border-bottom: 1px solid #f3f4f6;
    color: #4b5563;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.12s;
}

.samelist .item:last-child p {
    border-bottom: none;
}

.samelist .item:hover p {
    color: #2356dc;
}

.samelist .item p span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: #f1f3f5;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.samelist .item:nth-child(1) p span {
    background: #ffe0e0;
    color: #ff4d4f;
}

.samelist .item:nth-child(2) p span {
    background: #fff4e0;
    color: #ff9500;
}

.samelist .item:nth-child(3) p span {
    background: #e2ebff;
    color: #6b7280;
}

/* ------------------------------------------------------------
 * 公告弹窗 / 返回顶部保持默认，微调圆角
 * ------------------------------------------------------------ */
.global-backtop {
    border-radius: 10px;
}

/* ------------------------------------------------------------
 * 首页页脚：单行置底（仿 quanpan.xyz）
 * ------------------------------------------------------------ */
#app[data-page="home"] .common-footer {
    display: none;
}

#app[data-page="home"] .footerBox {
    margin-top: auto;
}

/* ------------------------------------------------------------
 * 移动端
 * ------------------------------------------------------------ */
@media (max-width: 768px) {
    #app {
        padding: 0 15px 24px !important;
    }

    .home-hero.brand {
        height: 220px !important;
        margin-bottom: 28px !important;
    }

    .brand-logo img {
        max-width: 180px;
        max-height: 90px;
    }

    .brand-slogan {
        font-size: 22px;
    }

    .brand-subtitle-item {
        font-size: 13px;
        padding: 0 6px;
    }

    .qp-brand {
        margin: 20px auto 0;
    }

    .qp-brand img {
        height: 32px;
        margin: 0 auto;
    }

    .qp-brand-name {
        font-size: 18px;
    }

    .searchBox .search {
        height: 48px !important;
    }

    .searchBox .search input {
        font-size: 15px !important;
    }

    .resource-result-card {
        padding: 12px;
    }

    .resource-card-footer {
        margin-top: 10px;
    }

    .qp-loading {
        width: 100%;
        max-width: 250px;
    }

    .listBox.detailBox .details .cat .l {
        width: 64px;
    }
}

/* ========================================
   资源详情弹窗：参考站加载态 + 结果态微调 v2026083110
   ======================================== */
.dialogUrlBox.is-loading {
    width: 420px;
}

.dialogUrlBox .el-dialog__header {
    padding: 18px 48px 12px 22px;
}

.dialogUrlBox .el-dialog__title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.45;
    word-break: break-all;
}

/* 加载态：正在获取资源 */
.dialogUrlBox .qp-transfer-loading {
    padding: 30px 26px 6px;
    text-align: center;
}

.dialogUrlBox .qp-transfer-spinner {
    display: inline-flex;
    gap: 5px;
    margin-bottom: 4px;
}

.dialogUrlBox .qp-transfer-spinner span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2356dc;
    animation: qp-transfer-spin 1s infinite ease-in-out;
}

.dialogUrlBox .qp-transfer-spinner span:nth-child(2) {
    animation-delay: .15s;
}

.dialogUrlBox .qp-transfer-spinner span:nth-child(3) {
    animation-delay: .3s;
}

@keyframes qp-transfer-spin {
    0%, 80%, 100% { transform: scale(0.5); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

.dialogUrlBox .qp-transfer-text {
    margin-top: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}

.dialogUrlBox .qp-transfer-sub {
    margin-top: 6px;
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.6;
}

/* 加载态：三阶段进度条 */
.dialogUrlBox .qp-stage-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 14px 0 4px;
    padding: 0 15px 22px;
}

.dialogUrlBox .qp-stage-bar .stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    min-width: 65px;
    z-index: 1;
}

.dialogUrlBox .qp-stage-bar .stage-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    background: #eef2f6;
    color: #999;
    transition: all .25s;
}

.dialogUrlBox .qp-stage-bar .stage-label {
    margin-top: 8px;
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
    transition: color .25s;
}

.dialogUrlBox .qp-stage-bar .stage.active .stage-dot,
.dialogUrlBox .qp-stage-bar .stage.done .stage-dot {
    background: linear-gradient(135deg, #63df89, #5bcf2c);
    color: #fff;
}

.dialogUrlBox .qp-stage-bar .stage.active .stage-dot {
    box-shadow: 0 0 0 4px rgba(107, 241, 99, 0.3);
    animation: qp-stage-pulse 1.5s infinite ease-in-out;
}

.dialogUrlBox .qp-stage-bar .stage.active .stage-label,
.dialogUrlBox .qp-stage-bar .stage.done .stage-label {
    color: #3dab28;
    font-weight: 600;
}

.dialogUrlBox .qp-stage-bar .stage-line {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    margin: 0 -4px;
    margin-bottom: 26px;
    align-self: flex-start;
}

@keyframes qp-stage-pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(107, 241, 99, 0.3); }
    50% { box-shadow: 0 0 0 8px rgba(107, 241, 99, 0.15); }
}

/* 结果态微调：贴近参考站截图 */
.dialogUrlBox .resource-dialog-card {
    padding: 20px 22px 22px;
}

.dialogUrlBox .resource-dialog-link-card {
    margin-top: 0;
    background: #f0f6ff;
    border-color: #d8e7ff;
}

.dialogUrlBox .resource-dialog-pan-icon {
    width: 36px;
    height: 36px;
}

.dialogUrlBox .resource-dialog-btn.btn-copy {
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #333;
    font-weight: 500;
}

.dialogUrlBox .resource-dialog-btn.btn-open {
    background: #fff;
    border: 1px solid #2356dc;
    color: #2356dc;
}

.dialogUrlBox .resource-dialog-qr {
    padding: 16px 12px;
    background: #f7f8fa;
    border-color: #eceef1;
}

.dialogUrlBox .dialogUrl .qrcode {
    width: 150px;
    height: 150px;
}

.dialogUrlBox .resource-dialog-tree-toggle {
    justify-content: flex-start;
    font-weight: 500;
    color: #333;
}

.dialogUrlBox .resource-dialog-tree-toggle em {
    margin-left: auto;
}

.dialogUrlBox .dialogUrl .statement {
    border: none;
    background: #f5f6f7;
    padding: 12px 14px;
}

.dialogUrlBox .dialogUrl .statement .content {
    color: #8a8f99;
    line-height: 1.8;
}

/* ========================================
   资源详情弹窗 v2026083111：参考站结果态（绿色标题 + 大二维码 + 打开链接）
   ======================================== */
.dialogUrlBox {
    width: 420px;
}

.dialogUrlBox .qp-result {
    padding: 4px 24px 24px;
    text-align: center;
}

.dialogUrlBox .qp-result-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    margin-bottom: 14px;
    color: #15803d;
    font-size: 17px;
    font-weight: 600;
    word-break: break-all;
}

.dialogUrlBox .qp-result-qr .qrcode {
    width: 196px;
    height: 196px;
    margin: 0 auto;
    border: none;
    background: #fff;
}

.dialogUrlBox .qp-result-qr .qrcode canvas {
    width: 100%;
    height: 100%;
    padding: 0;
}

.dialogUrlBox .qp-result-actions {
    margin-top: 18px;
}

/* 链接失效倒计时提示（对齐参考站橙色提示行） */
.dialogUrlBox .qp-expire-tip {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    color: #d97706;
    font-size: 13px;
    line-height: 1;
}

.dialogUrlBox .qp-expire-tip .qp-expire-dot {
    flex: none;
    width: 6px;
    height: 6px;
    margin-right: 6px;
    border-radius: 50%;
    background: #d97706;
}

.dialogUrlBox .qp-expire-tip b {
    margin: 0 3px;
    font-weight: 600;
}

/* 链接过期态（对齐参考站：沙漏 + 红标题 + 灰副标题 + 关闭按钮） */
.dialogUrlBox .qp-expired {
    padding: 10px 24px 24px;
    text-align: center;
}

.dialogUrlBox .qp-expired-icon {
    margin-bottom: 14px;
    font-size: 40px;
    line-height: 1;
}

.dialogUrlBox .qp-expired-title {
    margin-bottom: 10px;
    color: #dc2626;
    font-size: 15px;
    font-weight: 600;
}

.dialogUrlBox .qp-expired-sub {
    margin-bottom: 20px;
    color: #9ca3af;
    font-size: 13px;
}

.dialogUrlBox .qp-expired-actions .qp-btn-primary {
    margin-bottom: 0;
}

.dialogUrlBox .qp-btn-primary {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 12px 0;
    border: none;
    border-radius: 12px;
    background: #edf3ff;
    color: #2356dc;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background .25s, color .25s;
}

.dialogUrlBox .qp-btn-primary:last-child {
    margin-bottom: 0;
}

.dialogUrlBox .qp-btn-primary:hover {
    background: linear-gradient(135deg, #4577fc, #2356dc);
    color: #fff;
}

.dialogUrlBox .qp-result-error {
    padding: 26px 22px 30px;
    text-align: center;
}

/* ========================================
   v2026090105：结果行整行可点 + 移动端底部抽屉 + 关闭按钮对齐参考站
   ======================================== */
.link-list .link-item {
    cursor: pointer;
}

/* 桌面端关闭按钮：默认灰色 × 无底，hover 浅灰圆角方块 + 深色 ×（完全同参考站 .transfer-close） */
.dialogUrlBox .el-dialog__headerbtn {
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 6px;
    transition: background .15s, color .15s;
}

.dialogUrlBox .el-dialog__headerbtn:hover,
.dialogUrlBox .el-dialog__headerbtn:focus {
    background: #f3f4f6;
}

.dialogUrlBox .el-dialog__headerbtn .el-icon {
    color: #9ca3af;
    font-size: 16px;
}

.dialogUrlBox .el-dialog__headerbtn:hover .el-icon,
.dialogUrlBox .el-dialog__headerbtn:focus .el-icon {
    color: #1f2937;
}

/* 移动端：资源详情弹窗改为底部抽屉（对齐参考站手机端） */
@media screen and (max-width: 768px) {
    .qp-sheet-overlay {
        display: flex;
        align-items: flex-end;
        justify-content: center;
        padding: 0;
    }

    .qp-sheet-overlay .el-dialog.dialogUrlBox {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        background: #fff;
        border-radius: 16px 16px 0 0 !important;
        box-shadow: none;
        max-height: 92vh;
        overflow-y: auto;
        animation: qp-sheet-up .25s cubic-bezier(.2, .7, .3, 1);
    }

    .qp-sheet-overlay .dialogUrlBox .el-dialog__header {
        padding: 18px 48px 12px 20px;
    }

    .qp-sheet-overlay .dialogUrlBox .el-dialog__headerbtn {
        top: 14px;
        right: 14px;
        width: 28px;
        height: 28px;
        background: transparent;
        border: none;
    }

    .qp-sheet-overlay .dialogUrlBox .el-dialog__headerbtn .el-icon {
        color: #9aa0a6;
    }

    .qp-sheet-overlay .dialogUrlBox .dialogUrl {
        max-height: none;
        border-radius: 0;
        background: #fff;
    }

    .qp-sheet-overlay .dialogUrlBox .qp-result {
        padding: 4px 20px 24px;
    }
}

@keyframes qp-sheet-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* ===== 卡片标题标签行（标签类别与配色与参考站一致） ===== */
.link-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.link-tags + .link-meta {
    margin-top: 15px;
}

.link-tag {
    font-size: 12px;
    line-height: 1;
    padding: 6px 7px;
    border-radius: 5px;
    background: #f1f3f5;
    color: #5b6370;
    font-weight: 500;
    white-space: nowrap;
}

.link-tag.tag-reso { background: #eaf1ff; color: #2356dc; }
.link-tag.tag-quality { background: #fff0f0; color: #cd3535; }
.link-tag.tag-year { background: #f8f0de; color: #b35e27; }
.link-tag.tag-ep { background: #f3ecff; color: #7c3aed; }
.link-tag.tag-fps { background: #fdeef6; color: #c026a3; }
.link-tag.tag-codec { background: #eafaf1; color: #1e874b; }
.link-tag.tag-audio { background: #e7f7f8; color: #0e7c86; }
.link-tag.tag-lang { background: #eef1f6; color: #4b5670; }
