/*
Theme Name: Eco Catalog 环保产品目录
Theme URI: https://example.com/themes/eco-catalog
Author: Chengdu Eco Themes
Author URI: https://example.com
Description: 产品目录风环保设备主题。头部大搜索框 + 青绿色导航条 + 左侧分类导航 + 方形产品卡片网格，像逛在线商城一样浏览环保设备，突出品类齐全与快速询价，适合 SKU 较多、以选型询价为核心的环保设备代理商。内置"产品设备"自定义文章类型与设备分类法。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
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: eco-catalog
Tags: shop, catalog, grid-layout, teal, left-sidebar, custom-menu, custom-logo, featured-images
*/

/* ===== 变量与基础 ===== */
:root {
	--ct-primary: #0e8c7f;
	--ct-primary-dark: #0a6b61;
	--ct-amber: #f59e0b;
	--ct-amber-dark: #d97706;
	--ct-ink: #1f2a33;
	--ct-muted: #75818c;
	--ct-line: #e6eaee;
	--ct-bg: #f4f6f8;
	--ct-white: #ffffff;
	--ct-radius: 10px;
	--ct-shadow: 0 2px 10px rgba(31, 42, 51, 0.06);
	--ct-shadow-lift: 0 10px 28px rgba(31, 42, 51, 0.12);
	--ct-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: var(--ct-font);
	font-size: 15px;
	line-height: 1.75;
	color: var(--ct-ink);
	background: var(--ct-bg);
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--ct-ink);
	text-decoration: none;
	transition: color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

a:hover {
	color: var(--ct-primary);
}

h1, h2, h3, h4, h5, h6 {
	color: var(--ct-ink);
	line-height: 1.35;
	margin: 0 0 0.55em;
}

p {
	margin: 0 0 1em;
}

.box {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 20px;
}

/* 无障碍 */
.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
}

.skip-link {
	position: absolute;
	left: -9999px;
	background: var(--ct-primary-dark);
	color: #fff;
	padding: 8px 16px;
	z-index: 999;
}

.skip-link:focus {
	left: 0;
	top: 0;
	clip-path: none;
	width: auto;
	height: auto;
}

/* ===== 按钮 ===== */
.btn {
	display: inline-block;
	padding: 11px 26px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	border: 1px solid transparent;
	cursor: pointer;
	transition: all 0.2s ease;
	text-align: center;
}

.btn-primary {
	background: var(--ct-primary);
	color: #fff;
}

.btn-primary:hover {
	background: var(--ct-primary-dark);
	color: #fff;
}

.btn-amber {
	background: var(--ct-amber);
	color: #fff;
}

.btn-amber:hover {
	background: var(--ct-amber-dark);
	color: #fff;
}

.btn-plain {
	background: #fff;
	border-color: var(--ct-line);
	color: var(--ct-ink);
}

.btn-plain:hover {
	border-color: var(--ct-primary);
	color: var(--ct-primary);
}

/* ===== 顶条 ===== */
.topbar {
	background: #fff;
	border-bottom: 1px solid var(--ct-line);
	font-size: 12px;
	color: var(--ct-muted);
}

.topbar-inner {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	min-height: 32px;
	align-items: center;
	flex-wrap: wrap;
}

/* ===== 主头部：LOGO + 搜索 + 热线 ===== */
.site-masthead {
	background: #fff;
}

.masthead-inner {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 36px;
	padding: 20px 0;
}

.site-branding .custom-logo {
	max-height: 52px;
	width: auto;
}

.site-logo-text {
	display: flex;
	align-items: center;
	gap: 10px;
}

.logo-mark {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: var(--ct-primary);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 21px;
	font-weight: 700;
	flex: none;
}

.logo-words {
	line-height: 1.3;
}

.site-title {
	display: block;
	font-size: 19px;
	font-weight: 700;
}

.site-desc {
	display: block;
	font-size: 12px;
	color: var(--ct-muted);
}

