/**
 * PixelShare 网址导航系统样式
 * 
 * @package PixelShare
 * @author 猫大大
 * @version 1.0.0
 */

/* 主容器 */
.pixelshare-nav-container {
    background: transparent;
    position: relative;
    overflow: hidden;
}

/* 背景图片容器 */
.nav-background-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* 背景遮罩 */
.nav-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

/* 背景图片加载失败时的降级方案 */
.nav-background-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 背景图片加载动画 */
.nav-background-container {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.nav-background-container.loading {
    opacity: 0;
}

.nav-background-container.loaded {
    opacity: 1;
}

/* 性能优化：减少重绘 */
.nav-background-container {
    will-change: opacity;
    transform: translateZ(0);
}

/* 图片加载错误时的样式 */
.nav-background-container.error::before {
    opacity: 1;
}

.nav-background-container.timeout::before {
    opacity: 1;
}

/* 无背景图片时的样式 */
.nav-background-container:not([style*="background-image"])::before {
    opacity: 1;
}

/* 背景装饰 */
.pixelshare-nav-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

/* 英雄区域 */
.nav-hero-section {
    padding: 80px 20px 60px;
    text-align: center;
    position: relative;
    z-index: 3;
}

.nav-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.nav-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6), 0 1px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: -0.02em;
}

.nav-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 40px;
    font-weight: 300;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* 搜索框容器 */
.nav-search-container {
    margin: 40px 0;
}

.nav-search-box {
    display: flex;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50px;
    padding: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

/* 黑暗模式下的搜索框样式 */
.dark-theme .nav-search-box {
    background: rgba(49, 51, 72, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-search-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 50px;
    pointer-events: none;
}

.nav-search-box:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.95);
}

.nav-search-box .search-engine-selector {
    flex-shrink: 0;
    position: relative;
}

.nav-search-box .search-engine-select {
    border: none;
    background: transparent;
    padding: 16px 20px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    outline: none;
    border-radius: 25px;
    min-width: 100px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.nav-search-box .search-engine-select:focus {
    color: #333;
}

/* 黑暗模式下的搜索引擎选择器 */
.dark-theme .nav-search-box .search-engine-select {
    color: #D1D5DB;
}

.dark-theme .nav-search-box .search-engine-select:focus {
    color: #F9FAFB;
}

.nav-search-box .search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 16px 20px;
    font-size: 16px;
    color: #333;
    outline: none;
    border-radius: 25px;
}

.nav-search-box .search-input::placeholder {
    color: #aaa;
    font-weight: 300;
}

.nav-search-box .search-input:focus {
    color: #222;
}

/* 黑暗模式下的搜索输入框 */
.dark-theme .nav-search-box .search-input {
    color: #D1D5DB;
}

.dark-theme .nav-search-box .search-input::placeholder {
    color: #6B7280;
}

.dark-theme .nav-search-box .search-input:focus {
    color: #F9FAFB;
}

