/* ===== 按钮文字居中专用修复样式 ===== */
/* 最高优先级确保按钮文字完全居中 */

/* 强制覆盖所有可能的按钮样式 */
.product-link,
a.product-link,
.product-footer .product-link,
.product-card .product-footer .product-link,
.product-info .product-footer .product-link,
.product-card .product-info .product-footer .product-link {
    /* 使用 flexbox 居中 */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    /* 尺寸和间距 */
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    padding: 0 14px !important;
    box-sizing: border-box !important;
    
    /* 字体设置 */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    letter-spacing: 0.3px !important;
    
    /* 微调：向上偏移1px来补偿字体基线 */
    transform: translateY(-1px) !important;
    
    /* 重置可能影响居中的属性 */
    margin: 0 !important;
    border: none !important;
    outline: none !important;
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    vertical-align: middle !important;
    text-align: center !important;
    
    /* 背景和颜色 */
    background: linear-gradient(135deg, #0056b3, #004494) !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 12px !important;
    
    /* 其他属性 */
    white-space: nowrap !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    min-width: 85px !important;
    max-width: 130px !important;
    z-index: 10000 !important;
    flex-shrink: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.product-link:hover,
.product-link:focus,
.product-link:active {
    background: linear-gradient(135deg, #004494, #003875) !important;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0,86,179,0.4) !important;
}

/* 确保按钮内的文本不被其他样式影响 */
.product-link *,
.product-link::before,
.product-link::after {
    line-height: 1 !important;
    vertical-align: baseline !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline !important;
    transform: none !important;
}

/* 英文界面按钮优化 */
[lang="en"] .product-link,
[lang="en"] a.product-link,
[lang="en"] .product-footer .product-link {
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    font-size: 0.72rem !important;
    min-width: 85px !important;
    max-width: 130px !important;
    transform: translateY(-1px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

[lang="en"] .product-link:hover {
    transform: translateY(-2px) !important;
}

/* 移动端按钮优化 */
@media (max-width: 768px) {
    .product-link,
    a.product-link,
    .product-footer .product-link {
        height: 34px !important;
        min-height: 34px !important;
        max-height: 34px !important;
        font-size: 0.8rem !important;
        min-width: 100px !important;
        max-width: 150px !important;
        transform: translateY(-1px) !important;
        width: 100% !important;
    }
    
    .product-link:hover {
        transform: translateY(-2px) !important;
    }
}

/* 最高优先级的样式重写 - 防止被其他CSS覆盖 */
.product-card .product-info .product-footer a.product-link,
.products-grid .product-card .product-footer .product-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transform: translateY(-1px) !important;
    height: 30px !important;
    line-height: 1 !important;
}

/* 针对可能存在的内联样式强制覆盖 */
[style*="display"] .product-link,
[style*="line-height"] .product-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    transform: translateY(-1px) !important;
}