/* =========================================================
   modules/breadcrumbs/assets/css/dm-breadcrumbs.css
   Dawnmaker Breadcrumbs UI V2（Apple 风格升级版）
========================================================= */

nav.dm-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;

    font-size: 14px;
    color: #666;
}

/* ---------------------------------------------
   ITEM 基础
--------------------------------------------- */
.dm-bc-item {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* ---------------------------------------------
   LINK & CURRENT
--------------------------------------------- */
nav.dm-breadcrumbs a,
nav.dm-breadcrumbs .dm-bc-current {
    position: relative;
    display: inline-block;

    color: #111;
    text-decoration: none;

    font-weight: 500;

    transition:
        transform 0.25s cubic-bezier(0.22,0.61,0.36,1),
        color 0.25s ease,
        text-shadow 0.25s ease;
}

/* 当前页更强调 */
nav.dm-breadcrumbs .dm-bc-current {
    font-weight: 600;
}

/* ---------------------------------------------
   HOVER EFFECT（苹果风）
--------------------------------------------- */
nav.dm-breadcrumbs a:hover {
    transform: translateY(-2px);
    text-shadow: 0 2px 6px rgba(0,0,0,0.12);
    color: #000;
}

/* ---------------------------------------------
   下划线动画（关键）
--------------------------------------------- */
nav.dm-breadcrumbs a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;

    width: 0%;
    height: 2px;

    background: linear-gradient(90deg, #111, #666);

    transition: width 0.3s ease;
}

nav.dm-breadcrumbs a:hover::after {
    width: 100%;
}

/* ---------------------------------------------
   分隔箭头（替换原 SVG）
--------------------------------------------- */
.dm-breadcrumbs-sep {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 14px;
    height: 14px;

    opacity: 0.4;
}

/* 使用更细腻的箭头（SVG） */
.dm-breadcrumbs-sep::before {
    content: "";
    display: block;

    width: 10px;
    height: 10px;

    background-image: url("data:image/svg+xml;utf8,\
<svg viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'>\
<polyline points='9 18 15 12 9 6'/>\
</svg>");

    background-size: contain;
    background-repeat: no-repeat;
}

/* ---------------------------------------------
   间距优化（视觉更均衡）
--------------------------------------------- */
nav.dm-breadcrumbs .dm-bc-item + .dm-breadcrumbs-sep {
    margin: 0 2px;
}

/* ---------------------------------------------
   移动端优化
--------------------------------------------- */
@media (max-width: 640px) {
    nav.dm-breadcrumbs {
        font-size: 13px;
        gap: 6px;
    }

    nav.dm-breadcrumbs a:hover {
        transform: none;
        text-shadow: none;
    }

    nav.dm-breadcrumbs a::after {
        display: none;
    }
}