/* 网址导航卡片按钮样式 - 参考tkfff.com */
.link-buttons-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 12px !important;
    flex-wrap: wrap !important;
    position: relative !important;
    z-index: 10 !important;
}

.link-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 16px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    border: 1px solid transparent !important;
    white-space: nowrap !important;
}

/* 主色调按钮 - 蓝色 */
.link-button-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
}

.link-button-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
    transform: translateY(-1px) !important;
}

/* 次要色按钮 - 灰色 */
.link-button-secondary {
    background: #f3f4f6 !important;
    color: #374151 !important;
    border-color: #e5e7eb !important;
}

.link-button-secondary:hover {
    background: #e5e7eb !important;
    color: #1f2937 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* 成功色按钮 - 绿色 */
.link-button-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border-color: #10b981 !important;
}

.link-button-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
    transform: translateY(-1px) !important;
}

/* 紫色按钮 */
.link-button-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
    color: #ffffff !important;
    border-color: #8b5cf6 !important;
}

.link-button-purple:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3) !important;
    transform: translateY(-1px) !important;
}

/* TKFFF模板特殊样式 - 按钮自适应铺满 */
.column-itemBox-item .link-buttons-wrapper {
    margin-top: 8px !important;
    padding-top: 8px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    width: 100% !important;
}

/* 按钮自适应宽度 - 对标TKFFF */
.column-itemBox-item .link-buttons-wrapper .link-button {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    text-align: center !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* 单个按钮时铺满整个宽度 */
.column-itemBox-item .link-buttons-wrapper.single-button .link-button {
    flex: 1 1 100% !important;
}

/* 两个按钮时各占50% */
.column-itemBox-item .link-buttons-wrapper:not(.single-button) .link-button {
    flex: 1 1 calc(50% - 4px) !important;
}

/* 三个按钮时各占33% */
.column-itemBox-item .link-buttons-wrapper.three-buttons .link-button {
    flex: 1 1 calc(33.333% - 6px) !important;
    padding: 8px 8px !important;
    font-size: 12px !important;
}

.column-itemBox-item-h .link-buttons-wrapper {
    width: 100% !important;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .column-itemBox-item .link-buttons-wrapper .link-button {
        padding: 6px 8px !important;
        font-size: 12px !important;
    }
    
    .link-buttons-wrapper {
        gap: 6px !important;
        margin-top: 10px !important;
    }
    
    /* 移动端三个按钮换行显示 */
    .column-itemBox-item .link-buttons-wrapper.three-buttons {
        flex-wrap: wrap !important;
    }
    
    .column-itemBox-item .link-buttons-wrapper.three-buttons .link-button {
        flex: 1 1 calc(50% - 4px) !important;
    }
    
    .column-itemBox-item .link-buttons-wrapper.three-buttons .link-button:last-child {
        flex: 1 1 100% !important;
    }
}
