/* ==================== 分享按钮 ==================== */
.danye-share {
    margin: 24px 0 16px;
}

.danye-share-label {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 14px;
    letter-spacing: .5px;
}

.danye-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.danye-share-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff !important;
    text-decoration: none !important;
    transition: all .25s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    flex-shrink: 0;
}

.danye-share-btn:hover {
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.danye-share-btn-icon {
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

.danye-share-btn-label {
    font-size: 9px;
    opacity: .92;
    line-height: 1;
}

/* 微信二维码弹窗（用 class 控制，避免 display 切换抖动） */
.danye-share-wechat-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}
.danye-share-wechat-modal.is-open {
    display: flex;
}

.danye-share-wechat-inner {
    position: relative;
    background: #fff;
    padding: 30px 30px 24px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    max-width: 90%;
    animation: danyeShareModalIn .25s ease;
}

@keyframes danyeShareModalIn {
    from { opacity: 0; transform: scale(.92); }
    to   { opacity: 1; transform: scale(1); }
}

.danye-share-wechat-close {
    position: absolute;
    top: 10px;
    right: 14px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #94a3b8;
    cursor: pointer;
    user-select: none;
    transition: color .2s;
}

.danye-share-wechat-close:hover {
    color: #1e293b;
}

.danye-share-wechat-qrcode {
    width: 200px;
    height: 200px;
    margin: 0 auto 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 13px;
    overflow: hidden;
}

.danye-share-wechat-qrcode img {
    width: 100%;
    height: 100%;
    display: block;
}

.danye-share-wechat-tip {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

/* 移动端：分享按钮进一步缩小 */
@media (max-width: 640px) {
    .danye-share-btn {
        width: 36px;
        height: 36px;
    }
    .danye-share-btn-icon {
        font-size: 13px;
    }
    .danye-share-btn-label {
        font-size: 8px;
    }
    .danye-share-buttons {
        gap: 8px;
    }
}

/* ==================== 链接导航页面 ==================== */
.danye-links-nav-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 28px;
    margin-top: 16px;
}

.danye-links-nav-sidebar {
    background: #f8fafc;
    border-radius: 12px;
    padding: 18px 16px;
    border: 1px solid #e2e8f0;
}

.danye-links-nav-sidebar-title {
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}

.danye-links-nav-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.danye-links-nav-cat-list li {
    margin-bottom: 4px;
}

.danye-links-nav-cat-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    color: #475569;
    text-decoration: none;
    font-size: 13px;
    transition: all .15s;
}

.danye-links-nav-cat-list li a:hover {
    background: #fff;
    color: var(--primary, #2563eb);
}

.danye-links-nav-cat-list li.active a {
    background: var(--primary, #2563eb);
    color: #fff;
}

.danye-links-nav-cat-count {
    background: rgba(148, 163, 184, 0.15);
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.danye-links-nav-cat-list li.active .danye-links-nav-cat-count {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.danye-links-nav-content {
    min-width: 0;
}

.danye-links-nav-current-title {
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary, #2563eb);
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.danye-links-empty {
    color: #94a3b8;
    padding: 30px;
    text-align: center;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px dashed #e2e8f0;
}

/* 移动端：链接导航左右堆叠 */
@media (max-width: 768px) {
    .danye-links-nav-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .danye-links-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
    }
}