/*
Theme Name: 天后玻璃工程官方主题
Theme URI: http://www.tianhou-glass.com
Author: 自建团队
Description: 采用用户提供的最新版前端依赖环境驱动（Tailwind v4 + jQuery 3.7.1 + Swiper 11）。
Version: 1.2.0
*/

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "MiSans", "Microsoft YaHei", sans-serif;
}

/* 强制清除 WordPress 导航输出的默认圆点和间距缩进 */
nav ul,
.footer-column ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

nav ul li a {
    display: inline-block;
    color: #374151; /* text-gray-700 */
    text-decoration: none;
    transition: color 0.2s ease;
}

nav ul li a:hover {
    color: #2563eb; /* text-blue-600 */
}

/* 兼容处理：确保 WordPress 后台菜单生成的 `li a` 享有完美的悬浮过渡 */
.bg-\[\#1a1a1a\] ul,
.bg-\[\#1a1a1a\] li {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.bg-\[\#1a1a1a\] ul li a {
    color: #9ca3af; /* text-gray-400 */
    text-decoration: none;
    transition: color 0.2s ease-in-out;
    display: inline-block;
}

.bg-\[\#1a1a1a\] ul li a:hover {
    color: #ffffff; /* hover:text-white */
}

/* 强制清除头部主导航输出的默认样式干扰 */
header nav ul,
header nav li {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

header nav ul li a {
    display: inline-block;
    color: #374151; /* text-gray-700 */
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

header nav ul li a:hover {
    color: #2563eb; /* text-blue-600 */
}

/* 搜索结果页分页器深度美化 */
.page-numbers {
    display: inline-flex;
    gap: 0.5rem;
    list-style: none !important;
    padding: 0 !important;
    justify-content: center;
}
.page-numbers li {
    list-style: none !important;
    margin: 0 !important;
}
.page-numbers a, .page-numbers span.current {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    color: #374151;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}
.page-numbers a:hover {
    background-color: #f3f4f6;
    border-color: #d1d5db;
    color: #2563eb;
}
.page-numbers span.current {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

/* ==========================================================================
   全局主导航栏菜单样式美化与间距矫正
   ========================================================================== */

/* 1. 约束菜单子项，在 flex 框架下保持自由，单行不换行，绝不挤压 */
.menu-item {
    display: inline-block !important;
    float: none !important;
    white-space: nowrap !important; /* 强制防止文字因屏幕变窄而被尴尬地换行 */
    position: relative;
}

/* 2. 菜单内超链接优雅样式 */
.menu-item a {
    display: block;
    padding: 0.5rem 0.25rem;
    color: #374151; /* text-gray-700 */
    font-weight: 600;
    transition: all 0.2s ease-in-out;
}

/* 3. 悬停效果：透亮的大厂科技蓝 */
.menu-item a:hover {
    color: #2563eb; /* text-blue-600 */
}

/* 4. 当前所在页面高级高亮（底部带一条精致的呼吸小横线） */
.current-menu-item a {
    color: #2563eb !important;
}

.current-menu-item::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 4px;
    right: 4px;
    height: 2px;
    background-color: #2563eb;
    border-radius: 2px;
}

/* 彻底清除 Webkit 浏览器搜索框中不听话的原生清除 X 按钮 */
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    -webkit-appearance: none !important;
    display: none !important;
}

ul.products {
    display:grid;
}

li.product {
    width:25%;
}