.nav-search-box .search-btn {
    flex-shrink: 0;
    border: none;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.nav-search-box .search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-search-box .search-btn:hover {
    background: linear-gradient(135deg, #5855eb 0%, #7c3aed 100%);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.nav-search-box .search-btn:hover::before {
    opacity: 1;
}

.nav-search-box .search-btn:active {
    transform: scale(0.95);
}

/* 黑暗模式下的搜索按钮 */
.dark-theme .nav-search-box .search-btn {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

.dark-theme .nav-search-box .search-btn:hover {
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

/* 搜索按钮文字样式 */
.nav-search-box .search-btn .search-text {
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    display: inline-block;
    white-space: nowrap;
}

/* 搜索引擎选择器下拉箭头 */
.nav-search-box .search-engine-selector::after {
    content: '▼';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #999;
    pointer-events: none;
}

/* 黑暗模式下的搜索引擎选择器下拉箭头 */
.dark-theme .nav-search-box .search-engine-selector::after {
    color: #9CA3AF;
}

/* 搜索框聚焦状态 */
.nav-search-box:focus-within {
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.25), 0 0 0 3px rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(255, 255, 255, 0.98);
    transform: translateY(-1px);
}

/* 黑暗模式下的搜索框聚焦状态 */
.dark-theme .nav-search-box:focus-within {
    box-shadow: 0 12px 40px rgba(79, 70, 229, 0.3), 0 0 0 3px rgba(79, 70, 229, 0.15);
    border-color: rgba(79, 70, 229, 0.5);
    background: rgba(49, 51, 72, 0.98);
}

/* 搜索输入框聚焦状态 */
.nav-search-box .search-input:focus {
    color: #222;
}

.nav-search-box .search-input:focus::placeholder {
    color: #ccc;
    transform: translateX(5px);
    transition: all 0.3s ease;
}

/* 搜索按钮搜索中状态 */
.nav-search-box .search-btn.searching {
    opacity: 0.7;
    pointer-events: none;
}

.nav-search-box .search-btn.searching .search-text {
    animation: search-pulse 1.5s ease-in-out infinite;
}

@keyframes search-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* 内容区域 */
.nav-content-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px 30px 0 0;
    margin-top: 40px;
    min-height: 60vh;
    position: relative;
    z-index: 3;
    backdrop-filter: blur(10px);
}

/* 移动端内容区域优化 */
@media (max-width: 768px) {
    .nav-content-section {
        margin-top: 20px !important;
        border-radius: 20px 20px 0 0 !important;
    }
}

/* 主容器 - 包含侧边栏和内容 */
.nav-main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.nav-wrapper {
    flex: 1;
    min-width: 0; /* 防止flex项目溢出 */
}

/* 分类样式 */
.nav-category {
    margin-bottom: 50px;
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.category-icon {
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

/* 分类图标容器增强 */
.category-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: #f5f5f5;
    border-radius: 8px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-icon.loading::before {
    opacity: 1;
}

.category-header i {
    font-size: 24px;
    color: #667eea;
}

.category-image-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    object-position: center;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
    display: block;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    /* 确保图片不会变形，保持宽高比 */
    flex-shrink: 0;
    /* 图片加载状态处理 */
    min-width: 48px;
    min-height: 48px;
}

/* 图片加载失败时的占位符 */
.category-image-icon[src=""],
.category-image-icon:not([src]),
.category-image-icon[src="#"] {
    display: none;
}

.category-image-icon + .category-icon-fallback {
    display: none;
}

.category-icon:has(.category-image-icon[src=""]) .category-icon-fallback,
.category-icon:has(.category-image-icon:not([src])) .category-icon-fallback,
.category-icon:has(.category-image-icon[src="#"]) .category-icon-fallback {
    display: inline-block;
}

/* 兼容旧浏览器的fallback */
.category-icon-fallback {
    font-size: 24px;
    color: #667eea;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #f0f0f0;
}

.category-image-icon:hover {
    border-color: #667eea;
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* 网站网格 */
.websites-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}



.website-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #ffffff;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.website-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
    text-decoration: none;
    color: inherit;
}

.website-icon {
    width: 32px;
    height: 32px;
    margin-right: 10px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.website-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 14px;
}

.website-info {
    flex: 1;
    min-width: 0;
}

.website-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.website-desc {
    font-size: 12px;
    color: #666;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 空状态 */
.nav-empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #666;
}

.empty-icon {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

.nav-empty-state h3 {
    font-size: 24px;
    margin: 0 0 10px;
    color: #333;
}

.nav-empty-state p {
    font-size: 16px;
    margin: 0 0 30px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    text-decoration: none;
    color: white;
}

/* 暗色主题支持 */
.dark-theme .pixelshare-nav-container {
    background: #2c3e50;
}

.dark-theme .nav-title {
    color: #ffffff;
}

.dark-theme .nav-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

/* 暗色主题背景图片降级方案 */
.dark-theme .nav-background-container::before {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.dark-theme .nav-content-section {
    background: rgba(44, 62, 80, 0.95);
}

.dark-theme .website-item {
    background: #34495e;
    border-color: #4a6741;
    color: #ecf0f1;
}

.dark-theme .website-item:hover {
    border-color: #667eea;
    background: #3c5a78;
}

.dark-theme .website-name {
    color: #ecf0f1;
}

.dark-theme .website-desc {
    color: #bdc3c7;
}

.dark-theme .category-title {
    color: #ecf0f1;
}

.dark-theme .category-header {
    border-bottom-color: #4a6741;
}

.dark-theme .category-image-icon {
    border-color: #444;
    background: #2a2a2a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dark-theme .category-image-icon:hover {
    border-color: #667eea;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

/* 暗色主题下的fallback图标 */
.dark-theme .category-icon-fallback {
    background: #333;
    border-color: #444;
    color: #667eea;
}

.dark-theme .category-icon::before {
    background: #333;
}

/* 暗色主题下的炫酷推荐样式 */
.dark-theme .featured-link {
    background: linear-gradient(var(--bg-main-color), var(--bg-main-color)) padding-box,
                linear-gradient(135deg, #ff6b35, #f7931e, #ffd23f, #06ffa5, #00d4ff) border-box;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.15);
}

.dark-theme .featured-link:hover {
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.2);
}



.dark-theme .featured-label {
    border-color: var(--bg-main-color);
    box-shadow: 
        0 4px 15px rgba(255, 107, 53, 0.5), 
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.dark-theme .featured-glow {
    background: radial-gradient(circle, 
        rgba(255, 107, 53, 0.15) 0%, 
        rgba(247, 147, 30, 0.08) 30%, 
        transparent 70%);
}

.dark-theme .breadcrumb-item {
    color: rgba(255, 255, 255, 0.8);
}

.dark-theme .breadcrumb-item:not(:last-child)::after {
    color: rgba(255, 255, 255, 0.5);
}

.dark-theme .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
}

.dark-theme .breadcrumb-item a:hover {
    color: white;
}

.dark-theme .breadcrumb-item.active {
    color: white;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .websites-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .nav-title {
        font-size: 3rem;
    }

    .websites-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .nav-wrapper {
        padding: 50px 20px;
    }
}

@media (max-width: 768px) {
    /* 移动端背景图片优化 */
    .nav-background-container {
        background-attachment: scroll;
        background-size: cover;
    }

    .nav-title {
        font-size: 2.5rem;
    }

    /* 隐藏快速导航模块 */
    .pixelshare-nav-container .nav-sidebar-container,
    .nav-sidebar-container,
    .nav-sidebar {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    /* 调整主容器布局 */
    .nav-main-container {
        flex-direction: column;
        gap: 0;
    }

    .nav-wrapper {
        width: 100%;
        padding: 30px 15px;
    }

    .nav-search-box {
        flex-direction: row;
        border-radius: 25px;
        padding: 2px;
        max-width: 95%;
        width: 95%;
        position: relative;
        display: flex;
        align-items: center;
        overflow: hidden;
    }

    .nav-search-box .search-engine-select {
        padding: 12px 8px;
        font-size: 12px;
        min-width: 60px;
        max-width: 70px;
    }

    .nav-search-box .search-input {
        padding: 12px 8px;
        font-size: 14px;
    }

    .nav-search-box .search-btn {
        padding: 10px 12px;
        min-width: 45px;
        max-width: 60px;
        position: relative;
        flex-shrink: 0;
        margin: 0;
        border-radius: 18px;
        font-size: 12px;
    }

    /* 确保搜索框在移动端正确对齐 */
    .nav-search-box .search-input {
        flex: 1;
        margin: 0;
    }

    .nav-search-box .search-engine-selector {
        flex-shrink: 0;
        margin: 0;
    }

    /* 网站网格布局 - 确保水平布局且不溢出 */
    .websites-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .website-item {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        padding: 6px !important;
        text-align: left !important;
        border-radius: 6px !important;
        min-height: auto !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .website-icon {
        width: 38px !important;
        height: 38px !important;
        margin: 0 8px 0 0 !important;
        border-radius: 6px !important;
        flex-shrink: 0 !important;
    }

    .website-info {
        flex: 1 !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .website-name {
        font-size: 13px !important;
        margin: 0 0 2px 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        line-height: 1.2 !important;
        font-weight: 600 !important;
        color: #222 !important;
    }

    .website-desc {
        font-size: 11px !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        color: #555 !important;
        opacity: 1 !important;
    }

    .default-icon {
        font-size: 16px !important;
        width: 38px !important;
        height: 38px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* 主容器移动端适配 */
    .nav-main-container {
        padding: 15px 8px !important;
        gap: 12px !important;
    }

    .nav-wrapper {
        padding: 0 !important;
    }

    .category-header {
        margin-bottom: 6px !important;
        padding-bottom: 3px !important;
    }

    .category-header i {
        font-size: 16px !important;
        margin-right: 6px !important;
    }
    
    /* 移动端隐藏所有分类图标 */
    .category-icon,
    .category-image-icon,
    .category-icon-fallback {
        display: none !important;
    }

    .category-title {
        font-size: 0.95rem !important;
    }

    .nav-category {
        margin-bottom: 15px !important;
    }
}

@media (max-width: 480px) {
    .nav-hero-section {
        padding: 60px 15px 40px;
    }

    .nav-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .nav-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .nav-search-container {
        margin: 30px 0;
        position: relative;
        width: 100%;
        display: block;
    }

    .category-title {
        font-size: 1.1rem;
        margin-bottom: 8px !important;
    }

    .category-header {
        margin-bottom: 6px !important;
        padding-bottom: 2px !important;
    }

    .nav-category {
        margin-bottom: 12px !important;
    }

    .nav-wrapper {
        padding: 30px 10px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
    .nav-title {
        font-size: 1.8rem;
    }

    .nav-subtitle {
        font-size: 0.9rem;
    }

    .website-item {
        padding: 10px;
    }

    .website-icon {
        width: 40px;
        height: 40px;
    }

    .website-name {
        font-size: 14px;
    }

    .website-desc {
        font-size: 12px;
        -webkit-line-clamp: 1;
    }
}

/* 高分辨率屏幕优化 */
@media (min-width: 1400px) {
    .nav-wrapper {
        max-width: 1400px;
    }

    .websites-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

/* 面包屑导航 */
.pixelshare-breadcrumb {
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    color: #666666;
    font-size: 14px;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin: 0 10px;
    color: #999999;
}

.breadcrumb-item a {
    color: #666666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #333333;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #333333;
    font-weight: 500;
}

/* 加载动画 */
.nav-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 工具提示 */
.nav-tooltip {
    position: relative;
}

.nav-tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-tooltip:hover::before,
.nav-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* 全新设计的推荐样式 - 带图标版本 */
.featured-link {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(var(--bg-main-color), var(--bg-main-color)) padding-box,
                linear-gradient(135deg, #ff6b35, #f7931e, #ffd23f, #06ffa5, #00d4ff) border-box;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05);
    transform: translateZ(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    animation: featuredBorderFlow 3s linear infinite;
}

.featured-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, 
        rgba(255, 107, 53, 0.05) 0%, 
        rgba(0, 212, 255, 0.03) 50%, 
        transparent 100%);
    z-index: 1;
    transition: all 0.4s ease;
    pointer-events: none;
}

.featured-link:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.15),
        0 4px 15px rgba(0, 0, 0, 0.08);
    animation-play-state: paused;
}

.featured-link:hover::before {
    background: radial-gradient(circle at 50% 50%, 
        rgba(255, 107, 53, 0.08) 0%, 
        rgba(0, 212, 255, 0.05) 50%, 
        transparent 100%);
}

/* 边框流动动画 */
@keyframes featuredBorderFlow {
    0% { 
        background: linear-gradient(var(--bg-main-color), var(--bg-main-color)) padding-box,
                    linear-gradient(135deg, #ff6b35, #f7931e, #ffd23f, #06ffa5, #00d4ff) border-box;
    }
    25% { 
        background: linear-gradient(var(--bg-main-color), var(--bg-main-color)) padding-box,
                    linear-gradient(225deg, #ff6b35, #f7931e, #ffd23f, #06ffa5, #00d4ff) border-box;
    }
    50% { 
        background: linear-gradient(var(--bg-main-color), var(--bg-main-color)) padding-box,
                    linear-gradient(315deg, #ff6b35, #f7931e, #ffd23f, #06ffa5, #00d4ff) border-box;
    }
    75% { 
        background: linear-gradient(var(--bg-main-color), var(--bg-main-color)) padding-box,
                    linear-gradient(45deg, #ff6b35, #f7931e, #ffd23f, #06ffa5, #00d4ff) border-box;
    }
    100% { 
        background: linear-gradient(var(--bg-main-color), var(--bg-main-color)) padding-box,
                    linear-gradient(135deg, #ff6b35, #f7931e, #ffd23f, #06ffa5, #00d4ff) border-box;
    }
}

/* 隐藏推荐徽章 */
.featured-badge {
    display: none;
}





/* 符合七夸主题的动画定义 */
@keyframes qkPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 
            0 4px 12px rgba(0, 0, 0, 0.15),
            0 2px 6px rgba(0, 0, 0, 0.1);
    }
    50% { 
        transform: scale(1.03);
        box-shadow: 
            0 5px 15px rgba(0, 0, 0, 0.18),
            0 3px 8px rgba(0, 0, 0, 0.12);
    }
}

/* 符合七夸主题的微光效果 */
.featured-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    z-index: 2;
    animation: qkShine 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes qkShine {
    0%, 80% { left: -100%; opacity: 0; }
    90% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* 炫酷的推荐标签设计 - 右侧位置 */
.featured-label {
    position: absolute;
    top: -4px;
    right: -30px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 8;
    box-shadow: 
        0 4px 15px rgba(255, 107, 53, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    opacity: 1; /* 默认显示 */
    transform: translateY(0) scale(1) rotate(0deg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    border: 2px solid var(--bg-main-color);
}

.featured-label::before {
    content: '👑';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    animation: crownBounce 2s ease-in-out infinite;
}

.featured-link:hover .featured-label {
    transform: translateY(-2px) scale(1.05) rotate(-2deg);
    box-shadow: 
        0 6px 20px rgba(255, 107, 53, 0.5),
        0 3px 12px rgba(0, 0, 0, 0.15),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.featured-text {
    display: block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.featured-text::after {
    content: '⭐';
    margin-left: 4px;
    font-size: 8px;
    animation: starTwinkle 1.8s ease-in-out infinite;
}

/* 皇冠和星星动画 */
@keyframes crownBounce {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-60%) scale(1.1); }
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0.7; transform: scale(1) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.3) rotate(180deg); }
}

/* 推荐项目的光晕效果 */
.featured-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, 
        rgba(255, 107, 53, 0.1) 0%, 
        rgba(247, 147, 30, 0.05) 30%, 
        transparent 70%);
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: glowPulse 3s ease-in-out infinite;
    pointer-events: none;
}

.featured-link:hover .featured-glow {
    opacity: 1;
}

/* 浮动粒子效果 */
.featured-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 15;
    overflow: visible;
}

.particle {
    position: absolute;
    font-size: 8px;
    opacity: 0;
    animation: particleFloat 4s ease-in-out infinite;
}

.particle-1 {
    top: 10%;
    right: 15%;
    animation-delay: 0s;
}

.particle-2 {
    top: 20%;
    left: 10%;
    animation-delay: 1s;
}

.particle-3 {
    bottom: 15%;
    right: 20%;
    animation-delay: 2s;
}

.particle-4 {
    bottom: 10%;
    left: 15%;
    animation-delay: 3s;
}

.featured-link:hover .particle {
    animation-play-state: running;
}

/* 粒子动画 */
@keyframes particleFloat {
    0%, 100% { 
        opacity: 0; 
        transform: translateY(0px) scale(0.8) rotate(0deg); 
    }
    25% { 
        opacity: 0.6; 
        transform: translateY(-15px) scale(1) rotate(90deg); 
    }
    50% { 
        opacity: 1; 
        transform: translateY(-25px) scale(1.2) rotate(180deg); 
    }
    75% { 
        opacity: 0.6; 
        transform: translateY(-15px) scale(1) rotate(270deg); 
    }
}

@keyframes glowPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1); 
        opacity: 0.3;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.1); 
        opacity: 0.6;
    }
}

/* 推荐项目内容增强 */
.featured-link .website-icon {
    position: relative;
    z-index: 5;
    transition: all 0.4s ease;
}

.featured-link:hover .website-icon {
    transform: scale(1.05);
    filter: brightness(1.1) saturate(1.2) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.featured-link .website-info {
    position: relative;
    z-index: 5;
}



/* 推荐项目hover时的微妙效果 */
.featured-link:hover .website-icon img {
    filter: brightness(1.05) saturate(1.1);
}

.featured-link:hover .website-name {
    color: var(--color-text-primary);
    transform: translateX(1px);
}

.featured-link:hover .website-desc {
    color: var(--color-text-regular);
    transform: translateX(1px);
}

/* 性能优化 - 减少重绘 */
.featured-link,
.featured-badge,
.featured-label {
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* 尊重用户的运动偏好设置 */
@media (prefers-reduced-motion: reduce) {
    .featured-link {
        animation: none !important;
    }
    
    .particle,
    .featured-glow {
        animation: none !important;
    }
    
    .featured-link,
    .featured-label,
    .particle {
        transition-duration: 0.2s !important;
        transition-timing-function: ease !important;
    }
    
    .featured-particles {
        display: none !important;
    }
}

.category-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 5px 0 0 0;
    font-style: italic;
}

.category-count {
    font-size: 12px;
    color: var(--color-text-secondary, #666);
    margin-left: auto;
    background: var(--bg-muted-color, rgba(0, 0, 0, 0.05));
    padding: 2px 8px;
    border-radius: 12px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.website-meta {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.website-domain {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-family: monospace;
}

.legacy-category {
    opacity: 0.8;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.legacy-badge {
    background: #ff6b6b;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    text-transform: uppercase;
    font-weight: bold;
}

.legacy-item {
    opacity: 0.9;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.migration-notice {
    background: linear-gradient(135deg, #ff9a9e, #fecfef);
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
    text-align: center;
}

.migration-notice .notice-content h4 {
    color: #333;
    margin: 0 0 10px 0;
    font-size: 18px;
}

.migration-notice .notice-content p {
    color: #555;
    margin: 0 0 15px 0;
}

.btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0 5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

.empty-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .category-count {
        margin-left: 0;
        align-self: flex-start;
    }

    .empty-actions {
        flex-direction: column;
        align-items: center;
    }



    .featured-badge {
        top: -8px;
        right: -8px;
        width: 28px;
        height: 28px;
        font-size: 12px;
        border-width: 2px;
    }
    

    
    .featured-label {
        font-size: 8px;
        padding: 2px 6px;
        top: -4px;
        right: -25px;
    }
    
    .featured-particles {
        display: none; /* 移动端隐藏粒子效果 */
    }
    
    /* 移动端简化动画 */
    .featured-link {
        animation-duration: 4s;
    }
    
    /* 触摸设备优化 */
    .featured-link:active {
        transform: translateY(-3px) scale(1.01);
    }
    

}

/* 打印样式 */
@media print {
    .pixelshare-nav-container {
        background: white !important;
        color: black !important;
    }

    .nav-background-container,
    .nav-background-overlay,
    .nav-search-container,
    .nav-search-box .search-btn,
    .pixelshare-breadcrumb,
    .migration-notice,
    .featured-badge {
        display: none !important;
    }

    .nav-title,
    .nav-subtitle {
        color: black !important;
        text-shadow: none !important;
    }

    .website-item {
        break-inside: avoid;
        border: 1px solid #ddd !important;
        background: white !important;
        color: black !important;
    }

    .nav-title,
    .nav-subtitle,
    .category-title,
    .website-name {
        color: black !important;
    }

    .featured-link {
        border: 2px solid #333 !important;
        background: white !important;
        animation: none !important;
    }
    
    .featured-link::before,
    .featured-link::after {
        display: none !important;
    }
    
    .featured-badge {
        background: #333 !important;
        color: white !important;
        animation: none !important;
        position: static !important;
        display: inline-block !important;
        margin-left: 8px !important;
        font-size: 8px !important;
        width: auto !important;
        height: auto !important;
        padding: 2px 4px !important;
        border-radius: 2px !important;
    }
    
    .featured-badge::before {
        display: none !important;
    }
    
    .featured-label {
        display: none !important;
    }
}

/* 超小屏幕适配 */
@media (max-width: 480px) {
    /* 隐藏快速导航模块 */
    .pixelshare-nav-container .nav-sidebar-container,
    .nav-sidebar-container,
    .nav-sidebar {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    .websites-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
    }

    .website-item {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        padding: 6px !important;
        text-align: left !important;
        border-radius: 6px !important;
        min-height: auto !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .website-icon {
        width: 38px !important;
        height: 38px !important;
        margin: 0 8px 0 0 !important;
        border-radius: 6px !important;
        flex-shrink: 0 !important;
    }

    .website-info {
        flex: 1 !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .website-name {
        font-size: 12px !important;
        margin: 0 0 2px 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        line-height: 1.2 !important;
        font-weight: 600 !important;
        color: #222 !important;
    }

    .website-desc {
        font-size: 10px !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        color: #555 !important;
        opacity: 1 !important;
    }

    .default-icon {
        font-size: 16px !important;
        width: 38px !important;
        height: 38px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* 移动端搜索框修复 */
@media (max-width: 768px) {
    .nav-search-box {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 95% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        gap: 2px !important;
    }

    .nav-search-box .search-engine-selector {
        order: 1;
        flex: 0 0 70px !important;
        width: 70px !important;
        overflow: hidden !important;
    }

    .nav-search-box .search-input {
        order: 2;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: auto !important;
    }

    .nav-search-box .search-btn {
        order: 3;
        flex: 0 0 60px !important;
        width: 60px !important;
        position: static !important;
        margin: 0 !important;
        padding: 10px 8px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
    }

    .nav-search-box .search-btn .search-text {
        font-size: 12px !important;
    }
}

/* 超小屏幕搜索框优化 */
@media (max-width: 480px) {
    .nav-search-box {
        max-width: 98% !important;
        padding: 1px !important;
    }

    .nav-search-box .search-engine-selector {
        flex: 0 0 65px !important;
        width: 65px !important;
    }

    .nav-search-box .search-engine-select {
        padding: 10px 6px !important;
        font-size: 11px !important;
        min-width: 55px !important;
        max-width: 65px !important;
    }

    .nav-search-box .search-input {
        padding: 10px 6px !important;
        font-size: 13px !important;
    }

    .nav-search-box .search-btn {
        flex: 0 0 55px !important;
        width: 55px !important;
        padding: 8px 6px !important;
        font-size: 11px !important;
    }

    .nav-search-box .search-btn .search-text {
        font-size: 11px !important;
    }
}

/* 暗色模式适配 */
@media (prefers-color-scheme: dark) {
    .category-count {
        color: rgba(255, 255, 255, 0.8);
        background: rgba(255, 255, 255, 0.1);
    }
}

/* 响应式显示控制 - 电脑端和移动端按钮切换 */
.desktop-only {
    display: block !important;
}

.mobile-only {
    display: none !important;
}

/* 移动端媒体查询 - 768px以下显示移动端按钮 */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
}
