/* 底部链接间距 (提升可点击性) */
.widget_pages a, 
.widget_nav_menu a {
    display: block;
    padding: 0.4em 0;
    text-decoration: none;
    color: #374151;                  /* 新增：深灰提升可读性 */ 
    transition: opacity 0.2s;        /* 新增：悬停反馈 */
}

/* 悬停效果仅在桌面生效 */
@media (hover: hover) {              /* 防止移动端触发异常 */
    .widget_pages a:hover, 
    .widget_nav_menu a:hover {
        opacity: 0.7;
    }
}

/* 侧栏标题 (增强对比度+动效) */
.primary-sidebar.widget-area .widget-title{
    font-weight: 700;
    font-size: 18px;
    line-height: 1.5;
    color: #FFFFFF;
    background: #85B20E;             /* 修改：原#9ccc16加深10%满足WCAG标准 */ 
    padding: 10px;
    border-radius: 4px;              /* 新增：柔和边角 */
    transition: background 0.3s;     /* 新增：背景色过渡 */
}

/* 标题悬互动效 */
.primary-sidebar.widget-area .widget-title:hover {
    background: #759F0C;             /* 颜色加深15% */
}

/* 分类链接 (修复变量未定义问题) */
.woocommerce.widget_product_categories>ul li a {
    display: block;
    border-bottom: 1px solid #E5E7EB; /* 替换：原--global-palette7改为安全色 */ 
    line-height: 3em;
    padding-left:5px;
    position: relative;               /* 为伪元素定位准备 */
}

/* 箭头悬停动效 */
.woocommerce.widget_product_categories>ul li a:hover::after {
    transform: translateX(3px);
}

/* 隐藏排序栏 (移动端保留功能) */
.kadence-shop-top-row { 
    display: none !important;        /* 强制覆盖主题 */ 
}

/* 移动端显示排序下拉菜单 */ 
@media (max-width: 768px) {
    .kadence-shop-top-row {
        display: flex !important;    /* 恢复显示 */
        margin-bottom: 1rem;         /* 增加底部间距 */
    }
}


/* 仅让提交按钮居中 */
.wpcf7-submit {
    background-color: #9CCC16 !important; /* 背景颜色 */
    color: black !important; /* 默认字体颜色 */
    border: none !important; /* 移除边框 */
    padding: 12px 36px !important; /* 调整按钮大小 */
    font-size: 20px !important; /* 字体大小 */
    font-weight: bold !important; /* 字体加粗 */
    border-radius: 5px !important; /* 圆角 */
    cursor: pointer !important; /* 鼠标悬停时变为手型 */
    display: inline-block !important; /* 设置为内联块元素 */
    text-align: center !important; /* 保证文本水平居中 */
    margin: 10px auto !important; /* 让按钮水平居中 */
    height: 50px !important; /* 设置按钮高度 */
    line-height: 10px !important; /* 设置行高和按钮高度一致，确保字体垂直居中 */
	  text-transform: none !important; /* 不进行大写转换，保持文本原格式 */
}

/* 鼠标悬停时的样式 */
.wpcf7-submit:hover {
    color: black !important; /* 鼠标悬停时字体变黑 */
    background-color: #FF4500 !important; /* 背景颜色保持不变 */
}

/* 让表单文本框边缘变得圆滑 */
.wpcf7 input[type="text"], 
.wpcf7 input[type="email"], 
.wpcf7 input[type="tel"], 
.wpcf7 textarea {
    border-radius: 8px !important; /* 设置圆角 */
    border: 1px solid #ccc !important; /* 可以选择设置边框颜色 */
    padding: 10px !important; /* 给输入框内添加内边距，避免文字贴边 */
    font-size: 16px !important; /* 设置字体大小 */
}

/* 可以为焦点状态添加效果 */
.wpcf7 input[type="text"]:focus, 
.wpcf7 input[type="email"]:focus, 
.wpcf7 input[type="tel"]:focus, 
.wpcf7 textarea:focus {
    border-color: #FF8439 !important; /* 聚焦时改变边框颜色 */
    box-shadow: 0 0 5px rgba(255, 132, 57, 0.7) !important; /* 添加聚焦时的阴影效果 */
}

