/* 修复 spanName 和 btnDownload 显示为两行的问题 */

/* 确保链接元素在一行显示 - 适用于所有页面 */
#detailFrame .topFrame .contentFrame .infoFrame ul li a,
#home #bottomFrame ul li div.contentFrame ul li div.bottom a,
#contentView div.contentBottomFrame div.contentItemFrame div.itemFrame ul li div.itemBottomFrame a,
div.navBar .navigation_content .wp-sitesearch_content div.sright.searchPanel > ul > li > div.itemBottomFrame > a {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    white-space: nowrap !important;
    width: 100% !important;
    overflow: hidden !important;
}

/* 调整 spanName 和 btnDownload 的样式 - 适用于所有页面 */
#detailFrame .topFrame .contentFrame .infoFrame ul li a span.spanName,
#home #bottomFrame ul li div.contentFrame ul li div.bottom a span.spanName,
#contentView div.contentBottomFrame div.contentItemFrame div.itemFrame ul li div.itemBottomFrame a span.spanName,
div.navBar .navigation_content .wp-sitesearch_content div.sright.searchPanel > ul > li > div.itemBottomFrame > a span.spanName {
    flex: 1 !important;
    margin: 0 5px 0 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-width: 0 !important;
}

#detailFrame .topFrame .contentFrame .infoFrame ul li a span.btnDownload,
#home #bottomFrame ul li div.contentFrame ul li div.bottom a span.btnDownload,
#contentView div.contentBottomFrame div.contentItemFrame div.itemFrame ul li div.itemBottomFrame a span.btnDownload,
div.navBar .navigation_content .wp-sitesearch_content div.sright.searchPanel > ul > li > div.itemBottomFrame > a span.btnDownload {
    flex-shrink: 0 !important;
    margin-left: 5px !important;
    white-space: nowrap !important;
}

/* 响应式调整 */
@media (max-width: 991.98px) {
    #detailFrame .topFrame .contentFrame .infoFrame ul li a span.spanName,
    #home #bottomFrame ul li div.contentFrame ul li div.bottom a span.spanName,
    #contentView div.contentBottomFrame div.contentItemFrame div.itemFrame ul li div.itemBottomFrame a span.spanName,
    div.navBar .navigation_content .wp-sitesearch_content div.sright.searchPanel > ul > li > div.itemBottomFrame > a span.spanName {
        font-size: 12px !important;
    }
    
    #detailFrame .topFrame .contentFrame .infoFrame ul li a span.btnDownload,
    #home #bottomFrame ul li div.contentFrame ul li div.bottom a span.btnDownload,
    #contentView div.contentBottomFrame div.contentItemFrame div.itemFrame ul li div.itemBottomFrame a span.btnDownload,
    div.navBar .navigation_content .wp-sitesearch_content div.sright.searchPanel > ul > li > div.itemBottomFrame > a span.btnDownload {
        font-size: 12px !important;
    }
}

@media (max-width: 767.98px) {
    #detailFrame .topFrame .contentFrame .infoFrame ul li a,
    #home #bottomFrame ul li div.contentFrame ul li div.bottom a,
    #contentView div.contentBottomFrame div.contentItemFrame div.itemFrame ul li div.itemBottomFrame a,
    div.navBar .navigation_content .wp-sitesearch_content div.sright.searchPanel > ul > li > div.itemBottomFrame > a {
        padding: 5px 0 !important;
    }
    
    #detailFrame .topFrame .contentFrame .infoFrame ul li a span.spanName,
    #home #bottomFrame ul li div.contentFrame ul li div.bottom a span.spanName,
    #contentView div.contentBottomFrame div.contentItemFrame div.itemFrame ul li div.itemBottomFrame a span.spanName,
    div.navBar .navigation_content .wp-sitesearch_content div.sright.searchPanel > ul > li > div.itemBottomFrame > a span.spanName {
        font-size: 11px !important;
        margin-right: 3px !important;
    }
    
    #detailFrame .topFrame .contentFrame .infoFrame ul li a span.btnDownload,
    #home #bottomFrame ul li div.contentFrame ul li div.bottom a span.btnDownload,
    #contentView div.contentBottomFrame div.contentItemFrame div.itemFrame ul li div.itemBottomFrame a span.btnDownload,
    div.navBar .navigation_content .wp-sitesearch_content div.sright.searchPanel > ul > li > div.itemBottomFrame > a span.btnDownload {
        font-size: 11px !important;
        margin-left: 3px !important;
    }
}

@media (max-width: 575.98px) {
    #detailFrame .topFrame .contentFrame .infoFrame ul li a span.spanName,
    #home #bottomFrame ul li div.contentFrame ul li div.bottom a span.spanName,
    #contentView div.contentBottomFrame div.contentItemFrame div.itemFrame ul li div.itemBottomFrame a span.spanName,
    div.navBar .navigation_content .wp-sitesearch_content div.sright.searchPanel > ul > li > div.itemBottomFrame > a span.spanName {
        font-size: 10px !important;
        max-width: calc(100% - 40px) !important;
    }
    
    #detailFrame .topFrame .contentFrame .infoFrame ul li a span.btnDownload,
    #home #bottomFrame ul li div.contentFrame ul li div.bottom a span.btnDownload,
    #contentView div.contentBottomFrame div.contentItemFrame div.itemFrame ul li div.itemBottomFrame a span.btnDownload,
    div.navBar .navigation_content .wp-sitesearch_content div.sright.searchPanel > ul > li > div.itemBottomFrame > a span.btnDownload {
        font-size: 10px !important;
    }
}

@media (max-width: 399.98px) {
    #detailFrame .topFrame .contentFrame .infoFrame ul li a span.spanName,
    #home #bottomFrame ul li div.contentFrame ul li div.bottom a span.spanName,
    #contentView div.contentBottomFrame div.contentItemFrame div.itemFrame ul li div.itemBottomFrame a span.spanName,
    div.navBar .navigation_content .wp-sitesearch_content div.sright.searchPanel > ul > li > div.itemBottomFrame > a span.spanName {
        font-size: 9px !important;
        max-width: calc(100% - 35px) !important;
    }
    
    #detailFrame .topFrame .contentFrame .infoFrame ul li a span.btnDownload,
    #home #bottomFrame ul li div.contentFrame ul li div.bottom a span.btnDownload,
    #contentView div.contentBottomFrame div.contentItemFrame div.itemFrame ul li div.itemBottomFrame a span.btnDownload,
    div.navBar .navigation_content .wp-sitesearch_content div.sright.searchPanel > ul > li > div.itemBottomFrame > a span.btnDownload {
        font-size: 9px !important;
    }
}