/*! WinRMB Theme (c) WinRMB - commercial component, see LICENSE.txt */
/* 完全脱离外部框架，使用原生 CSS 确保布局绝对可靠 */
.aura-nav-container {
    margin: 24px 0;
    clear: both;
    width: 100%;
}
.aura-nav-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important; /* 强制同一行 */
    gap: 16px !important;
    width: 100%;
}
.aura-nav-grid > * {
    flex: 1 1 50% !important;
    width: 50% !important;
    min-width: 0 !important; /* 防止 flex 子项被内容撑破 */
}
.aura-nav-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: 8px;
    padding: 16px 20px;
    display: block !important;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
    box-sizing: border-box;
    height: 100%;
}
.aura-nav-card.disabled-card {
    opacity: 0.6;
    cursor: not-allowed;
    background: transparent;
    border-style: dashed;
}
.aura-nav-card:not(.disabled-card):hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}
.aura-nav-content {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100%;
    height: 100%;
}
.aura-nav-icon {
    font-size: 1.1rem;
    color: var(--primary-color, #3b82f6);
    flex-shrink: 0 !important;
    transition: transform 0.3s ease;
}
.aura-nav-text {
    flex-grow: 1 !important;
    min-width: 0 !important; /* 关键：确保内部文字可以触发截断 */
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.aura-nav-text.text-right {
    text-align: right !important;
    margin-left: 12px !important;
}
.aura-nav-text.text-left {
    text-align: left !important;
    margin-right: 12px !important;
}
.aura-nav-label {
    font-size: 13px;
    font-weight: 400;
    color: #a1a1aa;
    margin-bottom: 4px;
    display: block;
    transition: color 0.3s ease;
}
.aura-nav-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: #3f3f46;
    margin: 0;
    transition: color 0.3s ease;
    
    /* 单行截断并增加宽度限制以防过长 */
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    max-width: 100% !important;
}

/* Hover 动效 */
.aura-nav-card:not(.disabled-card):hover .aura-nav-title,
.aura-nav-card:not(.disabled-card):hover .aura-nav-label {
    color: var(--primary-color, #3b82f6);
}
.aura-nav-card.prev-card:not(.disabled-card):hover .aura-nav-icon {
    transform: translateX(-4px);
}
.aura-nav-card.next-card:not(.disabled-card):hover .aura-nav-icon {
    transform: translateX(4px);
}

/* 暗黑模式适配 */
html[data-theme="dark"] .aura-nav-card {
    background: rgba(255,255,255,0.02);
    border-color: rgba(255,255,255,0.05);
}
html[data-theme="dark"] .aura-nav-card:not(.disabled-card):hover {
    background: rgba(255,255,255,0.05);
}
html[data-theme="dark"] .aura-nav-title {
    color: #e2e8f0;
}