/* 当前位置导航统一美化样式 */
.navcates.place {
    background: #f8f9fa;
    color: #495057;
    padding: 14px 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #3498db;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
}

.navcates.place:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.05), transparent);
    transition: all 0.6s ease;
}

.navcates.place:hover:before {
    left: 100%;
}

.navcates.place a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    position: relative;
}

.navcates.place a:hover {
    background: #e9ecef;
    color: #2980b9;
    transform: translateY(-1px);
}

.navcates.place a:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #3498db;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navcates.place a:hover:after {
    width: 80%;
}

.navcates.place i {
    margin: 0 8px;
    color: #6c757d;
    font-size: 13px;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.navcates.place i.fa-home {
    color: #6c757d;
    font-size: 14px;
}

.navcates.place i.fa-angle-right {
    transform: scale(0.9);
}

/* 当前页面标题特殊样式 */
.navcates.place a[rel="bookmark"],
.navcates.place a.current-page {
    background: #e9ecef;
    color: #495057;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.navcates.place a[rel="bookmark"]:hover,
.navcates.place a.current-page:hover {
    background: #dee2e6;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 深色模式适配 */
.night .navcates.place {
    background: #2d3748;
    color: #e2e8f0;
    border-left-color: #4299e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.night .navcates.place a {
    color: #63b3ed;
}

.night .navcates.place a:hover {
    background: #4a5568;
    color: #90cdf4;
}

.night .navcates.place a:after {
    background: #63b3ed;
}

.night .navcates.place i {
    color: #a0aec0;
}

.night .navcates.place a[rel="bookmark"],
.night .navcates.place a.current-page {
    background: #4a5568;
    color: #e2e8f0;
    border-color: #718096;
}

.night .navcates.place a[rel="bookmark"]:hover,
.night .navcates.place a.current-page:hover {
    background: #718096;
}

/* 动画效果 */
@keyframes breadcrumbFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navcates.place {
    animation: breadcrumbFadeIn 0.6s ease-out;
}

/* 移动端独立适配 */
@media screen and (max-width: 768px) {
    .navcates.place {
        padding: 12px 16px !important;
        border-radius: 10px !important;
        margin-bottom: 20px !important;
        font-size: 13px !important;
        gap: 6px !important;
        flex-wrap: wrap !important;
    }

    /* 移动端当前位置文字 */
    .navcates.place .breadcrumb-label {
        color: #6c757d !important;
        font-size: 12px !important;
        margin-right: 6px !important;
        flex-shrink: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
    }

    /* 移动端链接样式 */
    .navcates.place a {
        padding: 3px 6px !important;
        border-radius: 4px !important;
        display: inline-flex !important;
        align-items: center !important;
        white-space: nowrap !important;
        max-width: 100% !important;
        overflow: visible !important;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1) !important;
        tap-highlight-color: rgba(0, 0, 0, 0.1) !important;
        min-height: 28px !important;
    }

    .navcates.place a:hover {
        transform: none !important;
    }

    /* 移动端移除下划线动画 */
    .navcates.place a:after {
        display: none !important;
    }

    /* 移动端图标样式 */
    .navcates.place i {
        margin: 0 6px !important;
        color: #6c757d !important;
        font-size: 12px !important;
        flex-shrink: 0 !important;
    }

    .navcates.place i.fa-home {
        color: #6c757d !important;
        font-size: 13px !important;
    }

    /* 移动端当前页面标题 - 完整显示 */
    .navcates.place a[rel="bookmark"],
    .navcates.place a.current-page {
        background: #e9ecef !important;
        color: #495057 !important;
        padding: 4px 12px !important;
        border-radius: 12px !important;
        font-weight: 600 !important;
        border: 1px solid #dee2e6 !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
        max-width: 100% !important;
        white-space: normal !important;
        line-height: 1.3 !important;
        word-break: break-word !important;
        display: inline-block !important;
        margin-top: 4px !important;
    }

    .navcates.place a[rel="bookmark"]:hover,
    .navcates.place a.current-page:hover {
        background: #dee2e6 !important;
        transform: none !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    }

    /* 移动端深色模式适配 */
    .night .navcates.place {
        background: #2d3748 !important;
        color: #e2e8f0 !important;
        border-left-color: #4299e1 !important;
    }

    .night .navcates.place .breadcrumb-label {
        color: #a0aec0 !important;
    }

    .night .navcates.place a {
        color: #63b3ed !important;
    }

    .night .navcates.place a:hover {
        background: #4a5568 !important;
        color: #90cdf4 !important;
    }

    .night .navcates.place i {
        color: #a0aec0 !important;
    }

    .night .navcates.place a[rel="bookmark"],
    .night .navcates.place a.current-page {
        background: #4a5568 !important;
        color: #e2e8f0 !important;
        border-color: #718096 !important;
    }

    .night .navcates.place a[rel="bookmark"]:hover,
    .night .navcates.place a.current-page:hover {
        background: #718096 !important;
    }

    /* 移动端移除悬停背景动画 */
    .navcates.place:before {
        display: none !important;
    }

    /* 移动端超小屏幕适配 */
    @media screen and (max-width: 360px) {
        .navcates.place {
            padding: 10px 12px !important;
            font-size: 12px !important;
            gap: 4px !important;
        }

        .navcates.place .breadcrumb-label {
            font-size: 11px !important;
            margin-right: 4px !important;
        }

        .navcates.place a {
            padding: 2px 4px !important;
        }

        .navcates.place a[rel="bookmark"],
        .navcates.place a.current-page {
            padding: 3px 8px !important;
            font-size: 12px !important;
        }

        .navcates.place i {
            margin: 0 4px !important;
            font-size: 11px !important;
        }
    }
}

/* 平板端适配 (769px - 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .navcates.place {
        padding: 12px 20px;
        font-size: 13px;
    }

    .navcates.place a {
        padding: 3px 8px;
    }

    .navcates.place a[rel="bookmark"],
    .navcates.place a.current-page {
        padding: 3px 12px;
    }
}

/* 桌面端大屏幕优化 */
@media screen and (min-width: 1200px) {
    .navcates.place {
        padding: 16px 30px;
        font-size: 15px;
    }

    .navcates.place a {
        padding: 5px 10px;
    }

    .navcates.place a[rel="bookmark"],
    .navcates.place a.current-page {
        padding: 5px 16px;
    }
}