/* ============================================================
   云黑管理系统 · 友链导航样式（重设计版）
   用于 fycn.php
   ============================================================ */
::-webkit-scrollbar {
    display: none;
}

.xq-topnav-group {
    position: relative;
    width: 94%;
    margin: 12px auto;
    overflow-y: auto;
    padding: 12px;
    border-bottom: 1px solid #d1fae5;
    background-color: #ffffff;
    box-sizing: border-box;
    border-radius: 14px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    box-shadow: 0 8px 24px -16px rgba(15, 23, 42, .18);
}

.xq-topnav-group .navs {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
}

.xq-topnav-group .navs a {
    font-size: 13px;
    padding: 6px 16px;
    color: #475569;
    text-align: center;
    z-index: 10;
    border-bottom: 0;
    margin-right: 10px;
    border-radius: 999px;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: all .2s ease;
}

.xq-topnav-group .navs a:active {
    transform: scale(.94);
}

.xq-topnav-group .navs a.active {
    border: 1px solid #10b981;
    color: #059669;
    background-color: #ecfdf5;
    font-weight: 600;
}

.content-group {
    width: 94%;
    margin: 0 auto 20px;
    align-items: center;
    overflow: hidden;
    padding-bottom: 70px;
}

/* ---------- 友链卡片 ---------- */
.dh-group {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #ffffff;
    border-radius: 14px;
    box-sizing: border-box;
    min-height: 88px;
    margin-bottom: 12px;
    border: 1px solid rgba(15, 23, 42, .05);
    box-shadow: 0 6px 18px -12px rgba(15, 23, 42, .18);
    transition: all .2s ease;
}

.dh-group:active {
    transform: scale(.96);
    box-shadow: 0 2px 8px -6px rgba(15, 23, 42, .18);
}

.dh-group img {
    width: 66px;
    height: 66px;
    border-radius: 10px;
    margin-right: 8px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.dh-group .dh-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
    min-height: 66px;
    gap: 2px;
    padding-left: 8px;
    border-left: 2px solid #10b981;
    overflow: hidden;
}

.dh-group .dh-text p {
    width: 100%;
    font-size: 11px;
    color: #94a3b8;
}

.dh-group .dh-text h4 {
    width: 100%;
    font-size: 13px;
    color: #0f172a;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dh-group span {
    width: 10%;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    color: #10b981;
    flex-shrink: 0;
}

/* 友链申请悬浮按钮（约束在 480px 容器内，不随视口溢出） */
.dh-tj-fixed {
    position: fixed;
    bottom: 120px;
    right: 10px;
    z-index: 50;
}

@media (min-width: 481px) {
    .dh-tj-fixed {
        /* 480px 容器右缘内 10px：left = 视口50% + (240 - 10 - 44按钮宽) */
        left: calc(50% + 186px);
        right: auto;
        transform: none;
    }
}

.dh-tj-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 4px;
    background-color: #5D82FF;
    border-radius: 14px;
    font-size: 13px;
    text-align: center;
    color: #fff;
    line-height: 1.4;
    box-shadow: 0 8px 20px -8px rgba(93, 130, 255, .6);
    transition: all .2s ease;
}

.dh-tj-btn:active {
    transform: scale(.94);
}
