/* 色彩导航页面基础样式 */
.xun-color-navigation-page {
    --primary-color: #3b82f6;
    --secondary-color: #10b981;
}



/* 色彩导航页面标题区域外层容器 - 承载背景 */
.xun-color-nav-header-wrap {
    position: relative;
    width: 100%;
    min-height: 100%;
    padding: 0;
    text-align: center;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 毛玻璃效果 - 使用伪元素实现，这样不会被内联背景样式覆盖 */
.xun-color-nav-header-wrap.xun-color-nav-header-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(var(--glass-blur, 30px)) saturate(var(--glass-saturation, 180%));
    -webkit-backdrop-filter: blur(var(--glass-blur, 30px)) saturate(var(--glass-saturation, 180%));
    background-color: rgba(255, 255, 255, var(--glass-bg-opacity, 0.5));
    border: none;
    z-index: 0;
    pointer-events: none;
}

.xun-color-nav-header-wrap.xun-color-nav-header-glass > .xun-color-nav-header {
    position: relative;
    z-index: 1;
}

/* 色彩导航页面标题区域 - 内容容器 */
.xun-color-nav-header {
    position: relative;
    width: auto;
    max-width: 100%;
    padding: 0 20px;
    text-align: center;
    color: #fff;
    border: none;
    box-shadow: none;
    box-sizing: border-box;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.xun-color-nav-header--transparent {
    padding-top: calc(20px + var(--header-height, 60px));
}

.xun-color-nav-header .xun-category-title {
    font-size: 32px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.xun-color-nav-header .xun-category-desc {
    font-size: 16px;
    opacity: 0.9;
    margin: 0 0 10px 0;
}

.xun-color-nav-header .xun-category-subtitle {
    font-size: 18px;
    opacity: 0.85;
    margin: 6px 0 8px 0;
}

.xun-color-nav-header .xun-category-meta {
    font-size: 14px;
    opacity: 0.8;
}

/* 侧边栏 */
.xun-color-navigation-sidebar {
    width: 180px;
    background-color: transparent;
    border-radius: 12px;
    padding: 0;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: none;
    transition: width 0.3s ease, padding 0.3s ease;
}

.xun-color-navigation-sidebar.is-collapsed {
    width: 50px;
    padding: 0;
}

.xun-color-navigation-sidebar.is-collapsed .xun-color-navigation-sidebar-header,
.xun-color-navigation-sidebar.is-collapsed .xun-color-navigation-sidebar-name {
    display: none;
}

.xun-color-navigation-sidebar.is-collapsed .xun-color-navigation-sidebar-item {
    justify-content: center;
    padding: 12px;
}

.xun-color-sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #666;
    font-size: 18px;
    transition: all 0.2s ease;
}

.xun-color-sidebar-toggle:hover {
    background-color: #f5f7fa;
    color: var(--primary-color, #3b82f6);
}

.xun-color-sidebar-toggle-icon {
    transition: transform 0.3s ease;
}

.xun-color-navigation-sidebar.is-collapsed .xun-color-sidebar-toggle-icon {
    transform: rotate(180deg);
}

/* 圆点样式 */
.xun-color-navigation-sidebar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-color, #3b82f6);
    transition: all 0.2s ease;
}

/* 侧边栏项目 - 按钮样式 */
.xun-color-navigation-sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin-bottom: 8px;
    background-color: transparent;
}