/* 头部大搜索框 */
.masthead-search .search-form {
	display: flex;
	max-width: 560px;
	margin: 0 auto;
	border: 2px solid var(--ct-primary);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}

.masthead-search .search-field {
	flex: 1;
	min-width: 0;
	border: 0;
	padding: 11px 16px;
	font-size: 14px;
	font-family: inherit;
	outline: none;
}

.masthead-search .search-submit {
	border: 0;
	background: var(--ct-primary);
	color: #fff;
	padding: 11px 26px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
}

.masthead-search .search-submit:hover {
	background: var(--ct-primary-dark);
}

.masthead-hotline {
	text-align: right;
	line-height: 1.4;
}

.masthead-hotline .label {
	font-size: 12px;
	color: var(--ct-muted);
}

.masthead-hotline .number {
	font-size: 20px;
	font-weight: 700;
	color: var(--ct-amber-dark);
}

/* ===== 导航条 ===== */
.navstrip {
	background: var(--ct-primary);
	position: sticky;
	top: 0;
	z-index: 100;
}

.navstrip-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: block;
	padding: 14px 22px;
	color: rgba(255, 255, 255, 0.92);
	font-size: 15px;
	font-weight: 500;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
}

.main-navigation ul ul {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 190px;
	background: #fff;
	border-radius: 0 0 var(--ct-radius) var(--ct-radius);
	box-shadow: var(--ct-shadow-lift);
	display: none;
	flex-direction: column;
	z-index: 110;
	overflow: hidden;
}

.main-navigation li:hover > ul,
.main-navigation li:focus-within > ul {
	display: flex;
}

.main-navigation ul ul a {
	color: var(--ct-ink);
	padding: 10px 18px;
	font-size: 14px;
}

.main-navigation ul ul a:hover {
	background: var(--ct-bg);
	color: var(--ct-primary);
}

.navstrip .tel-mini {
	color: rgba(255, 255, 255, 0.9);
	font-size: 13px;
	white-space: nowrap;
}

.menu-toggle {
	display: none;
	background: none;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 6px;
	padding: 8px 10px;
	cursor: pointer;
	margin: 8px 0;
}

.menu-toggle-bar {
	display: block;
	width: 20px;
	height: 2px;
	background: #fff;
	margin: 4px 0;
}

/* ===== 目录布局：左侧栏 + 主区 ===== */
.catalog-layout {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 24px;
	padding: 24px 0 56px;
	align-items: start;
}

.catalog-side {
	display: grid;
	gap: 20px;
}

.side-panel {
	background: #fff;
	border-radius: var(--ct-radius);
	box-shadow: var(--ct-shadow);
	overflow: hidden;
}

.side-panel-title {
	background: var(--ct-primary);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	margin: 0;
	padding: 13px 18px;
}

.side-cats {
	list-style: none;
	margin: 0;
	padding: 8px 0;
}

.side-cats li a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	padding: 11px 18px;
	font-size: 14px;
	border-left: 3px solid transparent;
}

.side-cats li a:hover {
	background: var(--ct-bg);
	border-left-color: var(--ct-amber);
	color: var(--ct-primary);
}

.side-cats li a.is-active {
	background: rgba(14, 140, 127, 0.08);
	border-left-color: var(--ct-primary);
	color: var(--ct-primary);
	font-weight: 600;
}

.side-cats .count {
	font-size: 12px;
	color: var(--ct-muted);
	background: var(--ct-bg);
	border-radius: 10px;
	padding: 0 8px;
}

.side-contact {
	padding: 16px 18px;
	font-size: 13px;
	color: var(--ct-muted);
	display: grid;
	gap: 10px;
}

.side-contact strong {
	display: block;
	color: var(--ct-ink);
	font-size: 15px;
}

.side-contact .btn {
	display: block;
}

