a:hover{
    color: #1677ff;
}

/* 顶部导航栏样式 */
.topbar {
    width: 100%;
    background: #fff;
    box-shadow: 2px 0 3px rgba(0, 0, 0, 0.06);
    height: 64px;
}

/*public*/
.content-flexible{width: 1500px;margin:0px auto;box-sizing: border-box;}
@media screen and (max-width: 1600px){
	.content-flexible{width: 1200px;}
}
.flex-between{
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}
.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.topbar-right .entry{
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.topbar-right .entry li{
    display: flex;
    align-items: center;
}
.topbar-right .entry li a{
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #666;
    font-size: 12px;
    line-height: 1.4;
    text-decoration: none;
}
.topbar-right .entry li a:hover{
    color: #1890ff;
}
.topbar-right .entry li a i{
    font-size: 18px;
    margin-bottom: 1px;
    font-weight: normal;
    color: #333;
}
.topbar-right .entry li a:hover i{
    color: #1890ff;
}
#user-money {
    display: inline-block;
    background-color: #e6f7ff;
    color: #1890ff;
    padding: 0 6px;
    border-radius: 4px;
    border: 1px solid #8bbbfd;
    margin-left: 4px;
    font-weight: 600;
    font-size: 12px;
    line-height: 18px;
    vertical-align: middle;
}

/* Topbar Center Menu Styles */
.topbar-left {
    flex: 1;
    display: flex;
    align-items: center;
    height: 100%;
}

.topbar-left ul {
    display: flex;
    align-items: center;
    list-style: none;
    height: 100%;
    margin: 0;
    padding: 0;
}

.topbar-left ul ol {
    margin-right: 66px;
    display: flex;
    align-items: center;
}

.topbar-left ul li {
    display: flex;
    align-items: center;
    height: 100%;
}

.topbar-left dl {
    position: relative;
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 0;
}

.topbar-left dl:hover, 
.topbar-left dl.ck {
    background-color: #f8fbff;
}

.topbar-left dl dt {
    margin: 0;
    font-weight: 500;
}

.topbar-left dl dt a {
    color: #333;
    font-size: 16px;
    display: block;
    height: 100%;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.topbar-left dl.ck dt a,
.topbar-left dl:hover dt a {
    color: #1890ff;
}

.topbar-left dl dd {
    display: none;
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    min-width: 140px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 0 0 6px 6px;
    padding: 8px 0;
    z-index: 1000;
    margin: 0;
}

.topbar-left dl:hover dd {
    display: block;
    animation: fadeInMenu 0.2s ease-in-out;
}

.topbar-left dl dd div a {
    display: block;
    padding: 10px 20px;
    color: #666;
    font-size: 14px;
    text-align: center;
    white-space: nowrap;
    transition: color 0.2s, background-color 0.2s;
}

.topbar-left dl dd div a:hover {
    background-color: #f5f7fa;
    color: #1890ff;
}

@keyframes fadeInMenu {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* 会员头 */

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    height: 100%;
}

.user-info-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    padding: 0 10px;
}

.user-info-trigger img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info-details {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 130px;
    z-index: 1000;
    border: 1px solid #e5e7eb;
}

.user-info-details .btn-link {
    display: flex;
    padding: 10px 16px;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
    border-bottom: 1px solid #f3f4f6;
    white-space: nowrap;
    align-items: center;
}
.user-info-details .btn-link i {
    margin-right: 5px;
}

.user-info-details .btn-link:last-child {
    border-bottom: none;
}

.user-info-details .btn-link:hover {
    background: #f9fafb;
    color: #1677ff;
}

.user-info:hover .user-info-details {
    display: block;
    animation: slideIn 0.2s ease-out;
}

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

/* 登录 */
.qb_ui_TopLoginBox span a.fa {
    background: #1677ff;
    border-radius: 3px;
    display: inline-block;
    width: 60px;
    text-align: center;
    color: #FFF;
    line-height: 22px;
    margin: 0 3px;
}


/* cms专用 */
.show-box {
    background: #FFF;
    padding: 20px;
    border-radius: 10px;
}
.show-box .title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}
img[border="1"] {
    border: 1px solid #ddd;
}
.qb_ui_Site_nav {
    width: auto;
    margin: 0;
}
.qb_ui_Site_nav ul {
    border: none;
    line-height: normal;
    background: none;
    padding-left: 0;
    font-size: 14px;
}
.qb_ui_Site_nav ul ol,.qb_ui_ListArticleTimeTitleCnt ol{
    display: none;
}
.qb_ui_ListArticleTimeTitleCnt{
    background: none;
    margin-top: 30px;
}
.pagination li a:hover{
    border:#1677ff solid 1px;
    background: #1677ff;
    color: #FFF;
}
.pagination li.active span{
    border:#1677ff solid 1px;
    background: #1677ff;
    color: #FFF;
}
.pagination li a, .pagination li span{
    border-radius: 5px;
    padding: 0 11px;
}


/* 侧边栏样式 */
.sidebar {
    width: 200px;
    background: #fff;
    color: #333;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: none;
    z-index: 100;
    transition: all 0.3s ease;
}

.sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 0;
    box-shadow: 6px 0 12px rgba(0, 0, 0, 0.12);
    pointer-events: none;
}

.sidebar-switch {
    display: flex;
    gap: 5px;
    padding: 3px;
    margin: 0 20px;
    background: #f5f7fb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    justify-content: space-between;
}

