/*
Theme Name: Hengtuo Forging
Theme URI: https://huosidun.com.cn
Author: Hengtuo Transmission
Author URI: https://huosidun.com.cn
Description: 恒拓传动锻件官网主题。蓝色工业风，含产品中心（自定义文章类型「产品」+「产品分类」）、公司新闻、关于我们、工厂展示、联系我们模板。公司信息、产品、新闻全部可在后台修改。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hengtuo
Tags: business, industrial, custom-menu, custom-logo, featured-images
*/

/* =====================================================================
   WordPress 必要补充样式（主体样式在 assets/css/ 下的三个文件中）
   ===================================================================== */

body.admin-bar .main-header { top: 32px; }
@media screen and (max-width: 782px) {
    body.admin-bar .main-header { top: 46px; }
}

/* 后台登录状态下的「编辑」链接不干扰排版 */
body.admin-bar .filter-bar { top: 68px; }

/* 产品分类「查看全部」按钮（链接版，与静态版按钮一致） */
.cat-more a.ht-cat-btn {
    background: var(--primary-color);
    border: 0;
    color: #fff !important;
    font-size: 14px;
    padding: 11px 24px;
    border-radius: 24px;
    box-shadow: 0 8px 18px rgba(21, 82, 158, .25);
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.cat-more a.ht-cat-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(21, 82, 158, .32);
    color: #fff;
}
.cat-more a.ht-cat-btn i { font-size: 12px; }

/* 产品详情：正文里插入的图片自适应 */
.product-info-detail img,
.article-body img { max-width: 100%; height: auto; border-radius: 8px; }

/* 分页 */
.ht-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.ht-pagination .page-numbers {
    min-width: 38px; height: 38px; line-height: 38px; text-align: center;
    border: 1px solid var(--border-color); border-radius: 6px; color: var(--text-dark);
    text-decoration: none; padding: 0 10px; display: inline-block; font-size: 14px;
}
.ht-pagination .page-numbers.current,
.ht-pagination .page-numbers:hover {
    background: var(--primary-color); border-color: var(--primary-color); color: #fff;
}

/* 表单提交结果提示 */
.ht-notice { padding: 14px 18px; border-radius: 8px; margin-bottom: 18px; font-size: 14px; }
.ht-notice.ok { background: #e8f6ee; color: #1b7a43; border-left: 4px solid #26a65b; }
.ht-notice.err { background: #fdeaea; color: #a12b2b; border-left: 4px solid #d24a4a; }

/* 自定义 Logo */
.custom-logo { max-height: 48px; width: auto; }
.logo .custom-logo-link { display: inline-flex; align-items: center; }
