/* 示例中心 — 第一批终修收口：目录语义、intro 层级、留白、能力卡片 */

.noHeader .main-sidebar,
.noHeader .left-side {
    padding-top: 0;
}

/* —— A 左侧目录：父级展开态与叶子当前态分层，避免与右侧语义冲突（配合 JS 按父级作用域高亮） —— */
.noHeader.skin-blue .main-sidebar,
.noHeader.skin-blue .left-side {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-right: 1px solid var(--doc-border-strong);
    box-shadow: 4px 0 24px rgba(15, 23, 42, 0.04);
}

.noHeader.skin-blue .sidebar {
    padding-bottom: 16px;
}

.noHeader.skin-blue .sidebar-menu > li > a {
    border-left: 3px solid transparent;
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 14px;
}

.noHeader.skin-blue .sidebar a {
    color: var(--doc-navy-soft) !important;
}

.noHeader.skin-blue .main-sidebar .firstMenuTitle {
    color: #0f172a !important;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.noHeader.skin-blue .main-sidebar .secondMenuTitle {
    color: #1e293b !important;
    font-weight: 500;
}

.noHeader.skin-blue .main-sidebar .thirdMenuTitle {
    color: #475569 !important;
    font-weight: 500;
    font-size: 13px !important;
}

.noHeader.skin-blue .main-sidebar .iconName {
    color: #64748b !important;
    margin-right: 10px;
    width: 1.15em;
    text-align: center;
}

/* 一级：展开/悬停（叶子选中时略弱于二级，见下） */
.noHeader.skin-blue .sidebar-menu > li:hover > a .iconName,
.noHeader.skin-blue .sidebar-menu > li.active > a .iconName {
    color: #0f172a !important;
}

.noHeader.skin-blue .sidebar-menu > li:hover > a,
.noHeader.skin-blue .sidebar-menu > li.active > a {
    background-color: rgba(14, 165, 182, 0.07) !important;
    border-left-color: rgba(14, 165, 182, 0.4) !important;
    color: var(--doc-navy) !important;
}

/* 一级仅有「带子项选中」时：略强调父行，仍弱于二级当前项 */
.noHeader.skin-blue .sidebar-menu > li.treeview.active:has(li.menuTitle.active) > a {
    background-color: rgba(14, 165, 182, 0.05) !important;
    border-left-color: rgba(14, 165, 182, 0.35) !important;
}

.noHeader.skin-blue .treeview-menu li > a {
    border-left: 3px solid transparent;
    padding-top: 7px;
    padding-bottom: 7px;
    font-size: 13px;
}

.noHeader.skin-blue .treeview-menu li > a:hover {
    background-color: rgba(15, 23, 42, 0.05) !important;
    border-left-color: rgba(14, 165, 182, 0.45) !important;
    color: #0f172a !important;
}

/* 二级当前项：主高亮 */
.noHeader.skin-blue .treeview-menu > li.menuTitle.active > a {
    background-color: rgba(14, 165, 182, 0.13) !important;
    border-left-color: var(--doc-accent) !important;
    color: #0f172a !important;
    font-weight: 600 !important;
}

.noHeader.skin-blue .treeview-menu > li > a {
    color: var(--doc-navy-soft) !important;
}

.noHeader.skin-blue .sidebar-menu .pull-right-container .fa,
.noHeader.skin-blue .sidebar-menu .pull-right-container .pull-right {
    color: #64748b !important;
    opacity: 1;
    font-size: 13px;
}

.noHeader.skin-blue .sidebar-menu > li:hover .pull-right-container .fa,
.noHeader.skin-blue .sidebar-menu > li.active .pull-right-container .fa {
    color: #334155 !important;
}

.noHeader .menuTitle a.active {
    color: #0f172a !important;
    font-weight: 600 !important;
}

/* :has 不支持时回退：无 has 时仍保留原层级色 */
@supports not selector(:has(*)) {
    .noHeader.skin-blue .sidebar-menu > li.treeview.active > a {
        background-color: rgba(14, 165, 182, 0.07) !important;
    }
}

/* —— intro：文档流单主标题（meta / h1 / lead），禁止负 margin 与叠层 —— */
.examples-main-panel {
    background: var(--doc-surface);
    border: 1px solid var(--doc-border);
    border-radius: 10px;
    box-shadow: var(--doc-shadow);
    padding: 14px 16px 16px;
    margin: 0 0 6px;
}

.examples-intro {
    display: block;
    margin: 0 0 0;
    padding: 0 0 14px;
    border-bottom: 1px solid var(--doc-border-light);
    background: transparent;
}

.examples-intro-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin: 0 0 10px;
}

.examples-intro-badge {
    display: inline-block;
    padding: 0 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.45);
}

