/*
Theme Name: Xiangdong Environmental Technology
Theme URI: https://xdhbkjgs.com/
Author: Pingxiang Xiangdong Environmental Technology Co., Ltd.
Author URI: https://xdhbkjgs.com/
Description: 萍乡湘东环保科技有限公司企业官网主题。采用"经典门户型 + 产品目录型"组合布局：首页含全屏横幅、核心业务、企业优势与数据展示、新闻动态；并内置产品分类展示、多列产品卡片、产品详情与询价入口。A corporate website theme for a Chinese environmental protection equipment manufacturer, combining a classic portal homepage with a product catalog layout.
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: xdhbkjgs
Tags: custom-menu, custom-logo, featured-images, footer-widgets, theme-options, translation-ready, full-width-template, editor-style
*/

:root {
	--xdh-green: #1f7a4d;
	--xdh-green-dark: #145234;
	--xdh-blue: #17466e;
	--xdh-gray: #f4f6f5;
	--xdh-text: #2c3338;
	--xdh-muted: #6b7570;
	--xdh-line: #e2e7e4;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
	color: var(--xdh-text);
	background: #fff;
	line-height: 1.7;
	font-size: 16px;
}

a { color: var(--xdh-green); text-decoration: none; }
a:hover { color: var(--xdh-green-dark); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* 顶部信息栏 */
.topbar { background: var(--xdh-blue); color: #cfe0ee; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 34px; flex-wrap: wrap; gap: 4px; }
.topbar a { color: #fff; }
.topbar-right span { margin-left: 18px; }

/* Logo 与主导航 */
.site-header { background: #fff; border-bottom: 1px solid var(--xdh-line); position: relative; z-index: 20; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-logo-text .site-name { font-size: 22px; font-weight: 700; color: var(--xdh-text); letter-spacing: 1px; }
.site-logo-text .site-slogan { font-size: 12px; color: var(--xdh-muted); letter-spacing: 2px; }
.custom-logo { max-height: 60px; width: auto; }
.header-hotline { text-align: right; font-size: 14px; color: var(--xdh-muted); }
.header-hotline strong { display: block; font-size: 20px; color: var(--xdh-green); }

.main-navigation { background: var(--xdh-green); }
.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.main-navigation li { position: relative; }
.main-navigation a { display: block; padding: 12px 22px; color: #fff; font-size: 16px; }
.main-navigation a:hover, .main-navigation .current-menu-item > a { background: var(--xdh-green-dark); color: #fff; }
.menu-toggle { display: none; }

/* 全屏 Banner 主视觉 */
.hero-banner {
	position: relative;
	min-height: 520px;
	display: flex;
	align-items: center;
	color: #fff;
	background: var(--xdh-green-dark) url('assets/images/banner.jpg') center 30% no-repeat;
	background-size: cover;
}
.hero-banner::after { content: ""; position: absolute; inset: 0; background: rgba(10, 35, 24, 0.55); }
.hero-banner .container { position: relative; z-index: 1; }
.hero-banner h1 { font-size: 40px; margin: 0 0 14px; letter-spacing: 2px; }
.hero-banner p { font-size: 18px; max-width: 640px; margin: 0 0 28px; color: #e9f2ec; }
.hero-actions .btn { margin-right: 14px; }
.btn {
	display: inline-block;
	padding: 12px 30px;
	background: var(--xdh-green);
	color: #fff;
	border-radius: 3px;
	font-size: 16px;
	transition: background 0.2s;
}
.btn:hover { background: #fff; color: var(--xdh-green); }
.btn-outline { background: transparent; border: 1px solid rgba(255, 255, 255, 0.7); }

/* 通用区块 */
.home-section { padding: 64px 0; }
.home-section.alt { background: var(--xdh-gray); }
.section-title { text-align: center; margin: 0 0 10px; font-size: 30px; letter-spacing: 1px; }
.section-sub { text-align: center; color: var(--xdh-muted); margin: 0 0 40px; }

/* 核心业务 */
.biz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.biz-item { background: #fff; border: 1px solid var(--xdh-line); padding: 28px 24px; text-align: center; border-radius: 4px; }
.biz-item .num { display: inline-block; width: 52px; height: 52px; line-height: 52px; border-radius: 50%; background: #e7f2ec; color: var(--xdh-green); font-weight: 700; margin-bottom: 14px; }
.biz-item h3 { margin: 0 0 8px; font-size: 19px; }
.biz-item p { margin: 0; color: var(--xdh-muted); font-size: 15px; }

/* 企业优势与数据展示 */
.stats-bar { background: var(--xdh-green-dark); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 48px 0; text-align: center; }
.stat .stat-num { font-size: 40px; font-weight: 700; }
.stat .stat-num span { font-size: 18px; }
.stat .stat-label { color: #cfe5d8; font-size: 15px; }

.advantage-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 40px; }
.advantage-item { display: flex; gap: 16px; background: #fff; border: 1px solid var(--xdh-line); padding: 22px; border-radius: 4px; }
.advantage-item h4 { margin: 0 0 6px; font-size: 17px; }
.advantage-item p { margin: 0; color: var(--xdh-muted); font-size: 15px; }

/* 新闻动态 */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: #fff; border: 1px solid var(--xdh-line); border-radius: 4px; overflow: hidden; }
.news-card .news-body { padding: 18px 20px 22px; }
.news-card time { color: var(--xdh-muted); font-size: 13px; }
.news-card h3 { margin: 8px 0 10px; font-size: 17px; line-height: 1.5; }
.news-card p { margin: 0; color: var(--xdh-muted); font-size: 14px; }
.more-link { text-align: center; margin-top: 34px; }

/* 产品目录：分类展示 */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card { position: relative; display: block; border-radius: 4px; overflow: hidden; }
.cat-card img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.3s; }
.cat-card:hover img { transform: scale(1.04); }
.cat-card .cat-name { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 26px 14px 12px; color: #fff; font-size: 16px; font-weight: 500; background: linear-gradient(transparent, rgba(12, 40, 27, 0.85)); }

/* 产品卡片 */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product-card { background: #fff; border: 1px solid var(--xdh-line); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; }
.product-card figure { margin: 0; }
.product-card img { width: 100%; height: 220px; object-fit: cover; }
.product-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { margin: 0 0 8px; font-size: 18px; }
.product-body h3 a { color: var(--xdh-text); }
.product-body p { margin: 0 0 16px; color: var(--xdh-muted); font-size: 14px; flex: 1; }
.product-meta { display: flex; justify-content: space-between; align-items: center; }
.model-tag { background: #e7f2ec; color: var(--xdh-green); font-size: 13px; padding: 3px 10px; border-radius: 3px; }
.inquiry-btn { background: var(--xdh-green); color: #fff; padding: 8px 18px; border-radius: 3px; font-size: 14px; }
.inquiry-btn:hover { background: var(--xdh-green-dark); color: #fff; }

/* 联系我们 */
.contact-cta { background: var(--xdh-blue); color: #fff; text-align: center; }
.contact-cta h2 { margin: 0 0 10px; font-size: 28px; }
.contact-cta p { color: #cfe0ee; margin: 0 0 26px; }

/* 文章 / 页面 */
.page-header { background: var(--xdh-gray); border-bottom: 1px solid var(--xdh-line); padding: 40px 0; }
.page-header h1 { margin: 0; font-size: 28px; }
.breadcrumb { color: var(--xdh-muted); font-size: 14px; margin-top: 6px; }
.content-area { padding: 50px 0; }
.entry-content h2, .entry-content h3 { color: var(--xdh-green-dark); }
.entry-meta { color: var(--xdh-muted); font-size: 14px; margin-bottom: 24px; }
.post-navigation, .pagination { margin: 30px 0; }
.pagination .nav-links { display: flex; gap: 8px; justify-content: center; }
.pagination a, .pagination .current { padding: 8px 14px; border: 1px solid var(--xdh-line); border-radius: 3px; }
.pagination .current { background: var(--xdh-green); color: #fff; border-color: var(--xdh-green); }

/* 页脚 */
.site-footer { background: #14342a; color: #b9cdc3; font-size: 14px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 52px 0 36px; }
.footer-cols h3 { color: #fff; font-size: 17px; margin: 0 0 16px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: 10px; }
.footer-cols a { color: #b9cdc3; }
.footer-cols a:hover { color: #fff; }
.site-info { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 18px 0; text-align: center; font-size: 13px; color: #8fa89c; }
.site-info a { color: #8fa89c; }

/* 响应式 */
@media (max-width: 960px) {
	.biz-grid, .product-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
	.cat-grid { grid-template-columns: repeat(2, 1fr); }
	.stats-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-cols { grid-template-columns: repeat(2, 1fr); }
	.advantage-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.hero-banner { min-height: 420px; }
	.hero-banner h1 { font-size: 28px; }
	.biz-grid, .product-grid, .news-grid, .cat-grid, .stats-grid, .footer-cols { grid-template-columns: 1fr; }
	.header-hotline { display: none; }
	.menu-toggle {
		display: block;
		background: none;
		border: 1px solid var(--xdh-line);
		border-radius: 4px;
		padding: 8px 14px;
		font-size: 15px;
		color: var(--xdh-text);
		cursor: pointer;
	}
	.main-navigation { display: none; }
	.main-navigation.open { display: block; }
	.main-navigation ul { flex-direction: column; }
}
