/* ============================================================================
   CDP 财新数据平台
============================================================================ */


/* ============================================================================
   一、全局基础
============================================================================ */

/* 全局字体 */
body, html {
    font-family: Source Han Sans SC !important;
}
.level-tag{
    font-size: 11px;
    padding: 2px 4px;
    border-radius: 4px;
    margin-top: 2px;
    text-align: center;
}
/* 用户等级徽章 */
.level-1 { background: linear-gradient(135deg, #e9f1f7, #cae5ff); color: #0e73fb; }
.level-2 { background: linear-gradient(135deg, #d2e9fd, #e0ecef); color: #518fa5; }
.level-3 { background: linear-gradient(135deg, #abc3ff, #e9e1fd); color: #4e42fa; }
.level-4 { background: linear-gradient(135deg, #ffe3aa, #ffe2af); color: #835217;}
.level-5 { background: linear-gradient(135deg, #1a1e1d, #1a1a1a); color: #f0b756; }

/* 全局滚动条 */
::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, .2);
    border-radius: 10px;
}


/* ============================================================================
   二、框架布局 (Header / Side / Body)
============================================================================ */

/* --- 顶部导航栏 --- */
.cdp-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 60px;
    background: #fff;
    box-shadow: #25293114 0 16px 16px -16px;
}

/* --- 左侧导航 --- */
.cdp-side {
    position: fixed;
    left: 0;
    top: 61px;
    width: 200px;
    background: #fff;
    bottom: 0;
    z-index: 999; 
}

/* 侧栏滚动容器 */
.cdp-side-scroll {
    position: relative;
    height: 100%;
    overflow-x: hidden;
}
.cdp-side-scroll {
    position: relative;
    height: 100%;
    overflow: scroll;
}
.cdp-side-scroll::-webkit-scrollbar {
    display: none;
}
.cdp-side-scroll {
    scrollbar-width: none;
}
.cdp-side-scroll {
    -ms-overflow-style: none;
}
.cdp-side-scroll::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
.cdp-side-scroll::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 4px; }
.cdp-side-scroll::-webkit-scrollbar-thumb:hover { background: #a1a1a1; }

/* --- 主内容区 --- */
.cdp-body {
    position: absolute;
    top: 70px;
    left: 210px;
    right: 10px;
    bottom: 0;
    width: auto;
    box-sizing: border-box;
}

/* --- 侧栏折叠状态 --- */
.cdp-side.collapsed { width: 60px; }
.cdp-side.collapsed .layui-nav-tree .layui-nav-child { display: none; }
.cdp-side.collapsed .layui-nav-item > a { text-align: center; }
.cdp-side.collapsed .layui-nav-item > a > span { display: none; }
.cdp-body.expanded { left: 60px; }


/* ============================================================================
   三、顶部导航栏组件
============================================================================ */

/* --- 顶部容器布局 --- */
.cdp-topwarp {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
}

.cdp-topleft {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cdp-topright {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* --- Logo --- */
.cdp-logo { margin-left: 0; }
.cdp-logo img { height: 30px; }

/* --- 侧栏收缩按钮 --- */
.cdp-toggle { margin: 0 15px; }

.cdp-header-toggle {
    cursor: pointer;
    color: #333;
    font-size: 20px;
}

.cdp-header-toggle:hover { color: #1E9FFF; }

/* --- 主导航菜单 --- */
.cdp-topnav { position: relative; }

.cdp-nav-wrapper {
    display: flex;
    gap: 5px;
}

.cdp-nav-item {
    list-style: none;
    position: relative;
}

.cdp-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.cdp-nav-link:hover { background: rgba(69, 56, 231, 0.14); }

/* 带下拉箭头的导航项 */
.cdp-nav-link--has-dropdown { padding-right: 30px; }

.cdp-nav-link--has-dropdown::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #666;
    transition: transform 0.3s;
}

.cdp-nav-item:hover .cdp-nav-link--has-dropdown::after {
    transform: translateY(-50%) rotate(180deg);
}

/* --- 分隔线 --- */
.cdp-divider {
    width: 1px;
    height: 20px;
    margin: 0 2px;
    background-color: #eee;
}


/* ============================================================================
   四、下拉面板 (导航 / 搜索共用)
============================================================================ */

/* 下拉面板基础 */
.cdp-dropdown-panel {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100vw;
    background-color: #fff;
    z-index: 999;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #c9c9c9;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.cdp-dropdown-panel--active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cdp-dropdown-content {
    max-width: 1440px;
    margin: 0 auto;
}

.cdp-nav-dropdown { border-top: 1px solid #eee; }

/* --- 导航下拉内容布局 --- */
.nav-openwarp {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 0;
    display: flex;
}

/* 左侧描述区 */
.openlf {
    background: linear-gradient(135deg, #f0f5ff, #f9fafc);
    border-radius: 6px;
    width: 300px;
    padding: 15px;
    box-sizing: border-box;
}

.navopdes .opinfo {
    font-size: 14px;
    line-height: 1.6;
}

.navopdes .opmall {
    margin-top: 10px;
    font-size: 13px;
}

.navopdes .opmall a {
    margin-right: 10px;
    color: #409eff;
    text-decoration: none;
}

/* 右侧功能区 */
.openrg {
    padding: 15px;
    flex: 1;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.navopfun .oftit {
    color: #333;
    font-size: 15px;
    margin-bottom: 10px;
}

/* 功能入口网格 */
.opencd-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.fcitem {
    background: #f9fafc;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 8px 12px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.fcitem:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
    border-color: #2563eb;
}

.fcitem .ft1 {
    font-size: 15px;
    color: #2563eb;
}

.fcitem .ftdes {
    font-size: 13px;
    color: #666;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}


/* ============================================================================
   五、搜索功能组件
============================================================================ */

/* 搜索触发按钮 */
.cdp-search { position: relative; }

.cdp-search-trigger {
    display: flex; background-color: #e5e5e5;
    align-items: center;
    gap: 2px;
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.2s;
    color: #666;
    font-size: 14px;
    min-width: 280px;
}

.cdp-search-trigger i { font-size: 16px; }
.cdp-search-trigger:hover {
    background-color: #f5f5f5;}

/* 搜索面板 */
.cdpnav-search {
    padding: 15px 0;
    max-width: 800px;
    margin: 0 auto;
}

/* 搜索输入框组 */
.cdp-search-input-wrapper {
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0 0 0 12px;
    margin-bottom: 10px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.cdp-search-input-wrapper:focus-within {
    border-color: rgba(var(--cdp-base-rgb), 0.91);
}

.cdp-search-input-wrapper i {
    font-size: 18px;
    margin-right: 8px;
    color: #999;
}

.cdp-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 8px 0;
    font-size: 16px;
    background: transparent;
}

.cdp-search-input-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #999;
    cursor: pointer;
    border-radius: 50%;
    margin-right: 4px;
    flex-shrink: 0;
    transition: color 0.15s ease, background-color 0.15s ease;
}
.cdp-search-input-clear:hover {
    color: #333;
    background-color: #f0f0f0;
}
.cdp-search-input-clear i {
    font-size: 16px;
    margin-right: 0 !important;
}

.cdp-search-btn {
    padding: 14px 24px;
    background: rgba(var(--cdp-base-rgb), 0.91);
    color: var(--cdp-gray-main);
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.cdp-search-btn:hover { background-color: #0d8bf2; }

/* 搜索建议列表 */
.cdp-search-suggest {
    margin-bottom: 16px;
}

.cdp-suggest-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 320px;
    overflow-y: auto;
}

.cdp-suggest-group-title {
    font-size: 12px;
    color: #6e6e6e;
    padding: 6px;
    font-weight: 500;
    letter-spacing: 1px;
}

.cdp-suggest-group-title:first-child {
    padding-top: 2px;
}

.cdp-suggest-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 3px 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s;
}

.cdp-suggest-item:hover {
    background-color: #f0f5ff;
}

.cdp-suggest-name {
    font-size: 13px;
    font-weight: 500;
    color: #2c2c2c;
    white-space: nowrap;
    flex-shrink: 0;
}

.cdp-suggest-detail {
    font-size: 12px;
    color: #515153;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

/* 关键词高亮 */
.cdp-suggest-highlight {
    color: #f00;
    font-weight: 600;
}

.cdp-suggest-empty {
    text-align: center;
    padding: 24px 0;
    color: #909399;
    font-size: 13px;
}

/* 热门搜索 & 搜索历史 */
.cdp-search-history{
    margin-bottom: 10px;
}
.cdp-search-hot-title,
.cdp-search-history-title {
    font-size: 14px;
    color: #999;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cdp-search-hot-groups {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.cdp-search-hot-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;          /* 防止内容撑破grid等宽列 */
    overflow: hidden;
}

.cdp-search-hot-subtitle {
    font-size: 13px;
    font-weight: 600;
    color: #606266;
    padding-bottom: 8px;
    border-bottom: 1px solid #ebeef5;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cdp-search-hot-subtitle i { font-size: 14px; }

.cdp-search-hot-group:nth-child(1) .cdp-search-hot-subtitle i { color: #e63946; }
.cdp-search-hot-group:nth-child(2) .cdp-search-hot-subtitle i { color: #52c41a; }
.cdp-search-hot-group:nth-child(3) .cdp-search-hot-subtitle i { color: #fa8c16; }

.cdp-search-hot-tags {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 0;
}

.cdp-search-history-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0;
}

/* 热门标签 - 竖向列表行 */
.cdp-search-hot-tag {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 4px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s;
}

.cdp-search-hot-tag:hover {
    background-color: #f0f5ff;
}

.cdp-hot-idx {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #909399;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 1px;
}

.cdp-search-hot-tag:nth-child(-n+3) .cdp-hot-idx {
    color: #fff;
}
.cdp-search-hot-tag:nth-child(1) .cdp-hot-idx { background: #e63946; }
.cdp-search-hot-tag:nth-child(2) .cdp-hot-idx { background: #f59e0b; }
.cdp-search-hot-tag:nth-child(3) .cdp-hot-idx { background: #3b82f6; }

.cdp-hot-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cdp-hot-name {
    font-size: 13px;
    font-weight: 500;
    color: #303133;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.cdp-search-hot-tag:hover .cdp-hot-name {
    color: #1E9FFF;
}

.cdp-hot-detail {
    font-size: 11px;
    color: #909399;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.cdp-search-history-item {
    padding: 4px 10px;
    background-color: #f5f5f5;
    border-radius: 12px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cdp-search-history-item:hover {
    background-color: #1E9FFF;
    color: #fff;
}

.cdp-search-clear {
    color: #1E9FFF;
    font-size: 13px;
    cursor: pointer;
    border: none;
    background: none;
}

.cdp-search-clear:hover { text-decoration: underline; }


/* ============================================================================
   六、功能清单组件
============================================================================ */

/* 功能清单入口按钮 */
.cdp-features { position: relative; }

.cdp-features-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background-color: #f5f5f5;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    color: #666;
    font-size: 14px;
    font-family: Source Han Sans SC !important;
}

.cdp-features-trigger i { font-size: 18px; }
.cdp-features-trigger:hover { background-color: #e5e5e5; color: #4538e7; }
.cdp-features-trigger--active { background-color: #4538e7; color: #fff; }
.cdp-features-trigger--active:hover { background-color: #4538e7; color: #fff; }

/* 功能清单面板 */
.cdp-features-dropdown { border-top: 1px solid #eee; }

.cdp-features-panel {
    padding: 10px 0 15px 0;
    max-width: 1440px;
    margin: 0 auto;
    /* 面板整体不超过视口：header(60px) + padding + header行 + 余量 */
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.cdp-features-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    flex-shrink: 0;
}

.cdp-features-panel-title {
    font-size: 18px;
    font-weight: 600;
    color: #303133;
}

.cdp-features-panel-sub {
    font-size: 12px;
    color: #909399;
}

.cdp-features-panel-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #4538e7;
    background: #f5f3ff;
    border: 1px solid #e0dcf9;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.cdp-features-panel-header-btn:hover {
    background: #4538e7;
    color: #fff;
    border-color: #4538e7;
}

/* 分类区块 */
.cdp-features-section {
    margin-bottom: 14px;
}

.cdp-features-section:last-child {
    margin-bottom: 0;
}

.cdp-features-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px; 
}

.cdp-features-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #303133;
}

.cdp-features-section-count {
    font-size: 11px;
    color: #909399;
    background: #f5f5f5;
    padding: 1px 7px;
    border-radius: 10px;
}

/* 卡片网格 */
.cdp-features-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}

/* 功能卡片 */
.cdp-feature-card {
    display: flex;
    /* align-items: center; */
    gap: 8px;
    padding:6px;
    background: #fff;
    border: 1px solid #ebeef5;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.cdp-feature-card:hover {
    border-color: #4538e7;
    box-shadow: 0 4px 16px rgba(69, 56, 231, 0.1);
    transform: translateY(-2px);
}

.cdp-feature-card-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

.cdp-feature-card-body {
    min-width: 0;
}

.cdp-feature-card-name {
    font-size: 13px;
    font-weight: 600;
    color: #303133;
    margin-bottom: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cdp-feature-card-desc {
    font-size: 11px;
    color: #909399;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 响应式 */
@media (max-width: 1400px) {
    .cdp-features-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 1100px) {
    .cdp-features-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
    .cdp-features-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
    .cdp-features-grid { grid-template-columns: repeat(2, 1fr); }
    .cdp-feature-card { padding: 5px 8px; }
}
@media (max-width: 400px) {
    .cdp-features-grid { grid-template-columns: 1fr; }
}


/* ============================================================================
   六、右上角菜单组件
============================================================================ */

.cdp-topright-menu {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cdp-topright-link {
    text-decoration: none;
    color: #666;
    font-size: 13px;
    padding: 4px 6px;
    border-radius: 4px;
    transition: all 0.2s;
    position: relative;
}

.cdp-topright-link i { font-size: 20px; }

.cdp-topright-link:hover { 
    color: #1a1919;
}

/* 通知铃铛角标 */
.bell-badge {
    background: #f03d3f;
    color: #fff;
    padding: 0 4px;
    font-size: 11px;
    position: absolute;
    top: -4px;
    right: -10px;
    border-radius: 6px;
}

/* AI助手按钮 */
.link-ai {
    background: linear-gradient(90deg, #ba88fa 0, #635bff 100%);
    color: #fff;
    font-weight: bold;
    border-radius: 20px;
    padding: 6px 20px;
}

.link-ai:hover {
    opacity: 0.68;
    color: #fff;
}

/* 定价订阅按钮 */
.link-store {
    background: linear-gradient(90deg, #fceee1 0, #fcdac1 100%);
    color: #6b3d1e;
    border-radius: 6px;
    padding: 6px 16px; 
    font-weight: 500;
}

.link-store:hover {
    opacity: 0.68;
    color: #6b3d1e;
}


/* 数据实践按钮 */
.link-practice {
    background: linear-gradient(90deg, #e8e4ff 0, #cfc7ff 100%);
    color: #4538e7;
    border-radius: 6px;
    padding: 6px 16px; 
    font-weight: 500;
    margin: 0 10px;
}

.link-practice:hover {
    opacity: 0.72;
    color: #4538e7;
    background: linear-gradient(90deg, #e8e4ff 0, #cfc7ff 100%);
}
.practice-info{
    padding: 10px 15px;
    font-size: 13px;
}

/* 菜单包装器 */
.cdp-menu-wrapper { position: relative; }

/* 菜单弹窗面板 */
.cdp-menu-panel {
    position: absolute;
    top: 100%;
    right: -50%;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    z-index: 1001;
    margin-top: 18px;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.cdp-menu-panel--active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.cdp-menu-panel--auto{ min-width:100px; }

.cdp-menu-panel--small { min-width: 160px; }

.cdp-menu-panel-item {
    display: block;
    padding: 6px 8px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    text-align: center;
    transition: background-color 0.2s;
}

.cdp-menu-panel-item:hover {
    background-color: #f5f5f5;
    color: #1E9FFF;
}

/* 数据实践描述面板 */
.cdp-menu-panel--desc {
    min-width: 280px;
    padding: 4px 0;
}

.cdp-desc-item {
    padding: 14px 18px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cdp-desc-item:hover {
    background-color: #f5f5f5;
}

.cdp-desc-item + .cdp-desc-item {
    border-top: 1px solid #f0f0f0;
}

.cdp-desc-title {
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 600;
    color: #1b5e3f;
    letter-spacing: 0.3px;
}

.cdp-desc-text {
    margin: 0;
    font-size: 12px;
    color: #666;
    line-height: 1.6;
}

.cdp-panel-divider {
    height: 1px;
    background-color: #eee;
    margin: 4px 0;
}

/* 微信二维码 */
.wxqrcode {
    text-align: center;
    padding: 10px 15px;
}

.qrimg img { width: 110px; }

.qrinfo {
    margin-top: 4px;
    font-size: 12px;
}


.puzinfo{
    padding: 10px;
    text-align: center;
}

/* 个人中心触发区 */
.cdp-user-trigger {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 10px;
}

.joinusbut{
    border: 1px solid rgba(var(--cdp-base-rgb), 1);
    color: rgba(var(--cdp-base-rgb), 0.8);
    padding: 6px 12px;
    border-radius: 4px;
}
.joinusbut:hover{
    border: 1px solid rgba(var(--cdp-base-rgb), 1);
    color: rgba(var(--cdp-base-rgb), 1);
}


.cdp-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    overflow: hidden;
}

.cdp-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cdp-user-label {
    font-size: 12px;
    line-height: 1.4;
}

.cdp-user-name {
    font-weight: bold;
    font-size: 12px;
    color: #333;
    max-width: 80px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.cdp-user-role {
    max-width: 96px;
}


/* ============================================================================
   七、个人中心弹窗
============================================================================ */

.cdp-menu-panel--account {
    width: 360px;
    right: 0;
}

.account-container {
    width: 400px;
    max-width: 100%;
}

/* 账户信息 */
.account-info {
    padding:15px;
    border-bottom: 10px solid #f5f5f5;
    display: flex;
}

.account-info .avatar {
    width: 50px;
    height: 50px;
    background-color: #4a90e2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 28px;
    border-radius: 6px;
    overflow: hidden;
}

.account-info .avatar img {
    width: 100%;
    border-radius: 6px;
}

.account-details { flex: 1; }

.email {
    font-size: 16px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.account-id {
    color: #666;
    font-size: 13px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.id-icon {
    margin-left: 5px;
    color: #999;
    cursor: pointer;
}

/* 会员等级 */
.account-membership {
    display: flex;
    align-items: center;
    gap: 8px;
}

.membership-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
    background: linear-gradient(135deg, #f0eefc, #e8e4fa);
    color: #4538e7;
    border: 1px solid #e0dcf9;
}

.membership-badge i {
    font-size: 14px;
    color: #f5a623;
}

.membership-upgrade {
    font-size: 11px;
    color: #4538e7;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

.membership-upgrade:hover {
    color: #372ad4;
    text-decoration: underline;
}

.laytags {
    display: flex;
    gap: 10px;
}

.laytag {
    background-color: #f0f8ff;
    color: #4a90e2;
    border-radius: 4px;
    padding: 3px 10px;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.laytag:hover {
    background-color: #dceeff;
}


.lgout {
    display: block;
    text-align: center;
    background-color: #f0f8ff;
    color: #4a90e2;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
}
.lgout:hover {
    background-color: #dceeff;
}

/* 权限/订单分区 */
.account-section {
    padding: 15px;
    border-bottom: 10px solid #f5f5f5;
}

.usersec-header{
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.usersec-title { font-weight: bold; }

.section-tabs {
    display: flex;
    gap: 10px;
}

.section-tabs .tab {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 4px;
    background: #f0f8ff;
    color: #4a90e2;
    text-decoration: none;
}

.benefits-row {
    display: flex;
    gap: 20px;
}

.benefit-item { text-align: center; }

.benefit-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.benefit-value {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

/* 账户模块链接网格 */
.account-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.account-link-item {
    background: #fafaff;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: #555;
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
}

.account-link-item i {
    font-size: 15px;
    color: #8a8a8a;
    flex-shrink: 0;
    transition: color 0.15s;
}

.account-link-item .link-badge {
    margin-left: auto;
    background: #f03d3f;
    color: #fff;
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 8px;
    padding: 0 4px;
    font-weight: 600;
}

.account-link-item:hover {
    background: #f5f3ff;
    color: #4538e7;
}

.account-link-item:hover i {
    color: #4538e7;
}

.section-more {
    margin-left: auto;
    font-size: 12px;
    color: #4538e7;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.section-more:hover {
    color: #372ad4;
}


/* ============================================================================
   八、左侧导航 (slinav)
============================================================================ */

/* ── 导航容器 ── */
.slinav-container {
    color: #222;
    padding: 10px 10px 60px;
    overflow-y: auto;
    flex-shrink: 0;
}

/* ── 模块包装器 ── */
.slinav-module {  
    font-family: Source Han Sans SC !important;
    margin-bottom: 4px;
}

.slinav-module:last-child {
    border-bottom: none;
    padding-bottom: 4px;
}

/* ── 模块标题行 ── */
.slinav-type {
    display: flex;
    align-items: center;
    padding: 7px 0px 7px 10px;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.07) 0%, rgba(167, 139, 250, 0.02) 100%);
    user-select: none;
}

.slinav-type a {
    flex-shrink: 0;
    font-size: 11px;
    white-space: nowrap;
    margin-left: 8px;
    text-decoration: none;
    color: rgba(var(--cdp-main-rgb), 0.42);
    transition: color 0.2s;
}

.slinav-type a:hover {
    color: rgba(var(--cdp-main-rgb), 0.72);
}

.slinav-type .subscribe {
    color: #d4771a;
    font-weight: 600;
}

 .slinav-type.slinav-type--static {
     display: flex;
     align-items: center;
     justify-content: space-between;
 }

.slinav-type--toggle {
    padding: 0;
    cursor: pointer;
}

.slinav-type--toggle a {
    display: flex;
    align-items: center;
    gap: 1px;
    color: rgba(var(--cdp-main-rgb), 0.65);
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 2px 8px;
    border-radius: 4px;
}

.slinav-type--toggle a:hover {
    color: rgba(var(--cdp-main-rgb), 0.85);
    background: rgba(var(--cdp-main-rgb), 0.08);
}

.slinav-type--toggle i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.slinav-type--toggle:hover i {
    transform: scale(1.1);
}


/* ── 自定义菜单模块（与数据模块视觉区分） ── */
.slinav-module--custom {
}

.slinav-module--custom .slinav-list {
    padding: 4px 0;
}
.slinav-module--custom .slinav-type{
    background: none;
    padding: 0 0 0 10px ;
}

/* ── 自定义菜单下方首个功能模块（增强分隔感） ── */
.slinav-module--custom + .slinav-module,
.slinav-module--custom + .slinav-module--static {
    padding-top: 6px;
}

/* ── 静态快捷菜单模块 ── */
.slinav-module--static .slinav-type {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.07) 0%, rgba(96, 165, 250, 0.02) 100%);
}

.slinav-type--static span {
    font-size: 12px;
    color:rgba(var(--cdp-main-rgb), 0.6);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.slinav-module--static + .slinav-module {
    padding-top: 6px;
}

.slinav-type--custom { 
    background: transparent;
}

.slinav-type--custom span {
    font-size: 12px;
    font-weight: 600;
    color: rgba(var(--cdp-main-rgb), 0.65);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.slinav-type--custom a {
    padding: 2px 10px;
    font-size: 11px;
    color: rgba(var(--cdp-main-rgb), 0.55);
    background: rgba(var(--cdp-main-rgb), 0.06);
    border-radius: 3px;
    transition: color 0.2s, background 0.2s;
}

.slinav-type--custom a:hover {
    color: rgba(var(--cdp-main-rgb), 0.85);
    background: rgba(var(--cdp-main-rgb), 0.12);
}

/* 自定义菜单空状态按钮 */
.slinav-custom-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(var(--cdp-main-rgb), 0.55);
    text-decoration: none;
    border: 1px dashed rgba(var(--cdp-main-rgb), 0.25);
    transition: all 0.2s;
}
.slinav-custom-add-btn i {
    font-size: 14px;
    color: rgba(var(--cdp-main-rgb), 0.45);
}
.slinav-custom-add-btn:hover {
    color: rgba(var(--cdp-main-rgb), 0.8);
    background: rgba(var(--cdp-main-rgb), 0.06);
    border-color: rgba(var(--cdp-main-rgb), 0.45);
}
.slinav-custom-add-btn:hover i {
    color: rgba(var(--cdp-main-rgb), 0.7);
}
.slinav-custom-normal{border-bottom: 1px dashed rgba(var(--cdp-main-rgb), 0.15);}


.slinav-module--static .slinav-title{
    padding: 2px 6px;
}
.slinav-module--static .slinav-title .titname .sname{
    font-size: 14px;
        font-weight: normal;
    color: rgba(var(--cdp-main-rgb), 1);
}

/* ── 模块列表区 ── */
.slinav-list {

}

/* ── 模块折叠切换按钮（JS注入） ── */
.slinav-type-toggle {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: none;
    background: transparent;
    color: rgba(var(--cdp-main-rgb), 0.45);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-right: 4px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    font-size: 13px;
}

.slinav-type-toggle:hover {
    color: rgba(var(--cdp-main-rgb), 0.85);
    background: rgba(var(--cdp-main-rgb), 0.07);
}

.slinav-type-toggle i {
    transition: transform 0.25s;
}

/* 折叠状态 */
.slinav-type--collapsed .slinav-type-toggle i {
    transform: rotate(-90deg);
}

.slinav-list--hidden {
    display: none;
}

/* ── 导航项 ── */
.slinav-item {
    cursor: pointer;
    transition: all 0.2s;
}

.slinav-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px;
    border-left: 0px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.slinav-title:hover {
    background: rgba(var(--cdp-main-rgb), 0.07);
}

/* ── 菜单选中态 ── */
.slinav-item--active .slinav-title {
    background: var(--cxui-btn-type-background);
    color: var(--cxui-btn-type-text-color);
}

.slinav-item--active .slinav-title .sicon {
    background: rgba(124, 58, 237, 0.1);
}

.slinav-item--active .slinav-title .sicon i {
    color: rgba(124, 58, 237, 0.88);
}

.slinav-item--active .slinav-title .sname {
    color: rgba(124, 58, 237, 0.92);
    font-weight: 600;
}

.slinav-item--active .slinav-title .slinav-arrow i {
    color: rgba(124, 58, 237, 0.55);
}

.slinav-title .titname {
    display: flex;
    align-items: center;
    gap: 1px;
    flex: 1;
    min-width: 0;
}

.slinav-title .titname .sicon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 5px;
    flex-shrink: 0;    position: relative;
}

.slinav-title .titname .sicon i {
    font-size: 16px;
    color: #727272;
    position: absolute;
    top: 6px;
}

.slinav-title .titname .sname {
    font-size: 15px;
    font-weight: bold;
    color: #1E1F22;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: Source Han Sans SC !important;
}

.slinav-title .titool {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 4px;
    margin-right: 2px;
}

/* ── 展开箭头 ── */
.slinav-arrow {
    display: flex;
    align-items: center;
    transition: transform 0.25s;
}

.slinav-arrow i {
    font-size: 15px;
    color: #b0b0b0;
}

.slinav-expanded > .slinav-title .slinav-arrow {
    transform: rotate(90deg);
}

/* 二级菜单箭头缩小 */
.slinav-level-2 .slinav-arrow i {
    font-size: 13px;
    color: #b5b5b5;
}

/* ── 子菜单容器 ── */
.slinav-sub {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
}

.slinav-sub.expanded {
    height: auto;
}

/* ── 二级菜单项 ── */
.slinav-level-2 {
    position: relative;
}

.slinav-level-2 .slinav-title {
    padding: 8px 0 8px 30px;
    margin: 2px 0;
}

.slinav-level-2 .slinav-title .sname {
    font-size: 14px;
    font-weight: normal;
    color: rgba(var(--cdp-main-rgb), 1);
}

/* 二级菜单标记：品牌色短竖条 */
.slinav-level-2 .slinav-title::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 19px;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 2px;
    background: #7c3aed;
    opacity: 0.5;
    transition: opacity 0.2s, height 0.2s;
}

.slinav-level-2:hover .slinav-title::before {
    opacity: 0.75;
}

.slinav-level-2.slinav-item--active .slinav-title::before {
    opacity: 0.9;
    height: 14px;
    width: 3px;
    left: 18px;
}

/* 二级菜单下三级子项的容器：添加树形连接线 */
.slinav-level-2 > .slinav-sub.expanded {
    position: relative;
    margin-left: 18px;
    padding: 6px 8px;
    background: rgba(var(--cdp-main-rgb), 0.03);
    border-radius: 4px;
}

.slinav-level-2 .slinav-title .titool{
    margin-right: 10px;
}




/* ── 三级菜单项 ── */
.slinav-level-3 {
    position: relative;
}

.slinav-level-3 .slinav-title {
    padding: 5px 8px 5px 14px;
    margin: 1px 0;
    border-radius: 4px;
}

.slinav-level-3 .slinav-title .sname {
    font-size: 14px;
    font-weight: normal;
    color: rgba(var(--cdp-main-rgb), 0.8);
}

/* 三级菜单标记：连线上空心小圆点 */
.slinav-level-3 .slinav-title::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    border: 1px solid rgba(var(--cdp-main-rgb), 0.38);
    background: var(--cdp-whole-bg, #f8f7fa);
}

.slinav-level-3.slinav-item--active .slinav-title::before {
    border-color: #7c3aed;
    background: #7c3aed;
}

/* ── 自定义菜单区 ── */
.slinav-myself {
    margin-top: 2px;
}

.slinav-myself a {
    text-align: center;
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
    text-decoration: none;
}

.slinav-myself a:hover {
    border-radius: 8px;
}

.slinav-myself i {
    font-size: 15px;
}

.divider { border-top: 1px solid #e8e8ed; }

/* 底部链接 */
.cdp-customer {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: #fff;
}

.custlink {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 6px 0 10px;
}

.custlink .item { text-align: center; }

.custlink .item:first-child { border-right: 1px solid #ddd; }

.custlink .item a { font-size: 12px; }


/* ============================================================================
   九、详情卡片 (fixed 定位弹出)
============================================================================ */

/* 详情面板容器 */
.detail-panel {
    flex: 1;
    padding: 40px;
    position: relative;
    min-width: 0;
}


/* 详情卡片 - 悬浮弹出 */
.cdpdetail-card {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    max-width: 660px;
    min-width: 450px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-30px) scale(0.98);
    transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: fixed;
    z-index: 9999;
    pointer-events: none;
}

.cdpdetail-card.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

.cdpdetail-card h2 {
    color: #2c3e50;
    padding-bottom: 10px;
}

.cdpdetail-card p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 10px;
}

/* 卡片内部布局 */
.detcard-warp {
    display: flex;
    overflow: hidden;
}

.detleft {
    padding: 15px;
    flex: 1;
    min-width: 240px;
    border-right: 1px solid #ebeef5;
}
.detright {
    padding: 15px;
    width: 300px;
}
.detlfcard { margin-top: 15px; }
.detlfcard:first-child { margin-top: 0; }

.detitle {
    font-size: 12px;
    padding: 7px 10px;
    margin-bottom: 6px;
    color: rgba(var(--cdp-main-rgb), 0.6);
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.07) 0%, rgba(167, 139, 250, 0.02) 100%);
}

/* 快捷导航 */
.detnav {
}
.detnav a {
    padding: 6px 10px 6px 25px;
    color: var(--cdp-base);
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    display: block;
    position: relative;
}
.detnav a::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 16px;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 2px;
    background: #7c3aed;
    opacity: 0.5;
    transition: opacity 0.2s, height 0.2s;}

.detnav a:hover { background: rgba(69, 56, 231, 0.14); }

/* 推荐指数列表 */
.detrecomd li {
    display: flex;
    cursor: pointer;
    justify-content: space-between;
    align-items: center;
    padding: 4px 6px;
    font-size: 13px;
}

.detrecomd li:hover { background: rgba(69, 56, 231, 0.14); }

.detrecomd .name { color: #606266; }

.detrecomd .rise { color: #f56c6c; }

.detrecomd .fall { color: #67c23a; }

/* 股票列表 */
.detstlist {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.detstkitem {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 4px 6px;
}

.detstkitem:hover {
    background: rgba(69, 56, 231, 0.14);
    border-radius: 4px;
}

.detstkitem .dtstklogo {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    background: #dcdfe6;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #666;
    overflow: hidden;
}

.detstkitem .dtstklogo img {
    width: 100%;
    border-radius: 6px;
}

.detstkitem .info { flex: 1; }

.detstkitem .stkshort {
    font-size: 14px;
    font-weight: 500;
    height: 18px;
}

.detstkitem .stkcode {
    font-size: 12px;
    color: #909399;
    height: 18px;
}

.detstkitem .price { text-align: right; }

.detstkitem .latest {
    font-size: 14px;
    font-weight: bold;
}

.detstkitem .rise { color: #f56c6c; }
.detstkitem .fall { color: #67c23a; }






/* 推荐策略列表 */


.detstglist {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 6px;
    padding: 10px 0;
}

.detstgitem {
    background: rgba(var(--cdp-blue-gray-rgb), 0.04);
    border: 1px solid rgba(var(--cdp-main-rgb), 0.08);
    border-radius: 6px;
    padding: 10px;
    cursor: pointer;
}

.detstgitem:hover {
    background: rgba(var(--cdp-blue-gray-rgb), 0.08);
    border-color: rgba(var(--cdp-main-rgb), 0.15);
}

.detstgitem .stgheader {
    display: flex;
    align-items: center;
    gap: 8px;
}

.detstgitem .stgname {
    font-size: 14px;
    font-weight: 600;
    color: rgba(var(--cdp-main-rgb), 0.9);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detstgitem .stgcount {
    font-size: 12px;
    color: rgba(var(--cdp-main-rgb), 0.5);
    flex-shrink: 0;
}

.detstgitem .stgdesc {
    font-size: 12px;
    color: rgba(var(--cdp-main-rgb), 0.65);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}



/* ============================================================================
   十、内容区域
============================================================================ */

/* 顶部提示条 */
.cdp-comtips {
    margin: 10px 0;
    background: #fff;
    padding: 10px 25px;
    border-radius: 10px;
}

/* 内容区包裹 */
.cdp-content {
    min-height: 300px;
}

/* iframe 包裹 */
.iframe-wrapper {
    width: 100%;
    height: 100%;
}

.iframe-wrapper iframe {
    width: 100%;
    min-height: 1400px;
    border: none;
}

/* 页脚 */
.cdp-footer {
    padding: 16px 24px;
    background-color: #fff;
    font-size: 13px;
    color: #909399;
    margin-top: 15px;
}

.cdp-footer a {
    color: #606266;
    text-decoration: none;
    transition: color 0.2s;
}

.cdp-footer a:hover {
    color: #4538e7;
}

.footer-content-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-beian {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 6px;
}

.footer-beian img {
    width: 14px;
    height: 14px;
    margin-right: 4px;
    vertical-align: middle;
}

.footer-copyright {
    white-space: nowrap;
    color: #909399;
}

.footer-copyright a {
    color: #606266;
}


/* ============================================================================
   十一、AI 助手悬浮按钮 & 对话框
============================================================================ */

/* 悬浮按钮 */
.cdp-ai-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 10000;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4538e7, #6c5ce7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(69, 56, 231, 0.35);
    transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s;
}

.cdp-ai-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(69, 56, 231, 0.5);
}

.cdp-ai-btn i {
    font-size: 26px;
}

.cdp-ai-btn--hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.5);
}

/* 蒙层 */
.cdp-ai-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    pointer-events: none;
}

.cdp-ai-overlay--visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* 对话框容器 - 右侧面板 */
.cdp-ai-dialog {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    width: 600px;
    max-width: 100vw;
    height: 100vh;
    background: #fff;
    border-radius: 12px 0 0 12px;
    box-shadow: -4px 0 40px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.cdp-ai-dialog--open {
    transform: translateX(0);
}

/* 对话框头部 */
.cdp-ai-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #ebeef5;
    background: linear-gradient(135deg, #4538e7, #6c5ce7);

    color: #fff;
    flex-shrink: 0;
}

.cdp-ai-dialog-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
}

.cdp-ai-dialog-title i {
    font-size: 20px;
}

.cdp-ai-dialog-actions {
    display: flex;
    gap: 8px;
}

.cdp-ai-dialog-minimize,
.cdp-ai-dialog-close {
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.cdp-ai-dialog-minimize:hover,
.cdp-ai-dialog-close:hover {
    background: rgba(255, 255, 255, 0.35);
}

.cdp-ai-dialog-minimize i,
.cdp-ai-dialog-close i {
    font-size: 16px;
}

/* 对话框消息区 */
.cdp-ai-dialog-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    background: #f8f9fc;
}

.cdp-ai-messages {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* 单条消息 */
.cdp-ai-msg {
    display: flex;
    gap: 10px;
    animation: cdpAiFadeIn 0.3s ease;
}

@keyframes cdpAiFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cdp-ai-msg-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.cdp-ai-msg-bot .cdp-ai-msg-avatar {
    background: linear-gradient(135deg, #eef1ff, #ddd9ff);
    color: #4538e7;
}

.cdp-ai-msg-user .cdp-ai-msg-avatar {
    background: linear-gradient(135deg, #e8f4fd, #c8e0f8);
    color: #409eff;
}

.cdp-ai-msg-content {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.6;
    word-break: break-word;
}

.cdp-ai-msg-bot .cdp-ai-msg-content {
    background: #fff;
    color: #303133;
    border-radius: 4px 10px 10px 10px;
}

.cdp-ai-msg-user {
    flex-direction: row-reverse;
}

.cdp-ai-msg-user .cdp-ai-msg-content {
    background: linear-gradient(135deg, #4538e7, #6c5ce7);
    color: #fff;
    border-radius: 10px 4px 10px 10px;
}

.cdp-ai-msg-content p {
    margin: 0;
}

/* 对话框底部 */
.cdp-ai-dialog-footer {
    padding: 12px 20px;
    border-top: 1px solid #ebeef5;
    background: #fff; 
    flex-shrink: 0;
}

.cdp-ai-input-wrap {
    display: flex;
    gap: 10px;
    align-items: center;
}

.cdp-ai-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    font-family: Source Han Sans SC !important;
}

.cdp-ai-input:focus {
    border-color: #4538e7;
}

.cdp-ai-input::placeholder {
    color: #c0c4cc;
}

.cdp-ai-send-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: linear-gradient(135deg, #4538e7, #6c5ce7);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.cdp-ai-send-btn:hover {
    transform: scale(1.05);
}

.cdp-ai-send-btn:active {
    transform: scale(0.95);
}

.cdp-ai-send-btn i {
    font-size: 18px;
}

/* 响应式 - 移动端全屏 */
@media (max-width: 480px) {
    .cdp-ai-dialog {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
    }
    .cdp-ai-dialog-header {
        border-radius: 0;
    }
    .cdp-ai-dialog-footer {
        border-radius: 0;
    }
}

/* ============================================================================
   自定义菜单编辑弹窗
============================================================================ */
.custom-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 10010;
    background: rgba(0,0,0,.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
    pointer-events: none;
}
.custom-menu-overlay--visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.custom-menu-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 10011;
    width: 680px;
    max-width: 94vw;
    max-height: 64vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0,0,0,.18);
    display: flex;
    flex-direction: column;
    transform: translate(-50%, -50%) scale(.9);
    opacity: 0;
    visibility: hidden;
    transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .3s ease, visibility .3s ease;
    pointer-events: none;
}
.custom-menu-dialog--open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.custom-menu-dialog-header {
    padding: 24px 24px 0;
    position: relative;
    flex-shrink: 0;
}
.custom-menu-dialog-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #303133;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.custom-menu-dialog-header h3 i { color: #4538e7; }
.custom-menu-dialog-header p {
    margin: 0;
    font-size: 13px;
    color: #909399;
}
.custom-menu-dialog-header p b {
    color: #4538e7;
    font-weight: 600;
}
.custom-menu-dialog-close {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 16px;
    transition: all .15s;
}
.custom-menu-dialog-close:hover {
    background: #e8e8e8;
    color: #333;
}

.custom-menu-dialog-body {
    flex: 1;
    overflow-y: auto;
    padding: 0px 20px 8px;
}

/* ── 已选分类折叠组 ── */
.custom-menu-selected { margin-bottom: 12px; }

.cm-group {
    margin-bottom: 10px;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}
.cm-group--empty {
    opacity: .55;
}
.cm-group--collapsed .cm-group-body { display: none; }
.cm-group--collapsed .cm-group-arrow { transform: rotate(-90deg); }

.cm-group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    cursor: pointer;
    user-select: none;
    transition: background .15s;
}
.cm-group-header:hover { background: #fafafa; }

.cm-group-arrow {
    font-size: 14px;
    color: #909399;
    transition: transform .2s;
    flex-shrink: 0;
}
.cm-group-name {
    font-size: 13px;
    font-weight: 600;
    color: #303133;
    flex: 1;
}
.cm-group-count {
    font-size: 11px;
    color: #909399;
    background: #f0f0f0;
    padding: 2px 10px;
    border-radius: 10px;
}

.cm-group-body {
    padding: 0 12px 10px;
}

.cm-group-empty {
    font-size: 12px;
    color: #c0c4cc;
    padding: 8px 4px;
}

/* 已选为空提示 */
.cm-selected-empty {
    padding: 16px;
    text-align: center;
    font-size: 13px;
    color: #909399;
}

/* 已选中项 */
.cm-selected-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 14px;
    color: #222;
    transition: background .12s;
    margin-top: 4px;
}
.cm-selected-item:hover { background: #f5f3ff; }
.cm-selected-item i { font-size: 16px; color: #4538e7; flex-shrink: 0; }
.cm-selected-item span { flex: 1; }

.cm-item-remove {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c0c4cc;
    font-size: 14px;
    transition: all .15s;
    flex-shrink: 0;
}
.cm-item-remove:hover {
    background: #fee2e2;
    color: #f03d3f;
}

/* ── 添加更多 ── */
.custom-menu-addmore {
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
}

.cm-addmore-group-title {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin: 10px 0 10px 10px;
}

.cm-addmore-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-bottom: 10px;
}

.cm-add-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all .15s;
    border: 1px solid transparent;
}
.cm-add-item:hover {
    background: #f5f3ff;
    color: #4538e7;
    border-color: #e0dcf9;
}
.cm-add-item i:first-child { font-size: 14px; color: #999; flex-shrink: 0; }
.cm-add-item:hover i:first-child { color: #4538e7; }
.cm-add-item span { flex: 1; }

.cm-add-icon {
    font-size: 14px;
    color: #c0c4cc;
    flex-shrink: 0;
}
.cm-add-item:hover .cm-add-icon { color: #4538e7; }

.cm-addmore-hint {
    text-align: center;
    padding: 8px 12px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #e6a23c;
    background: #fdf6ec;
    border-radius: 6px;
}
.cm-addmore-hint i { margin-right: 4px; }

.cm-add-item--disabled {
    opacity: .45;
    pointer-events: none;
}

/* ── 底部按钮 ── */
.custom-menu-dialog-footer {
    padding: 14px 24px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.custom-menu-cancel {
    padding: 8px 20px;
    background: #f5f5f5;
    color: #666;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}
.custom-menu-cancel:hover { background: #e8e8e8; }

.custom-menu-save {
    padding: 8px 24px;
    background: #4538e7;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}
.custom-menu-save:hover {
    background: #372ad4;
    box-shadow: 0 4px 12px rgba(69,56,231,.3);
}

/* 自定义菜单区域中的动态项 */
.slinav-myself .slinav-my-item {
    margin: 2px 0;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap:4px;
    font-size: 12px;
    color: #303133;
    cursor: pointer;
    border-radius: 6px;
    transition: all .2s;
    border-left: 2px solid transparent;
}
.slinav-myself .slinav-my-item:hover {
    background: rgba(69,56,231,.08); 
}
.slinav-myself .slinav-my-item i {
    font-size: 12px;
    color: #727272;
    flex-shrink: 0;
}
.slinav-myself .slinav-my-item span{
display: flex;
    align-items: center;
    color: rgb(30, 31, 34);
    letter-spacing: 0.4px;
    font-size: 12px;
    height: 24px;
    line-height: 24px;
    font-family: "Source Han Sans SC" !important;
}





/* 统一整站的二级菜单 */

.cdptwo-nav {
    background: var(--bgmain2-color);
    z-index: 1000;
    border-radius: 4px;
    padding: 10px 15px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 15px;
}
.cdptwo-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: flex-start;
}
.cdptwo-item {
    position: relative;
    text-align: center;
    padding: 10px 0;
    margin: 0 5px;
    flex: 0 0 auto;
}

.cdptwo-link {
    color: rgba(var(--cdp-main-rgb), 0.8) !important;
    font-size: 16px;
    text-decoration: none;
    padding: 10px 12px;
    height: auto;
    letter-spacing: 0.5px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    box-sizing: border-box;
}

.cdptwo-link:hover {
    background-color: var(--text-005-color);
    border-radius: 6px;
}

.cdptwo-link.active {
    background: rgba(78, 70, 180, 0.1);
    color: var(--cdp-base) !important;
    font-weight: 600;
}