/* ===== 首页横幅 ===== */
.promo-banner {
	background: linear-gradient(115deg, var(--ct-primary-dark), var(--ct-primary) 55%, #35b3a5);
	border-radius: var(--ct-radius);
	color: #fff;
	padding: 44px 44px 48px;
	position: relative;
	overflow: hidden;
	margin-bottom: 24px;
}

.promo-banner::after {
	content: "";
	position: absolute;
	right: -70px;
	top: -70px;
	width: 260px;
	height: 260px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
}

.promo-banner::before {
	content: "";
	position: absolute;
	right: 60px;
	bottom: -110px;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
}

.promo-banner h1,
.promo-banner h2 {
	color: #fff;
	font-size: 30px;
	margin-bottom: 10px;
}

.promo-banner p {
	color: rgba(255, 255, 255, 0.9);
	max-width: 560px;
	margin-bottom: 24px;
}

.promo-banner .btn-amber {
	position: relative;
	z-index: 1;
}

/* ===== 工具条 ===== */
.toolbar {
	background: #fff;
	border-radius: var(--ct-radius);
	box-shadow: var(--ct-shadow);
	padding: 13px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 20px;
	font-size: 14px;
}

.toolbar .crumb {
	color: var(--ct-muted);
}

.toolbar .crumb a {
	color: var(--ct-muted);
}

.toolbar .crumb a:hover {
	color: var(--ct-primary);
}

.toolbar .total {
	color: var(--ct-muted);
}

.toolbar .total b {
	color: var(--ct-amber-dark);
}

/* ===== 产品网格 ===== */
.sku-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.sku-grid.cols-4 {
	grid-template-columns: repeat(4, 1fr);
}

.sku-card {
	background: #fff;
	border-radius: var(--ct-radius);
	box-shadow: var(--ct-shadow);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sku-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--ct-shadow-lift);
}

.sku-thumb {
	display: block;
	aspect-ratio: 1 / 1;
	background: linear-gradient(150deg, #eef5f4, #f7f9f8);
	overflow: hidden;
	position: relative;
}

.sku-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sku-thumb .thumb-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 52px;
	font-weight: 700;
	color: rgba(14, 140, 127, 0.25);
}

.sku-body {
	padding: 14px 16px 16px;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 6px;
}

.sku-terms {
	font-size: 12px;
	color: var(--ct-primary);
}

.sku-terms a {
	color: inherit;
}

.sku-title {
	font-size: 15px;
	font-weight: 600;
	margin: 0;
	flex: 1;
}

.sku-title a {
	color: var(--ct-ink);
}

.sku-title a:hover {
	color: var(--ct-primary);
}

.sku-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 8px;
}

.sku-ask {
	font-size: 13px;
	color: var(--ct-amber-dark);
	font-weight: 700;
}

.sku-foot .btn {
	padding: 7px 16px;
	font-size: 13px;
}

/* ===== 服务承诺条 ===== */
.pledge-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin-top: 24px;
}

.pledge {
	background: #fff;
	border-radius: var(--ct-radius);
	box-shadow: var(--ct-shadow);
	padding: 18px 20px;
	display: flex;
	gap: 14px;
	align-items: center;
}

.pledge .ico {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(14, 140, 127, 0.1);
	color: var(--ct-primary);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 19px;
	font-weight: 700;
	flex: none;
}

.pledge b {
	display: block;
	font-size: 14px;
}

.pledge span {
	font-size: 12px;
	color: var(--ct-muted);
}

/* ===== 版块头 ===== */
.strip-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 32px 0 18px;
}

.strip-head h2 {
	font-size: 22px;
	margin: 0;
	padding-left: 14px;
	border-left: 4px solid var(--ct-amber);
}

.strip-head .more {
	font-size: 13px;
	color: var(--ct-muted);
}

.strip-head .more:hover {
	color: var(--ct-primary);
}