.switch-btn {
    border: none;
    background: transparent;
    color: #6b7280;
    padding: 6px 9px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
}

.switch-btn.active {
    background: #fff;
    color: #1f2937;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.menu ul {
    list-style: none;
}

.menu-item {
    padding: 0 10px 20px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

/* 使含二级菜单的项在子元素处换行，将子菜单换到下一行显示 */
.menu-item.has-submenu {
    flex-wrap: wrap;
}

.menu-item.has-submenu>.submenu {
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.08);
}


.menu-item .text {
    font-size: 12px;
    color: #26244c73;
    margin-bottom: 10px;
}

.menu-item .arrow {
    display: none;
}

.menu-item.active .arrow {
    transform: rotate(180deg);
}


.menu-item.active .submenu {
    display: block;
}

.submenu-item {
    cursor: pointer;
    color: #26244ce0;
    border-radius: 8px;
    align-items: center;
    padding: 5px 0 5px 8px;
    font-size: 14px;
    line-height: 22px;
    display: flex;
}

.submenu-item i {
    margin-right: 5px;
}

.submenu-item:hover {
    background: #cdd0dc33;
}

.submenu-item.active {
    background: #cdd0dc33;
}
.menu {
    height: calc(100vh - 105px);
    overflow-y: overlay; /* Try to use overlay scrollbar to avoid taking up width */
    padding-top: 15px;
}

/* Custom Scrollbar for .menu */
.menu::-webkit-scrollbar {
    width: 6px; /* Thin scrollbar */
    height: 6px;
    background-color: transparent;
}

.menu::-webkit-scrollbar-track {
    background: transparent; /* Transparent track */
}

.menu::-webkit-scrollbar-thumb {
    background-color: transparent; /* Hidden by default */
    border-radius: 3px;
}

.menu:hover::-webkit-scrollbar-thumb {
    background-color: #ccc; /* Visible on hover, light grey */
}

.menu::-webkit-scrollbar-thumb:hover {
    background-color: #999; /* Darker on direct hit */
}
.sidebar-footer {
    height: 40px;
    line-height: 40px;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.7;
    border-top: 1px solid #e5e7eb;
    background: #f5f7fb;
}


/* Footer Styles - Compact */
.foot {
    background: #fff;
    border-radius: 8px;
    margin-top: 20px;
}


/* Left Content */
.foot-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.foot-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.foot-links a {
    color: #555;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.foot-links a:hover {
    color: #1677ff;
}

.foot-links img {
    height: 14px;
    width: auto;
}

.foot-copy {
    color: #999;
    font-size: 12px;
}

.foot-copy a {
    color: #777;
    margin: 0 3px;
    text-decoration: none;
}

.foot-copy a:hover {
    color: #1677ff;
}

.sep {
    color: #eee;
    font-size: 12px;
}

/* Right QR Code */
.foot-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: #fff;
    padding: 5px;
    border-radius: 4px;
}

.foot-qr img {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    object-fit: cover;
}

.foot-qr span {
    font-size: 11px;
    color: #888;
}

@media (max-width: 768px) {
    .foot-main {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        padding: 20px;
    }
    
    .foot-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .foot-inner {
        flex-direction: column-reverse;
        align-items: flex-start;
        padding: 20px;
        gap: 20px;
    }
    
    .foot-extra {
        align-self: center;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .foot-info {
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .foot-meta-line {
        justify-content: center;
    }
}
/* API Key Modal */
.api-key-modal {
    padding: 20px 30px !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

/* 强制覆盖 layui 默认样式 */
.api-key-modal .layui-form-item {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 0 !important;
    clear: both !important;
}

.api-key-modal .layui-form-label {
    float: none !important;
    display: block !important;
    padding: 0 15px 0 0 !important;
    width: auto !important;
    font-weight: 500 !important;
    line-height: 38px !important;
    text-align: right !important;
    white-space: nowrap !important;
    margin: 0 !important;
}

.api-key-modal .layui-input-block {
    margin-left: 0 !important;
    flex: 1 !important;
    min-height: 38px !important;
    width: 0 !important; /* Fix flex overflow */
}

.api-key-modal .layui-input {
    display: block !important;
    width: 100% !important;
    padding-left: 10px !important;
    height: 38px !important;
    line-height: 38px !important;
    border: 1px solid #e6e6e6 !important;
    background-color: #fff !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
    color: #333 !important;
}

.api-key-modal .layui-input:focus {
    border-color: #1677ff !important;
}

.api-key-tip {
    margin-top: 12px !important;
    padding-left: 70px !important;
    color: #888 !important;
    font-size: 12px !important;
    line-height: 1.6 !important;
}

.api-key-tip a {
    color: #1677ff !important;
    text-decoration: none !important;
    margin: 0 2px !important;
    cursor: pointer !important;
}

.api-key-btn-box {
    text-align: center !important;
    margin-top: 30px !important;
}

.api-key-btn-box .layui-btn {
    display: inline-block !important;
    background-color: #1677ff !important;
    height: 38px !important;
    line-height: 38px !important;
    padding: 0 40px !important;
    font-size: 14px !important;
    border-radius: 4px !important;
    border: none !important;
    color: #fff !important;
    cursor: pointer !important;
    outline: none !important;
}

.api-key-btn-box .layui-btn:hover {
    background-color: #4096ff !important;
    opacity: 0.9 !important;
}