.xun-color-navigation-sidebar-item:hover {
    background-color: transparent;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    color: var(--secondary-color, #10b981);
}

.xun-color-navigation-sidebar-item:hover .xun-color-navigation-sidebar-dot {
    background-color: var(--secondary-color, #10b981);
}

.xun-color-navigation-sidebar-item.is-active {
    background-color: var(--primary-color, #3b82f6);
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.xun-color-navigation-sidebar-item.is-active .xun-color-navigation-sidebar-dot {
    background-color: #fff;
    transform: scale(1.3);
}

/* 主内容容器 */
.xun-color-navigation-container {
    display: flex;
    gap: 20px;
    margin-top: 24px;
}

.xun-color-navigation-content-wrapper {
    flex: 1;
	margin-bottom: 40px;
}

/* 移动端横向导航 - PC端隐藏 */
.xun-color-mobile-nav {
    display: none;
}

/* 子分类标签 */
.xun-color-subcategory-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 0;
    margin-bottom: 8px;
}

.xun-color-subcategory-tab {
    padding: 6px 14px;
    font-size: 13px;
    color: #666;
    background-color: #f0f0f0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.xun-color-subcategory-tab:hover {
    background-color: #e8e8e8;
    color: #333;
}

.xun-color-subcategory-tab.is-active {
    background-color: var(--primary-color, #3b82f6);
    color: #fff;
    border-color: var(--primary-color, #3b82f6);
}

.xun-color-navigation-content.is-hidden {
    display: none;
}

.xun-color-navigation-content {
    display: none;
    width: 100%;
}

.xun-color-navigation-content.is-active {
    display: block;
}

/* 侧边栏分隔线 */
.xun-color-navigation-sidebar-divider {
    height: 1px;
    background-color: #eee;
    margin: 8px 0;
}

/* 配色方案卡片 - 与其他卡片统一样式 */
.xun-color-palette-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.xun-color-palette-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.xun-color-palette-header {
    font-size: 12px;
    color: #999;
    background-color: #eee;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    margin-bottom: 8px;
    align-self: flex-start;
}

.xun-color-palette-preview {
    display: flex;
    flex: 1;
    min-height: 60px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0;
	border: 1px solid #e5e5e5;
}

.xun-color-palette-block {
    flex: 1;
    cursor: pointer;
    transition: opacity 0.2s ease;
    position: relative;
    min-width: 0;
    min-height: 40px;
}

.xun-color-palette-block:hover {
    opacity: 0.9;
}

.xun-color-palette-codes {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    font-family: "Consolas", monospace;
    flex-shrink: 0;
    height: 24px;
    line-height: 24px;
    overflow: hidden;
}

.xun-color-palette-codes span {
    flex: 1;
    font-size: 12px;
    color: #666;
    font-family: "Consolas", monospace;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 纯色样式 */
.xun-color-solid-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

/* 纯色卡片样式 - 与渐变卡片保持一致 */
.xun-color-solid-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    position: relative;
}

.xun-color-solid-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.xun-color-solid-header {
    font-size: 12px;
    color: #999;
    background-color: #eee;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    margin-bottom: 12px;
}

.xun-color-solid-preview {
    height: 80px;
    width: 100%;
    border-radius: 6px;
    margin-bottom: 10px;
    transition: opacity 0.2s ease;
    position: relative;
    background-size: cover;
    border: 1px solid #e5e5e5;
}

.xun-color-solid-card:hover .xun-color-solid-preview {
    opacity: 0.9;
}

.xun-color-solid-codes {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    font-family: "Consolas", monospace;
}

.xun-color-solid-code {
    color: #999;
    font-family: "Consolas", monospace;
}

/* 分类视图样式 */
.xun-color-category-header {
    margin-bottom: 6px;
    padding-bottom: 8px;
    border-bottom: none;
}

.xun-color-category-header h3 {
    font-size: 18px;
    color: #333;
    margin: 0 0 8px 0;
}

.xun-color-category-header p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.xun-color-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

/* 分类视图中的配色方案卡片 */
.xun-color-category-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.xun-color-category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.xun-color-category-header {
    font-size: 12px;
    color: #999;
    margin-bottom: 12px;
    background-color: transparent;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
}

.xun-color-category-preview {
    display: flex;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.xun-color-category-block {
    flex: 1;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.xun-color-category-block:hover {
    opacity: 0.9;
}

.xun-color-category-codes {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    font-family: "Consolas", monospace;
}

/* 空状态样式 */
.xun-color-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #999;
}

.xun-color-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.xun-color-empty-state p {
    font-size: 14px;
    margin: 0;
}

/* 渐变色卡片样式 */
.xun-color-gradient-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.xun-color-gradient-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.xun-color-gradient-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.xun-color-gradient-header {
    font-size: 12px;
    color: #999;
    background-color: #eee;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    margin-bottom: 8px;
    align-self: flex-start;
}

.xun-color-gradient-preview {
    height: 80px;
    width: 100%;
    border-radius: 6px;
    margin-bottom: 0;
    position: relative;
    background-size: cover;
    flex: 1;
    min-height: 60px;
	border: 1px solid #e5e5e5;
}

.xun-color-gradient-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px 0;
    justify-content: center;
}

.xun-color-gradient-swatch {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.xun-color-gradient-swatch:hover {
    transform: scale(1.15);
}

.xun-color-gradient-codes {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 12px;
    color: #666;
    font-family: "Consolas", monospace;
    max-height: 24px;
    overflow: hidden;
}

.xun-color-gradient-codes span {
    flex: 1;
    font-size: 12px;
    color: #666;
    font-family: "Consolas", monospace;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

/* 气泡提示样式 */
.xun-color-tooltip {
    position: fixed;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.xun-color-tooltip--success {
    background-color: rgba(52, 199, 89, 0.9);
}

.xun-color-tooltip--error {
    background-color: rgba(255, 59, 48, 0.9);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .xun-color-navigation-page {
        padding: 0;
        overflow-x: hidden;
        width: 100%;
        margin: 0;
    }

    /* 手机端标题区域优化 */
    .xun-color-nav-header-wrap {
        padding: 20px 15px;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .xun-color-nav-header {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .xun-color-nav-header .xun-category-title {
        font-size: 22px;
    }

    .xun-color-nav-header .xun-category-desc {
        font-size: 13px;
    }

    .xun-color-nav-header .xun-category-subtitle {
        font-size: 14px;
    }

    .xun-color-navigation-sidebar {
        display: none !important;
    }

    /* 手机端侧边栏导航移到内容顶部横向排列 */
    .xun-color-navigation-container {
        display: flex;
        flex-direction: column;
        margin-top: 8px;
        padding: 0 12px;
        box-sizing: border-box;
        width: 100%;
    }

    .xun-color-navigation-content-wrapper {
        padding: 0;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    /* 手机端横向导航容器 */
    .xun-color-mobile-nav {
        display: flex !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 8px;
        padding: 8px 0;
        margin-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        width: 100%;
        box-sizing: border-box;
    }

    .xun-color-mobile-nav::-webkit-scrollbar {
        display: none;
    }

    .xun-color-mobile-nav .xun-color-navigation-sidebar-item {
        flex-shrink: 0;
        margin-bottom: 0;
        padding: 8px 14px;
        font-size: 13px;
        white-space: nowrap;
        background-color: #fff;
        color: #333;
        border-radius: 8px;
    }

    .xun-color-mobile-nav .xun-color-navigation-sidebar-item.is-active {
        background-color: var(--primary-color, #3b82f6);
        color: #fff;
    }

    /* 手机端子分类标签 */
    .xun-color-subcategory-tabs {
        gap: 6px;
        padding: 6px 0;
    }

    .xun-color-subcategory-tab {
        padding: 5px 12px;
        font-size: 12px;
    }

    .xun-color-category-header {
        margin-bottom: 8px;
        padding-bottom: 6px;
    }

    .xun-color-category-header h3 {
        font-size: 16px;
    }

    .xun-color-category-header p {
        font-size: 13px;
    }

    /* 手机端配色卡片样式 */
    .xun-color-palette-card {
        padding: 10px;
        border-radius: 8px;
    }

    .xun-color-palette-header {
        font-size: 11px;
        padding: 2px 6px;
        border-radius: 8px;
        margin-bottom: 6px;
    }

    .xun-color-palette-preview {
        min-height: 45px;
        border-radius: 6px;
        margin-bottom: 0;
    }

    .xun-color-palette-codes span {
        font-size: 9px;
    }

    /* 手机端渐变色卡片样式 */
    .xun-color-gradient-card {
        padding: 10px;
        border-radius: 8px;
    }

    .xun-color-gradient-header {
        font-size: 11px;
        padding: 2px 6px;
        border-radius: 8px;
        margin-bottom: 6px;
    }

    .xun-color-gradient-preview {
        min-height: 45px;
        border-radius: 6px;
        margin-bottom: 0;
    }

    .xun-color-gradient-swatches {
        padding: 4px 0;
        gap: 2px;
    }

    .xun-color-gradient-swatch {
        width: 14px;
        height: 14px;
        border-radius: 3px;
    }

    .xun-color-gradient-codes {
        max-height: 18px;
    }

    .xun-color-gradient-codes span {
        font-size: 9px;
    }

    .xun-color-solid-grid,
    .xun-color-gradient-grid,
    .xun-color-palette-grid,
    .xun-color-category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow: hidden;
    }

    .xun-color-solid-card,
    .xun-color-gradient-card,
    .xun-color-palette-card {
        box-sizing: border-box;
        overflow: hidden;
        max-width: 100%;
    }

    .xun-color-solid-preview {
        height: 50px;
    }

    .xun-color-gradient-preview {
        height: 50px;
    }

    .xun-color-palette-codes,
    .xun-color-solid-info,
    .xun-color-gradient-codes {
        font-size: 10px;
    }
}

@media (min-width: 769px) {
    .xun-color-navigation-right-notice {
        display: flex;
    }
}