/* ===== 资讯卡 ===== */
.news-row {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

.news-item {
	background: #fff;
	border-radius: var(--ct-radius);
	box-shadow: var(--ct-shadow);
	padding: 18px 22px;
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	gap: 16px;
	align-items: center;
}

.news-item .date-chip {
	text-align: center;
	background: var(--ct-bg);
	border-radius: 8px;
	padding: 8px 4px;
	line-height: 1.3;
}

.news-item .date-chip b {
	display: block;
	font-size: 20px;
	color: var(--ct-primary);
}

.news-item .date-chip span {
	font-size: 11px;
	color: var(--ct-muted);
}

.news-item h3 {
	font-size: 15px;
	margin: 0 0 4px;
}

.news-item h3 a {
	color: var(--ct-ink);
}

.news-item h3 a:hover {
	color: var(--ct-primary);
}

.news-item p {
	font-size: 13px;
	color: var(--ct-muted);
	margin: 0;
}

/* ===== 页面标题条 ===== */
.page-strip {
	background: #fff;
	border-bottom: 1px solid var(--ct-line);
	padding: 30px 0;
}

.page-strip .page-title {
	font-size: 26px;
	margin: 0;
}

.page-strip .page-subtitle {
	margin: 6px 0 0;
	color: var(--ct-muted);
	font-size: 14px;
}

/* ===== 文章列表（资讯） ===== */
.post-list {
	display: grid;
	gap: 18px;
}

.post-item {
	background: #fff;
	border-radius: var(--ct-radius);
	box-shadow: var(--ct-shadow);
	padding: 22px 26px;
	transition: box-shadow 0.2s ease;
}

.post-item:hover {
	box-shadow: var(--ct-shadow-lift);
}

.post-item .entry-title {
	font-size: 18px;
	margin-bottom: 4px;
}

.post-item .entry-title a {
	color: var(--ct-ink);
}

.post-item .entry-title a:hover {
	color: var(--ct-primary);
}

.entry-meta {
	font-size: 12px;
	color: var(--ct-muted);
	margin-bottom: 8px;
}

.entry-meta .meta-type {
	display: inline-block;
	background: rgba(245, 158, 11, 0.14);
	color: var(--ct-amber-dark);
	border-radius: 4px;
	padding: 1px 8px;
	margin-right: 8px;
	font-weight: 600;
}

.post-item .entry-summary {
	font-size: 14px;
	color: var(--ct-muted);
	margin: 0;
}

/* ===== 正文 ===== */
.article-card {
	background: #fff;
	border-radius: var(--ct-radius);
	box-shadow: var(--ct-shadow);
	padding: 32px 36px;
}

.article-card .entry-title {
	font-size: 26px;
}

.single-thumb img {
	border-radius: var(--ct-radius);
	margin-bottom: 20px;
}

.entry-content {
	font-size: 15px;
}

.entry-content h2 {
	font-size: 22px;
	margin-top: 1.7em;
	padding-left: 12px;
	border-left: 4px solid var(--ct-primary);
}

.entry-content h3 {
	font-size: 18px;
	margin-top: 1.4em;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.4em;
}

.entry-content blockquote {
	margin: 1.5em 0;
	padding: 14px 20px;
	border-left: 4px solid var(--ct-amber);
	background: var(--ct-bg);
	color: var(--ct-muted);
	border-radius: 0 8px 8px 0;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5em 0;
	font-size: 14px;
}

.entry-content th,
.entry-content td {
	border: 1px solid var(--ct-line);
	padding: 10px 14px;
	text-align: left;
}

.entry-content th {
	background: rgba(14, 140, 127, 0.07);
	color: var(--ct-primary-dark);
	font-weight: 600;
}

.entry-content img {
	border-radius: 8px;
}

.alignleft {
	float: left;
	margin: 0 20px 12px 0;
}

.alignright {
	float: right;
	margin: 0 0 12px 20px;
}

.aligncenter {
	display: block;
	margin: 0 auto 12px;
}

/* ===== 产品详情 ===== */
.product-hero {
	background: #fff;
	border-radius: var(--ct-radius);
	box-shadow: var(--ct-shadow);
	display: grid;
	grid-template-columns: 440px minmax(0, 1fr);
	gap: 34px;
	padding: 30px;
	margin-bottom: 24px;
}

.product-gallery {
	aspect-ratio: 1 / 1;
	border-radius: var(--ct-radius);
	background: linear-gradient(150deg, #eef5f4, #f7f9f8);
	overflow: hidden;
	position: relative;
}

.product-gallery img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product-gallery .thumb-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 72px;
	font-weight: 700;
	color: rgba(14, 140, 127, 0.25);
}

.product-info h1 {
	font-size: 26px;
	margin-bottom: 10px;
}

.product-tags {
	font-size: 13px;
	color: var(--ct-primary);
	margin-bottom: 14px;
}

.product-brief {
	color: var(--ct-muted);
	font-size: 14px;
	background: var(--ct-bg);
	border-radius: 8px;
	padding: 14px 18px;
	margin-bottom: 18px;
}

.product-hotline {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
	font-size: 14px;
	color: var(--ct-muted);
}

.product-hotline b {
	font-size: 22px;
	color: var(--ct-amber-dark);
}

.product-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.detail-panel {
	background: #fff;
	border-radius: var(--ct-radius);
	box-shadow: var(--ct-shadow);
	overflow: hidden;
	margin-bottom: 24px;
}

.detail-panel-title {
	margin: 0;
	padding: 14px 24px;
	background: var(--ct-bg);
	border-bottom: 1px solid var(--ct-line);
	font-size: 16px;
	border-left: 4px solid var(--ct-primary);
}

.detail-panel .entry-content {
	padding: 24px 28px;
}

/* ===== 小工具 ===== */
.widget {
	background: #fff;
	border-radius: var(--ct-radius);
	box-shadow: var(--ct-shadow);
	padding: 20px 22px;
}

.widget-title {
	font-size: 15px;
	margin-bottom: 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--ct-line);
}

.widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
	font-size: 14px;
}

/* ===== 搜索表单（正文区） ===== */
.search-form {
	display: flex;
	border: 1px solid var(--ct-line);
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	max-width: 480px;
}

.search-field {
	flex: 1;
	min-width: 0;
	border: 0;
	padding: 10px 14px;
	font-size: 14px;
	font-family: inherit;
	outline: none;
}

.search-submit {
	border: 0;
	background: var(--ct-primary);
	color: #fff;
	padding: 10px 20px;
	font-size: 14px;
	cursor: pointer;
	font-family: inherit;
}

/* ===== 分页 ===== */
.navigation.pagination {
	margin-top: 32px;
}

.nav-links {
	display: flex;
	gap: 8px;
	justify-content: center;
	flex-wrap: wrap;
}

.nav-links .page-numbers {
	display: inline-flex;
	min-width: 38px;
	height: 38px;
	align-items: center;
	justify-content: center;
	padding: 0 12px;
	background: #fff;
	border-radius: 8px;
	box-shadow: var(--ct-shadow);
	color: var(--ct-ink);
	font-size: 14px;
}

.nav-links .page-numbers.current {
	background: var(--ct-primary);
	color: #fff;
}

.nav-links a.page-numbers:hover {
	color: var(--ct-primary);
}

.no-results {
	background: #fff;
	border-radius: var(--ct-radius);
	box-shadow: var(--ct-shadow);
	padding: 40px;
	text-align: center;
	color: var(--ct-muted);
}

/* ===== 评论 ===== */
.comments-area {
	margin-top: 24px;
	background: #fff;
	border-radius: var(--ct-radius);
	box-shadow: var(--ct-shadow);
	padding: 26px 30px;
}

.comments-title {
	font-size: 18px;
}

.comment-list {
	list-style: none;
	margin: 0 0 22px;
	padding: 0;
}

.comment-list .comment {
	border-bottom: 1px solid var(--ct-line);
	padding: 14px 0;
}

.comment-list .children {
	list-style: none;
	padding-left: 28px;
}

.comment-author {
	font-weight: 600;
	font-size: 14px;
}

.comment-author .avatar {
	border-radius: 50%;
	vertical-align: middle;
	margin-right: 8px;
}

