/* =============================================================
   友情链接公共区块（app/views/friend_links.php 渲染）
   配色全部使用半透明中性色 + currentColor，自动适配深/浅模板
   ============================================================= */
.flinks-area {
    border-top: 1px solid rgba(127, 127, 127, .18);
}

.flinks-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 15px;
    font-size: 13px;
    line-height: 1.8;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px 12px;
}

.flinks-title {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: none;
    font-weight: 600;
    opacity: .85;
    line-height: 28px;
}

/* 标题前的渐变装饰条 */
.flinks-title::before {
    content: '';
    width: 4px;
    height: 14px;
    border-radius: 2px;
    background: linear-gradient(180deg, #6366f1, #a855f7);
}

.flinks-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.flink {
    display: inline-block;
    padding: 3px 13px;
    border-radius: 999px;
    color: inherit;
    background: rgba(127, 127, 127, .10);
    border: 1px solid rgba(127, 127, 127, .20);
    line-height: 20px;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    transition: background-color .25s, border-color .25s, transform .25s, box-shadow .25s;
}

.flink:hover {
    color: inherit;
    background: rgba(99, 102, 241, .12);
    border-color: rgba(99, 102, 241, .45);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(99, 102, 241, .18);
    text-decoration: none;
}

/* 模板自带 a:hover 会强制换色/下划线时，尽量压回 */
.flink:hover,
.flinks-list a.flink:hover {
    text-decoration: none;
}

@media (max-width: 768px) {
    .flinks-inner { gap: 6px 10px; }
    .flink { font-size: 12px; padding: 2px 10px; }
}
