/**
 * B2B directory homepage — Shunqi-style, orange primary
 */

body.usfp-front-page .site-content > .container {
	max-width: 100%;
	padding: 0;
	width: 100%;
}

body.usfp-front-page .site-content {
	padding-top: 0;
}

.usfp-home {
	--usfp-orange: #f57c00;
	--usfp-orange-dark: #e65100;
	--usfp-orange-light: #fff3e0;
	--usfp-text: #333333;
	--usfp-text-light: #666666;
	--usfp-border: #e0e0e0;
	--usfp-bg: #f5f5f5;
	--usfp-white: #ffffff;
	font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
	font-size: 14px;
	color: var(--usfp-text);
	background: var(--usfp-bg);
	line-height: 1.5;
}

.usfp-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 12px;
}

/* Top bar */
.usfp-topbar {
	background: var(--usfp-bg);
	border-bottom: 1px solid var(--usfp-border);
	font-size: 12px;
}

.usfp-topbar__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 32px;
}

.usfp-topbar a {
	color: var(--usfp-text-light);
	text-decoration: none;
}

.usfp-topbar a:hover {
	color: var(--usfp-orange);
}

.usfp-sep {
	margin: 0 8px;
	color: #ccc;
}

/* Head: logo + search */
.usfp-head {
	background: var(--usfp-white);
	border-bottom: 1px solid var(--usfp-border);
	padding: 16px 0;
}

.usfp-head__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
}

.usfp-logo {
	flex-shrink: 0;
	text-decoration: none;
	color: var(--usfp-text);
	max-width: 180px;
}

.usfp-logo img {
	max-height: 48px;
	width: auto;
}

.usfp-logo__name {
	display: block;
	font-size: 22px;
	font-weight: 800;
	color: var(--usfp-orange);
	line-height: 1.2;
}

.usfp-logo__tag {
	display: block;
	font-size: 11px;
	color: var(--usfp-text-light);
	margin-top: 2px;
}

.usfp-search {
	flex: 1;
	min-width: 280px;
}

.usfp-search__form {
	display: flex;
	border: 2px solid var(--usfp-orange);
	border-radius: 2px;
	overflow: hidden;
}

.usfp-search__input {
	flex: 1;
	border: none;
	padding: 10px 14px;
	font-size: 14px;
	outline: none;
	min-width: 0;
}

.usfp-search__btn {
	background: var(--usfp-orange);
	color: var(--usfp-white);
	border: none;
	padding: 0 28px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
}

.usfp-search__btn:hover {
	background: var(--usfp-orange-dark);
}

.usfp-search__hot {
	margin-top: 6px;
	font-size: 12px;
	color: var(--usfp-text-light);
}

.usfp-search__hot a {
	color: var(--usfp-orange);
	text-decoration: none;
	margin-left: 8px;
}

.usfp-search__hot a:hover {
	text-decoration: underline;
}

.usfp-head__promo {
	flex-shrink: 0;
	text-align: right;
	max-width: 200px;
}

.usfp-badge {
	display: inline-block;
	background: var(--usfp-orange);
	color: var(--usfp-white);
	font-size: 11px;
	font-weight: 700;
	padding: 4px 10px;
	letter-spacing: 0.04em;
}

.usfp-head__promo p {
	margin: 6px 0 0;
	font-size: 12px;
	color: var(--usfp-text-light);
	line-height: 1.4;
}

/* Orange nav */
.usfp-nav {
	background: var(--usfp-orange);
}

.usfp-nav__inner {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0;
	min-height: 40px;
}

.usfp-nav__label {
	background: var(--usfp-orange-dark);
	color: var(--usfp-white);
	padding: 0 16px;
	height: 40px;
	line-height: 40px;
	font-weight: 700;
	font-size: 14px;
	white-space: nowrap;
}

.usfp-nav a {
	color: var(--usfp-white);
	text-decoration: none;
	padding: 0 14px;
	height: 40px;
	line-height: 40px;
	font-size: 13px;
	white-space: nowrap;
}

.usfp-nav a:hover {
	background: rgba(0, 0, 0, 0.1);
}