.comment-metadata {
	font-size: 12px;
	color: var(--ct-muted);
	margin: 2px 0 6px;
}

.comment-content {
	font-size: 14px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--ct-line);
	border-radius: 8px;
	font-family: inherit;
	font-size: 14px;
	margin-bottom: 13px;
}

.comment-form input:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: var(--ct-primary);
}

.comment-form label {
	display: block;
	font-size: 13px;
	margin-bottom: 4px;
}

.comment-form .submit {
	background: var(--ct-primary);
	color: #fff;
	border: 0;
	border-radius: 8px;
	padding: 11px 28px;
	font-size: 14px;
	cursor: pointer;
	font-family: inherit;
}

.comment-form .submit:hover {
	background: var(--ct-primary-dark);
}

/* ===== 404 ===== */
.error-404 {
	background: #fff;
	border-radius: var(--ct-radius);
	box-shadow: var(--ct-shadow);
	margin: 40px auto;
	max-width: 640px;
	padding: 60px 40px;
	text-align: center;
}

.error-code {
	font-size: 88px;
	font-weight: 700;
	line-height: 1;
	color: var(--ct-primary);
}

.error-code i {
	font-style: normal;
	color: var(--ct-amber);
}

.error-404 .search-form {
	margin: 22px auto 0;
}

/* ===== 页脚 ===== */
.site-footer {
	background: #1c2b33;
	color: rgba(255, 255, 255, 0.72);
	margin-top: 48px;
	font-size: 14px;
}

.footer-widgets {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 34px;
	padding: 48px 0 36px;
}

.site-footer .widget {
	background: none;
	border-radius: 0;
	box-shadow: none;
	padding: 0;
}

.footer-heading {
	color: #fff;
	font-size: 15px;
	margin-bottom: 14px;
}

.site-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 9px;
}

.site-footer a {
	color: rgba(255, 255, 255, 0.72);
}

.site-footer a:hover {
	color: #ffc255;
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding: 15px 0;
	font-size: 13px;
}

.footer-bottom-inner {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex !important;
	gap: 18px;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
	.catalog-layout {
		grid-template-columns: 1fr;
	}

	.catalog-side {
		order: 2;
	}

	.catalog-main {
		order: 1;
	}

	.sku-grid,
	.sku-grid.cols-4 {
		grid-template-columns: repeat(2, 1fr);
	}

	.pledge-row {
		grid-template-columns: repeat(2, 1fr);
	}

	.news-row {
		grid-template-columns: 1fr;
	}

	.product-hero {
		grid-template-columns: 1fr;
	}

	.footer-widgets {
		grid-template-columns: 1fr 1fr;
	}

	.masthead-inner {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.masthead-hotline {
		display: none;
	}
}

@media (max-width: 782px) {
	.menu-toggle {
		display: block;
	}

	.navstrip .main-navigation {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--ct-primary-dark);
		display: none;
	}

	.navstrip .main-navigation.is-open {
		display: block;
	}

	.main-navigation ul {
		flex-direction: column;
	}

	.main-navigation a {
		padding: 12px 22px;
	}

	.main-navigation ul ul {
		position: static;
		display: flex;
		box-shadow: none;
		background: rgba(0, 0, 0, 0.12);
	}

	.main-navigation ul ul a {
		color: rgba(255, 255, 255, 0.85);
		padding-left: 38px;
	}

	.masthead-inner {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.masthead-search .search-form {
		max-width: none;
	}

	.promo-banner {
		padding: 30px 24px;
	}

	.promo-banner h1,
	.promo-banner h2 {
		font-size: 23px;
	}

	.article-card {
		padding: 22px;
	}

	.product-hero {
		padding: 20px;
	}
}

@media (max-width: 600px) {
	.sku-grid,
	.sku-grid.cols-4 {
		grid-template-columns: 1fr;
	}

	.pledge-row {
		grid-template-columns: 1fr;
	}

	.footer-widgets {
		grid-template-columns: 1fr;
	}

	.topbar-inner {
		justify-content: center;
	}
}
