/* ============================================
   文字链接模块样式
   ============================================ */

.text-link-module {
    width: 100%;
    margin: 20px 0;
    background: transparent;
    border: none;
    padding: 0;
}

.tlm-title {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 12px 0;
    padding: 0;
    background: transparent;
    display: block;
}

/* 标签区域 */
.tlm-tabs {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 2px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.tlm-tabs::-webkit-scrollbar {
    display: none;
}

.tlm-tab {
    padding: 5px 14px;
    background: #eef2f6;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: #5f6b7a;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.tlm-tab.active {
    background: #2563eb;
    color: #ffffff;
}

@media (hover: hover) {
    .tlm-tab:hover {
        background: #dce3ec;
        color: #2c3e50;
    }
}

/* 面板容器 */
.tlm-panels {
    display: flex;
    flex-direction: column;
}

.tlm-panel {
    display: none;
}

.tlm-panel.active {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

/* 文字项目 */
.tlm-item {
    background: #ffffff;
    border: 1px solid #dde5ed;
    border-radius: 6px;
    text-align: center;
    transition: all 0.2s ease;
}

.tlm-item:hover {
    background: #f0f4f9;
    transform: translateY(-1px);
}

.tlm-item a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #2c3e50;
    font-size: 13px;
    font-weight: 500;
}

.tlm-item:hover a {
    color: #2563eb;
}

.tlm-hidden-item {
    display: none;
}

/* 展开按钮 */
.tlm-more {
    width: auto;
    display: inline-block;
    padding: 6px 16px;
    background: #ffffff;
    border: 1px solid #2563eb;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #2563eb;
    transition: all 0.2s ease;
    margin-top: 12px;
    text-align: center;
}

.tlm-more:hover {
    background: #2563eb;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}

/* 响应式 */
@media (max-width: 768px) {
    .tlm-panel.active {
        grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
        gap: 8px;
    }
    
    .tlm-item a {
        font-size: 12px;
        padding: 6px 8px;
    }
}

@media (max-width: 576px) {
    .tlm-panel.active {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

@media (max-width: 400px) {
    .tlm-panel.active {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
}