/* ============================================================
 * 全盘搜索主题（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;
}

#app {
    overflow-x: hidden;
}

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

/* 去掉默认主题背景图 */
.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;
}

/* 搜索联想下拉 */
.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;
    }
}
