/*
 Theme Name:   Kadence Ratchet Child
 Theme URI:    https://ruimaitech.com
 Description:  红色工业风棘轮扳手展示站
 Author:       Harry
 Template:     kadence
 Version:      1.0.0
*/
/* 以下编写自定义 CSS */

:root {
  --kp-red: #D32F2F;
  --kp-red-hover: #B91C1C;
  --kp-dark: #111827;
  --kp-text: #4B5563;
  --kp-bg: #F9FAFB;
  --kp-white: #FFFFFF;
}

/* 全局按钮/链接交互 */
.wp-block-button__link, a[style*="background"] {
  transition: background 0.2s ease, transform 0.1s ease;
}
.wp-block-button__link:hover, a[style*="background"]:hover {
  background-color: var(--kp-red-hover) !important;
  transform: translateY(-1px);
}
#site-navigation li a {color:#fff;}
#site-navigation li a:hover {color:#e21e51;}
#site-navigation li.current-menu-item a {color:#e21e51;}

/* 移动端适配核心 */
@media (max-width: 767px) {
  /* 表格横向滚动防溢出 */
  .entry-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .entry-content table td, .entry-content table th { white-space: nowrap; }
  /* 表单元素防缩放+全宽 */
  input, select, textarea { font-size: 16px !important; max-width: 100% !important; }
  /* 按钮移动端自适应 */
  .wp-block-button__link, button[style*="background"] { width: 100% !important; text-align: center; }
  /* 区块间距压缩 */
  .kb-row-layout-wrap { gap: 16px !important; }
}