.usfp-nav__cta {
	margin-left: auto;
	font-weight: 700;
	background: rgba(0, 0, 0, 0.12);
}

/* Main 3-column layout */
.usfp-main {
	padding: 12px 0 24px;
}

.usfp-layout {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

/* Left sidebar */
.usfp-side--left {
	width: 200px;
	flex-shrink: 0;
	background: var(--usfp-white);
	border: 1px solid var(--usfp-border);
}

.usfp-cat-group {
	border-bottom: 1px solid var(--usfp-border);
}

.usfp-cat-group:last-child {
	border-bottom: none;
}

.usfp-cat-group__title {
	margin: 0;
	padding: 8px 10px;
	background: var(--usfp-orange-light);
	border-left: 3px solid var(--usfp-orange);
	font-size: 13px;
	font-weight: 700;
}

.usfp-cat-group__title a {
	color: var(--usfp-orange-dark);
	text-decoration: none;
}

.usfp-cat-group__title a:hover {
	text-decoration: underline;
}

.usfp-cat-group__list {
	list-style: none;
	margin: 0;
	padding: 6px 8px 10px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2px 6px;
}

.usfp-cat-group__list--cols {
	grid-template-columns: 1fr;
}

.usfp-cat-group__list li {
	margin: 0;
}

.usfp-cat-group__list a {
	color: var(--usfp-text);
	text-decoration: none;
	font-size: 12px;
	line-height: 1.6;
	display: block;
	padding: 1px 0;
}

.usfp-cat-group__list a:hover {
	color: var(--usfp-orange);
}

/* Center */
.usfp-center {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.usfp-banner {
	background: linear-gradient(135deg, var(--usfp-orange) 0%, var(--usfp-orange-dark) 100%);
	color: var(--usfp-white);
	padding: 24px 28px;
	min-height: 140px;
	display: flex;
	align-items: center;
}

.usfp-banner__title {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.3;
}

.usfp-banner p {
	margin: 0 0 14px;
	font-size: 13px;
	opacity: 0.95;
}

.usfp-btn {
	display: inline-block;
	background: var(--usfp-white);
	color: var(--usfp-orange);
	padding: 8px 20px;
	font-weight: 700;
	font-size: 13px;
	text-decoration: none;
	border-radius: 2px;
}

.usfp-btn:hover {
	background: var(--usfp-orange-light);
	color: var(--usfp-orange-dark);
}

/* Panels / feed */
.usfp-panel {
	background: var(--usfp-white);
	border: 1px solid var(--usfp-border);
}

.usfp-panel__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 12px;
	height: 36px;
	background: var(--usfp-orange-light);
	border-bottom: 1px solid var(--usfp-border);
}

.usfp-panel__title {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--usfp-orange-dark);
}

.usfp-panel__head a {
	font-size: 12px;
	color: var(--usfp-orange);
	text-decoration: none;
}

.usfp-panel__head a:hover {
	text-decoration: underline;
}

.usfp-feed {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.usfp-feed__item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-bottom: 1px solid #f0f0f0;
	font-size: 13px;
	min-height: 36px;
}

.usfp-feed__item:last-child {
	border-bottom: none;
}

.usfp-feed__tag {
	flex-shrink: 0;
	font-size: 11px;
	color: var(--usfp-orange);
	background: var(--usfp-orange-light);
	padding: 1px 6px;
	white-space: nowrap;
}

.usfp-feed__tag--factory {
	color: var(--usfp-text-light);
	background: var(--usfp-bg);
}

.usfp-feed__tag--buy {
	color: #1565c0;
	background: #e3f2fd;
}

.usfp-panel--buy .usfp-feed__item--cta {
	justify-content: center;
	padding: 10px 0;
}

.usfp-feed__cta {
	color: var(--usfp-orange);
	font-weight: 600;
	text-decoration: none;
}

.usfp-feed__cta:hover {
	text-decoration: underline;
}

