/*
Theme Name: Husheng Rubber Belts
Theme URI: https://rubberproducts.com.cn/
Author: Husheng Rubber
Author URI: https://rubberproducts.com.cn/
Description: Custom theme for Husheng Rubber Belts manufacturer website. Features a clean navigation header, hero section, product categories display, and professional footer.
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 7.2
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: husheng-rubber
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

/*
 * IMPORTANT: This file is only served on the frontend when `SCRIPT_DEBUG` is enabled;
 * in most instances, the `style.min.css` file will be served. It is not recommended that you
 * use the Theme File Editor to modify this stylesheet. Instead, add the necessary style
 * overrides via "Additional CSS" in the Site Editor.
 */

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}

/*
 * Prevents unnecessary scrollbars while handling long lines of preformatted text.
 * https://core.trac.wordpress.org/ticket/63875
 */
:where(pre) {
	overflow-x: auto;
}

/*
 * Custom Header Navigation Styles
 */
.wp-block-group.alignfull.has-background[style*="background-color:#111111"] .wp-block-navigation .wp-block-navigation-item__content {
	color: #ffffff !important;
	font-size: 15px;
	font-weight: 400;
	padding: 8px 16px;
	transition: opacity 0.2s ease;
}

.wp-block-group.alignfull.has-background[style*="background-color:#111111"] .wp-block-navigation .wp-block-navigation-item__content:hover {
	opacity: 0.8;
}

.wp-block-group.alignfull.has-background[style*="background-color:#111111"] .wp-block-site-title a {
	color: #ffffff !important;
	text-decoration: none;
}

/*
 * Custom Footer Styles
 */
.wp-block-group.alignfull.has-background[style*="background-color:#111111"] .wp-block-heading {
	margin-bottom: 16px;
}

.wp-block-group.alignfull.has-background[style*="background-color:#111111"] .wp-block-list {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

.wp-block-group.alignfull.has-background[style*="background-color:#111111"] .wp-block-list li {
	margin-bottom: 8px;
}

.wp-block-group.alignfull.has-background[style*="background-color:#111111"] .wp-block-list a {
	color: #cccccc !important;
	text-decoration: none;
	transition: color 0.2s ease;
}

.wp-block-group.alignfull.has-background[style*="background-color:#111111"] .wp-block-list a:hover {
	color: #ffffff !important;
}

.wp-block-group.alignfull.has-background[style*="background-color:#111111"] .wp-block-separator {
	border-color: #333333 !important;
	opacity: 1;
}

/*
 * Hero Section Styles
 */
.husheng-hero {
	background: linear-gradient(135deg, #1a1a1a, #c0392b);
	color: #fff;
	padding: 80px 0;
	text-align: center;
}

.husheng-hero h1 {
	font-size: 42px;
	margin: 0 0 15px;
	color: #fff;
}

.husheng-hero p {
	font-size: 18px;
	opacity: 0.95;
}

/*
 * Product Categories Styles
 */
.husheng-categories {
	padding: 60px 0;
	background: #fff;
}

.husheng-categories h2 {
	text-align: center;
	margin: 0 0 40px;
	font-size: 28px;
}

.husheng-category-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 25px;
}

.husheng-category-card {
	border: 1px solid #e3e3e3;
	border-radius: 10px;
	padding: 38px 20px;
	text-align: center;
	display: block;
	color: #222;
	background: #fff;
	text-decoration: none;
	transition: all 0.2s;
}

.husheng-category-card:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	transform: translateY(-2px);
}

.husheng-category-card h3 {
	margin: 0 0 8px;
	font-size: 22px;
	color: #222;
}

.husheng-category-card p {
	margin: 0;
	color: #666;
}

@media (max-width: 768px) {
	.husheng-category-grid {
		grid-template-columns: 1fr;
	}
	.husheng-hero h1 {
		font-size: 28px;
	}
}

/* ===== 首页自定义样式 - 按用户需求调整 ===== */
/* 1. 消除顶部空白，导航置顶 */
body.home main.wp-block-group {
	margin-top: 0 !important;
	padding-top: 0 !important;
}
body.home .wp-block-group.alignfull.has-global-padding:first-child {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}
/* 2. 隐藏顶部公司名称文字 */
body.home h1.wp-block-post-title {
	display: none !important;
}
body.home .entry-content {
	padding-top: 0 !important;
	margin-top: 0 !important;
}
/* 3. 导航菜单：30px字体，右对齐，置顶 */
body.home .wp-block-navigation {
	margin: 0 !important;
	width: 100%;
	margin-bottom: 15px !important;
}
body.home .wp-block-navigation .wp-block-navigation-item__content {
	font-size: 30px !important;
}
/* 4. 底部三个分类单排显示，禁止换行 */
body.home .shusheng-categories {
	flex-wrap: nowrap !important;
}
body.home .shusheng-categories a {
	min-width: auto !important;
}
/* 5. Product Categories标题24px */
body.home .entry-content > h2 {
	font-size: 24px !important;
}
/* 6. 页脚版权文字 */
body.home footer.wp-block-template-part::after {
	content: "© 2026 Pingxiang Husheng Rubber Products Co.,Ltd. All Rights Reserved.";
	display: block;
	text-align: center;
	font-size: 18px;
	padding: 30px 0 20px;
	color: #333;
}