.examples-intro-bc {
    font-size: 11px;
    font-weight: 400;
    color: #94a3b8;
    letter-spacing: 0.02em;
}

.examples-intro .examples-intro-title {
    margin: 0 0 8px;
    padding: 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.35;
    color: #0f172a;
    letter-spacing: 0.02em;
}

.examples-intro-lead {
    margin: 0;
    max-width: 52em;
    font-size: 13px;
    line-height: 1.55;
    color: #64748b;
    font-weight: 400;
}

.examples-container {
    background-color: transparent;
    margin-top: 0;
    padding: 14px 18px 22px;
    overflow: visible;
}

.examples-charts-root,
#charts-list {
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: inherit;
    background-color: transparent;
}

/* —— B 分类与 box：收紧内部留白 —— */
h3.category-title {
    margin-top: 0;
    margin-bottom: 14px;
    margin-left: 0;
    padding: 0 0 10px 0;
    height: auto;
    line-height: 1.3;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    border-bottom: 1px solid var(--doc-border);
    letter-spacing: 0.02em;
}

h3.category-title .fa {
    color: var(--doc-accent);
    margin-right: 6px;
    opacity: 0.9;
}

@media (min-width: 1400px) {
    .col-xlg-2 {
        width: 16.66666667%;
        padding-bottom: 10px;
    }
}

/* —— C 能力卡片：文字主导、缩略图退后、轻入口提示（纯 CSS） —— */
#charts-list .chart {
    width: 100%;
    max-width: 276px;
    margin: 0 auto 12px;
    background: var(--doc-surface);
    border: 1px solid var(--doc-border);
    border-radius: 8px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset, 0 3px 12px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
}

#charts-list .chart:hover,
#charts-list .chart:focus-within {
    transform: translateY(-2px);
    z-index: 2;
    border-color: rgba(14, 165, 182, 0.38);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

#charts-list .chart .chart-link {
    position: relative;
    display: block;
    padding: 0;
}

#charts-list .chart .chart-link .chart-title {
    color: #0f172a;
    text-align: left;
    padding: 12px 14px 8px;
    overflow: hidden;
    height: auto;
    min-height: 44px;
    line-height: 1.45;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    margin: 0;
    font-weight: 600;
    font-size: 14px;
    background: #f8fafc;
    border-bottom: 1px solid var(--doc-border-light);
}

#charts-list .chart .chart-link .chart-area {
    display: block;
    width: 100%;
    margin: 0;
    min-height: 88px;
    max-height: 118px;
    border-radius: 0;
    overflow: hidden;
    object-fit: cover;
    object-position: center center;
    background: #e2e8f0;
    border: none;
    border-top: 1px solid var(--doc-border-light);
    box-sizing: border-box;
    -webkit-filter: saturate(0.82) contrast(0.96);
    filter: saturate(0.82) contrast(0.96);
    opacity: 0.9;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

#charts-list .chart:hover .chart-link .chart-area,
#charts-list .chart:focus-within .chart-link .chart-area {
    -webkit-filter: saturate(0.95) contrast(1);
    filter: saturate(0.95) contrast(1);
    opacity: 1;
}

#charts-list .chart .chart-link::after {
    content: '进入试用';
    display: block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #64748b;
    padding: 6px 14px 9px;
    background: #fafbfc;
    border-top: 1px solid var(--doc-border-light);
}

.box {
    box-shadow: none;
}

.box.box-default {
    border: 1px solid var(--doc-border);
    border-radius: 10px;
    margin-bottom: 20px;
    padding: 0;
    background-color: var(--doc-surface);
    box-shadow: 0 1px 8px rgba(15, 23, 42, 0.035);
    overflow: hidden;
}

.box-title {
    padding-top: 0;
    padding-bottom: 0;
    color: #0f172a;
    font-family: "Helvetica Neue", Helvetica, Arial, "Heiti SC", "Microsoft Yahei", sans-serif;
    font-weight: 600;
    font-size: 15px;
}

.box-header {
    padding: 12px 16px 10px;
    background: #f8fafc;
    border-bottom: 1px solid var(--doc-border);
}

.box-body {
    background: var(--doc-surface);
    padding: 10px 8px 4px;
}

.main-footer {
    color: #64748b;
    font-size: 13px !important;
    text-align: center;
}

#charts-list > .category {
    padding-top: 28px;
}

#charts-list > .category:first-child {
    padding-top: 0;
}

.newTitle {
    color: #f8fafc;
    width: 26px;
    height: 26px;
    font-size: 11px;
    line-height: 26px;
    text-align: center;
    top: 8px;
    right: 8px;
    position: absolute;
    background: #0f766e;
    border-radius: 50%;
    font-weight: 600;
    border: 2px solid var(--doc-surface);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