.usfp-feed__link {
	color: var(--usfp-text);
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

a.usfp-feed__link:hover {
	color: var(--usfp-orange);
	text-decoration: underline;
}

.usfp-feed__item--empty .usfp-feed__link {
	color: #aaa;
}

/* Right sidebar */
.usfp-side--right {
	width: 220px;
	flex-shrink: 0;
}

.usfp-userbox {
	background: var(--usfp-white);
	border: 1px solid var(--usfp-border);
	padding: 16px;
	margin-bottom: 12px;
}

.usfp-userbox__btn {
	display: block;
	width: 100%;
	text-align: center;
	padding: 10px;
	margin-bottom: 8px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 700;
	border: 1px solid var(--usfp-orange);
	color: var(--usfp-orange);
	background: var(--usfp-white);
	border-radius: 2px;
	box-sizing: border-box;
}

.usfp-userbox__btn:last-child {
	margin-bottom: 0;
}

.usfp-userbox__btn--primary {
	background: var(--usfp-orange);
	color: var(--usfp-white);
	border-color: var(--usfp-orange);
}

.usfp-userbox__btn--primary:hover {
	background: var(--usfp-orange-dark);
	border-color: var(--usfp-orange-dark);
	color: var(--usfp-white);
}

.usfp-userbox__btn:hover {
	background: var(--usfp-orange-light);
}

.usfp-notice,
.usfp-regions-mini {
	background: var(--usfp-white);
	border: 1px solid var(--usfp-border);
	margin-bottom: 12px;
}

.usfp-notice__title {
	margin: 0;
	padding: 8px 12px;
	font-size: 13px;
	font-weight: 700;
	color: var(--usfp-orange-dark);
	background: var(--usfp-orange-light);
	border-bottom: 1px solid var(--usfp-border);
}

.usfp-notice__list {
	list-style: none;
	margin: 0;
	padding: 8px 12px;
}

.usfp-notice__list li {
	margin: 0 0 8px;
	padding-left: 10px;
	position: relative;
}

.usfp-notice__list li::before {
	content: "•";
	position: absolute;
	left: 0;
	color: var(--usfp-orange);
}

.usfp-notice__list li:last-child {
	margin-bottom: 0;
}

.usfp-notice__list a {
	color: var(--usfp-text);
	text-decoration: none;
	font-size: 12px;
	line-height: 1.5;
}

.usfp-notice__list a:hover {
	color: var(--usfp-orange);
}

.usfp-regions-mini__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	padding: 10px 12px;
}

.usfp-regions-mini__grid a {
	display: block;
	text-align: center;
	padding: 6px 4px;
	font-size: 12px;
	font-weight: 600;
	color: var(--usfp-orange-dark);
	background: var(--usfp-orange-light);
	border: 1px solid #ffcc80;
	text-decoration: none;
}

.usfp-regions-mini__grid a:hover {
	background: var(--usfp-orange);
	color: var(--usfp-white);
	border-color: var(--usfp-orange);
}

/* SEO */
.usfp-seo {
	background: var(--usfp-white);
	border: 1px solid var(--usfp-border);
	padding: 16px 20px;
	margin-bottom: 24px;
}

.usfp-seo__title {
	margin: 0 0 8px;
	font-size: 14px;
	color: var(--usfp-text);
}

.usfp-seo p {
	margin: 0;
	font-size: 12px;
	color: var(--usfp-text-light);
	line-height: 1.7;
}

/* Responsive */
@media (max-width: 992px) {
	.usfp-layout {
		flex-wrap: wrap;
	}

	.usfp-side--left {
		width: 100%;
		order: 2;
	}

	.usfp-center {
		width: 100%;
		order: 1;
	}

	.usfp-side--right {
		width: 100%;
		order: 3;
		display: flex;
		flex-wrap: wrap;
		gap: 12px;
	}

	.usfp-userbox,
	.usfp-notice,
	.usfp-regions-mini {
		flex: 1;
		min-width: 200px;
		margin-bottom: 0;
	}
}

@media (max-width: 576px) {
	.usfp-head__inner {
		flex-direction: column;
		align-items: stretch;
	}

	.usfp-head__promo {
		text-align: left;
		max-width: none;
	}

	.usfp-nav__inner {
		overflow-x: auto;
		flex-wrap: nowrap;
	}

	.usfp-cat-group__list {
		grid-template-columns: 1fr;
	}
}
