/*
Theme Name: 跃鹏商城
Author: jr
Description: 跃鹏商城的自研 WooCommerce 商城主题 —— 首页、商品列表、商品详情、购物车、结算与博客页面完整支持。
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: e-commerce, custom-logo, custom-menu, featured-images, translation-ready
Text Domain: yuepeng-mall
*/

/* =================================================================
   设计变量(想换配色,改这里就行)
   ================================================================= */
:root {
	--yp-primary: #e02020;
	--yp-primary-dark: #b81717;
	--yp-primary-soft: #fff1f0;
	--yp-gold: #ffb800;
	--yp-text: #1f2329;
	--yp-muted: #6b7280;
	--yp-bg: #f6f7f9;
	--yp-white: #ffffff;
	--yp-border: #e5e7eb;
	--yp-dark: #111827;
	--yp-radius: 12px;
	--yp-radius-sm: 8px;
	--yp-shadow: 0 2px 10px rgba(17, 24, 39, .06);
	--yp-shadow-hover: 0 12px 28px rgba(17, 24, 39, .12);
	--yp-container: 1200px;
}

/* =================================================================
   基础
   ================================================================= */
*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--yp-bg);
	color: var(--yp-text);
	font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	font-size: 15px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5 {
	line-height: 1.3;
}

a {
	color: var(--yp-primary);
	text-decoration: none;
}

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

.yp-container {
	max-width: var(--yp-container);
	margin: 0 auto;
	padding-left: 20px;
	padding-right: 20px;
}

/* WordPress 无障碍隐藏类 */
.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

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

.skip-link:focus {
	left: 0;
	color: #fff;
}

/* =================================================================
   按钮
   ================================================================= */
.yp-btn {
	display: inline-block;
	padding: 12px 28px;
	border-radius: 999px;
	font-weight: 600;
	line-height: 1.4;
	border: 0;
	cursor: pointer;
	transition: background .2s ease, color .2s ease, transform .2s ease;
}

.yp-btn:active {
	transform: scale(.98);
}

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

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

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

.yp-btn--light:hover {
	background: var(--yp-primary-soft);
	color: var(--yp-primary-dark);
}

.yp-btn--ghost {
	border: 1px solid rgba(255, 255, 255, .8);
	color: #fff;
}

.yp-btn--ghost:hover {
	background: rgba(255, 255, 255, .16);
	color: #fff;
}

/* =================================================================
   顶部条 / 头部 / 导航
   ================================================================= */
.yp-topbar {
	background: #23272e;
	color: #d1d5db;
	font-size: 13px;
	padding: 6px 0;
	text-align: center;
}

.yp-header {
	background: var(--yp-white);
	box-shadow: var(--yp-shadow);
	position: sticky;
	top: 0;
	z-index: 100;
}

.yp-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	padding-top: 14px;
	padding-bottom: 14px;
}

.yp-header__brand {
	flex: 0 0 auto;
}

.yp-site-title {
	margin: 0;
	font-size: 26px;
	font-weight: 800;
	letter-spacing: 1px;
}

.yp-site-title a {
	color: var(--yp-primary);
}

.yp-site-title a:hover {
	color: var(--yp-primary-dark);
}

.yp-site-desc {
	margin: 0;
	font-size: 12px;
	color: var(--yp-muted);
}

.yp-header__brand img,
.custom-logo {
	max-height: 52px;
	width: auto;
}

.yp-shop-search {
	max-width: 480px;
	margin: 0 0 20px;
}

.yp-header__cart {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
	color: var(--yp-text);
	font-weight: 600;
	padding: 8px 16px;
	border: 1px solid var(--yp-border);
	border-radius: 999px;
}

.yp-header__cart:hover {
	border-color: var(--yp-primary);
	color: var(--yp-primary);
}

.yp-cart__count {
	display: inline-block;
	min-width: 20px;
	height: 20px;
	line-height: 20px;
	padding: 0 6px;
	background: var(--yp-primary);
	color: #fff;
	border-radius: 999px;
	font-size: 12px;
	text-align: center;
}

.yp-nav {
	border-top: 1px solid var(--yp-border);
}

.yp-nav__inner {
	display: flex;
	align-items: center;
	gap: 12px;
}

.yp-nav-toggle {
	display: none;
	align-items: center;
	gap: 6px;
	background: none;
	border: 1px solid var(--yp-border);
	border-radius: var(--yp-radius-sm);
	padding: 8px 14px;
	font: inherit;
	cursor: pointer;
}

.yp-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.yp-nav__list {
	display: flex;
	flex-wrap: wrap;
}

.yp-nav__list > li {
	position: relative;
}

.yp-nav__list a {
	display: block;
	padding: 13px 18px;
	color: var(--yp-text);
	font-weight: 500;
	border-bottom: 2px solid transparent;
}

.yp-nav__list a:hover,
.yp-nav__list .current-menu-item > a {
	color: var(--yp-primary);
	border-bottom-color: var(--yp-primary);
}

/* 下拉菜单 */
.yp-nav__list .sub-menu {
	position: absolute;
	left: 0;
	top: 100%;
	display: none;
	min-width: 190px;
	background: var(--yp-white);
	border-radius: 0 0 var(--yp-radius-sm) var(--yp-radius-sm);
	box-shadow: var(--yp-shadow-hover);
	padding: 8px 0;
	z-index: 60;
}

.yp-nav__list li:hover > .sub-menu {
	display: block;
}

.yp-nav__list .sub-menu a {
	padding: 9px 18px;
	border: 0;
}

.yp-nav__list .sub-menu a:hover {
	background: var(--yp-primary-soft);
	color: var(--yp-primary);
}

/* =================================================================
   首页
   ================================================================= */
.yp-hero {
	position: relative;
	overflow: hidden;
	background: #0a0e1a;
	color: #fff;
	padding: 96px 0;
}

.yp-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(600px 300px at 12% 0%, rgba(124, 58, 237, .38), transparent 62%),
		radial-gradient(700px 320px at 88% 8%, rgba(6, 182, 212, .30), transparent 62%),
		radial-gradient(560px 280px at 62% 110%, rgba(224, 32, 32, .34), transparent 62%);
	pointer-events: none;
}

.yp-hero .yp-container {
	position: relative;
	z-index: 1;
}

.yp-hero__eyebrow {
	margin: 0 0 10px;
	font-size: 14px;
	letter-spacing: 4px;
	color: #93c5fd;
}

.yp-hero__title {
	margin: 0 0 16px;
	font-size: 44px;
	font-weight: 800;
	color: #fff;
}

.yp-hero__desc {
	margin: 0 0 30px;
	max-width: 680px;
	font-size: 16px;
	color: #cbd5e1;
}

.yp-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.yp-benefits {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin-top: -40px;
	position: relative;
	z-index: 2;
}

.yp-benefit {
	display: flex;
	align-items: center;
	gap: 14px;
	background: var(--yp-white);
	border-radius: var(--yp-radius);
	box-shadow: var(--yp-shadow);
	padding: 18px 22px;
}

.yp-benefit__icon {
	font-size: 26px;
}

.yp-benefit small {
	color: var(--yp-muted);
}

.yp-section {
	padding: 44px 0;
}

.yp-section--alt {
	background: var(--yp-white);
}

.yp-section__title {
	margin: 0 0 24px;
	padding-left: 12px;
	font-size: 24px;
	border-left: 4px solid var(--yp-primary);
}

.yp-notice {
	background: var(--yp-white);
	border: 1px dashed var(--yp-border);
	border-radius: var(--yp-radius);
	padding: 28px;
	text-align: center;
	color: var(--yp-muted);
}

.yp-news {
	background: var(--yp-white);
	border: 1px solid var(--yp-border);
	border-radius: var(--yp-radius);
	overflow: hidden;
}

.yp-news__item {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 20px;
	border-bottom: 1px solid var(--yp-border);
}

.yp-news__item:last-child {
	border-bottom: 0;
}

.yp-news__item a {
	color: var(--yp-text);
}

.yp-news__item a:hover {
	color: var(--yp-primary);
}

.yp-news__date {
	color: var(--yp-muted);
	font-size: 13px;
	white-space: nowrap;
}

/* =================================================================
   WooCommerce —— 商品列表与卡片
   ================================================================= */
.yp-shop-wrap {
	padding-top: 24px;
	padding-bottom: 48px;
}

.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
	display: none;
	content: none;
}

.woocommerce ul.products li.product {
	position: relative;
	float: none;
	width: auto;
	margin: 0;
	padding: 12px;
	text-align: center;
	background: var(--yp-white);
	border: 1px solid var(--yp-border);
	border-radius: var(--yp-radius);
	transition: transform .2s ease, box-shadow .2s ease;
}

.woocommerce ul.products li.product:hover {
	transform: translateY(-4px);
	box-shadow: var(--yp-shadow-hover);
}

.woocommerce ul.products li.product img {
	margin: 0 0 12px;
	border-radius: var(--yp-radius-sm);
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	padding: 0 4px 6px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--yp-text);
}

.woocommerce ul.products li.product a:hover .woocommerce-loop-product__title {
	color: var(--yp-primary);
}

.woocommerce ul.products li.product .price {
	color: var(--yp-primary);
	font-size: 17px;
	font-weight: 700;
}

.woocommerce ul.products li.product .price del {
	color: var(--yp-muted);
	font-size: 13px;
	font-weight: 400;
}

.woocommerce ul.products li.product .price ins {
	text-decoration: none;
	font-weight: 700;
}

.woocommerce ul.products li.product .star-rating {
	margin: 0 auto 8px;
	color: var(--yp-gold);
}

.woocommerce ul.products li.product .button {
	margin-top: 10px;
	width: 100%;
}

/* 商品分类卡片 */
.woocommerce ul.products li.product-category img {
	aspect-ratio: 4 / 3;
}

.woocommerce ul.products li.product-category .woocommerce-loop-category__title {
	padding: 0 0 4px;
	font-size: 16px;
}

.woocommerce ul.products li.product-category .woocommerce-loop-category__title .count {
	background: var(--yp-primary-soft);
	color: var(--yp-primary);
	border-radius: 999px;
	padding: 0 10px;
	margin-left: 6px;
	font-size: 12px;
}

/* 促销角标 */
.woocommerce span.onsale {
	top: 20px;
	left: 20px;
	z-index: 9;
	min-height: 0;
	min-width: 0;
	padding: 1px 12px;
	background: var(--yp-gold);
	color: #6b4b00;
	font-size: 12px;
	font-weight: 700;
	line-height: 24px;
	border-radius: 999px;
}

/* 列表工具栏 */
.woocommerce .woocommerce-result-count {
	color: var(--yp-muted);
}

.woocommerce .woocommerce-ordering select {
	padding: 6px 12px;
}

/* 分页 */
.woocommerce nav.woocommerce-pagination ul {
	display: flex;
	gap: 6px;
	border: 0;
	justify-content: center;
	margin: 24px 0;
}

.woocommerce nav.woocommerce-pagination ul li {
	border: 0;
	margin: 0;
	overflow: visible;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	display: inline-block;
	min-width: 38px;
	padding: 6px 10px;
	text-align: center;
	background: var(--yp-white);
	border: 1px solid var(--yp-border);
	border-radius: var(--yp-radius-sm);
	color: var(--yp-text);
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
	background: var(--yp-primary);
	border-color: var(--yp-primary);
	color: #fff;
}

/* 面包屑 */
.woocommerce .woocommerce-breadcrumb {
	margin: 20px 0;
	color: var(--yp-muted);
	font-size: 13px;
}

.woocommerce .woocommerce-breadcrumb a {
	color: var(--yp-muted);
}

.woocommerce .woocommerce-breadcrumb a:hover {
	color: var(--yp-primary);
}

/* =================================================================
   WooCommerce —— 商品详情 / 购物车 / 结算
   ================================================================= */
.woocommerce div.product .product_title {
	font-size: 26px;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: var(--yp-primary);
	font-size: 26px;
	font-weight: 700;
}

.woocommerce div.product p.price del {
	color: var(--yp-muted);
	font-size: 16px;
}

.woocommerce div.product form.cart .button {
	padding: 12px 34px;
	font-size: 16px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	color: var(--yp-text);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
	color: var(--yp-primary);
}

.woocommerce div.product .related > h2,
.woocommerce div.product .upsells > h2 {
	font-size: 22px;
	padding-left: 12px;
	border-left: 4px solid var(--yp-primary);
}

.woocommerce table.shop_table {
	border: 1px solid var(--yp-border);
	border-radius: var(--yp-radius);
	border-collapse: separate;
}

.woocommerce table.shop_table th {
	background: #fafafa;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
	border-radius: var(--yp-radius-sm);
	padding: 14px;
	font-size: 16px;
}

.woocommerce form.checkout_coupon,
.woocommerce form.login,
.woocommerce form.register {
	border: 1px solid var(--yp-border);
	border-radius: var(--yp-radius);
}

/* =================================================================
   文章 / 页面 / 404
   ================================================================= */
.yp-archive,
.yp-page,
.yp-single {
	padding-top: 32px;
	padding-bottom: 48px;
}

.yp-archive__title {
	margin: 0 0 20px;
	font-size: 26px;
}

.yp-post-card {
	background: var(--yp-white);
	border: 1px solid var(--yp-border);
	border-radius: var(--yp-radius);
	padding: 26px;
	margin-bottom: 20px;
}

.yp-post-card .entry-title {
	margin: 0 0 8px;
	font-size: 24px;
}

.yp-post-card .entry-title a {
	color: var(--yp-text);
}

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

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

.post-thumbnail img {
	border-radius: var(--yp-radius-sm);
	margin-bottom: 16px;
}

.entry-content h2 {
	margin-top: 1.6em;
}

.entry-content h3 {
	margin-top: 1.4em;
}

.entry-content a {
	text-decoration: underline;
}

.entry-content blockquote {
	margin: 1.5em 0;
	padding: 12px 20px;
	border-left: 4px solid var(--yp-primary);
	background: var(--yp-primary-soft);
	border-radius: 0 var(--yp-radius-sm) var(--yp-radius-sm) 0;
}

.entry-content code {
	background: #f3f4f6;
	border-radius: 4px;
	padding: 2px 6px;
	font-size: .92em;
}

.entry-content pre {
	background: #1f2329;
	color: #e5e7eb;
	padding: 16px 20px;
	border-radius: var(--yp-radius-sm);
	overflow: auto;
}

.entry-content pre code {
	background: none;
	padding: 0;
	color: inherit;
}

.entry-content table {
	border-collapse: collapse;
	width: 100%;
}

.entry-content th,
.entry-content td {
	border: 1px solid var(--yp-border);
	padding: 8px 12px;
}

.yp-post-nav {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin: 20px 0;
}

.yp-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	padding: 16px 0 0;
}

.yp-pagination .page-numbers {
	display: inline-block;
	min-width: 38px;
	padding: 6px 12px;
	text-align: center;
	background: var(--yp-white);
	border: 1px solid var(--yp-border);
	border-radius: var(--yp-radius-sm);
	color: var(--yp-text);
}

.yp-pagination .page-numbers.current,
.yp-pagination a.page-numbers:hover {
	background: var(--yp-primary);
	border-color: var(--yp-primary);
	color: #fff;
}

.yp-404 {
	text-align: center;
	padding: 72px 0;
}

.yp-404__code {
	margin: 0;
	font-size: 84px;
	font-weight: 800;
	color: var(--yp-primary);
	line-height: 1;
}

.yp-404__title {
	margin: 6px 0 12px;
	font-size: 28px;
}

.yp-404__actions {
	margin: 24px 0 32px;
}

.yp-404__search {
	max-width: 420px;
	margin: 0 auto;
}

/* =================================================================
   表单 / 搜索框 / WooCommerce 按钮
   ================================================================= */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
textarea,
select {
	border: 1px solid var(--yp-border);
	border-radius: var(--yp-radius-sm);
	padding: 8px 12px;
	font: inherit;
	background: var(--yp-white);
	color: var(--yp-text);
}

input:focus,
textarea:focus,
select:focus {
	outline: 2px solid rgba(224, 32, 32, .2);
	border-color: var(--yp-primary);
}

.search-form,
.woocommerce-product-search {
	display: flex;
	gap: 8px;
}

.search-form .search-field,
.woocommerce-product-search .search-field {
	flex: 1 1 auto;
}

.search-form .search-submit,
.woocommerce-product-search button {
	flex: 0 0 auto;
	background: var(--yp-primary);
	border: 0;
	border-radius: var(--yp-radius-sm);
	color: #fff;
	padding: 0 20px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.search-form .search-submit:hover,
.woocommerce-product-search button:hover {
	background: var(--yp-primary-dark);
}

.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	background: var(--yp-primary);
	color: #fff;
	border-radius: var(--yp-radius-sm);
	padding: 10px 20px;
	font-weight: 600;
	line-height: 1.5;
}

.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
	background: var(--yp-primary-dark);
	color: #fff;
}

.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
	background: var(--yp-primary);
	color: #fff;
}

.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
	background: var(--yp-primary-dark);
	color: #fff;
}

.woocommerce .quantity .qty {
	border: 1px solid var(--yp-border);
	border-radius: var(--yp-radius-sm);
	padding: 8px;
}

/* =================================================================
   页脚
   ================================================================= */
.yp-footer {
	margin-top: 56px;
	background: var(--yp-dark);
	color: #9ca3af;
}

.yp-footer a {
	color: #9ca3af;
}

.yp-footer a:hover {
	color: #fff;
}

.yp-footer__cols {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 32px;
	padding-top: 44px;
	padding-bottom: 44px;
}

.yp-footer__col h3 {
	margin: 0 0 14px;
	color: #fff;
	font-size: 15px;
}

.yp-footer__col p {
	margin: 0 0 8px;
}

.yp-footer__col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.yp-footer__col li {
	margin-bottom: 8px;
}

.yp-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, .08);
	padding: 16px 0;
	text-align: center;
	font-size: 13px;
}

/* =================================================================
   首屏(白底图文)
   ================================================================= */
.yp-intro {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: linear-gradient(180deg, #0c1220 0%, #06090f 100%);
	padding: 104px 0;
}

.yp-intro__inner {
	position: relative;
	z-index: 1;
}

.yp-intro__eyebrow {
	margin: 0 0 10px;
	font-size: 14px;
	letter-spacing: 4px;
	color: #fca5a5;
}

.yp-intro__title {
	margin: 0 0 16px;
	font-size: 48px;
	font-weight: 800;
	line-height: 1.15;
	color: #fff;
}

.yp-intro__desc {
	max-width: 640px;
	margin: 0 0 28px;
	font-size: 19px;
	font-weight: 500;
	line-height: 1.65;
	color: #cbd5e1;
}

.yp-intro__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* 舞台光效层(整屏铺满,CSS 纯光效) */
.yp-lightfx {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
}

.yp-lightfx__beam {
	position: absolute;
	bottom: -12%;
	left: 50%;
	width: 150px;
	height: 125%;
	margin-left: -75px;
	transform-origin: 50% 100%;
	clip-path: polygon(47% 100%, 53% 100%, 100% 0%, 0% 0%);
	filter: blur(16px);
	mix-blend-mode: screen;
	pointer-events: none;
	animation: yp-beam-sway 9s ease-in-out infinite;
}

@keyframes yp-beam-sway {
	0%,
	100% {
		transform: rotate(calc(var(--yp-beam-base, 0deg) - 7deg));
		opacity: .35;
	}

	50% {
		transform: rotate(calc(var(--yp-beam-base, 0deg) + 7deg));
		opacity: .75;
	}
}

.yp-lightfx__beam--1 {
	left: 14%;
	width: 220px;
	margin-left: -110px;
	--yp-beam-base: -20deg;
	background: linear-gradient(to top, rgba(139, 92, 246, .9) 0%, rgba(139, 92, 246, 0) 85%);
	animation-duration: 9s;
}

.yp-lightfx__beam--2 {
	left: 36%;
	width: 170px;
	margin-left: -85px;
	--yp-beam-base: -8deg;
	background: linear-gradient(to top, rgba(34, 211, 238, .85) 0%, rgba(34, 211, 238, 0) 85%);
	animation-duration: 11s;
	animation-delay: -3s;
}

.yp-lightfx__beam--3 {
	left: 53%;
	width: 260px;
	margin-left: -130px;
	--yp-beam-base: 2deg;
	background: linear-gradient(to top, rgba(244, 63, 94, .85) 0%, rgba(244, 63, 94, 0) 85%);
	animation-duration: 8s;
	animation-delay: -5s;
}

.yp-lightfx__beam--4 {
	left: 72%;
	width: 200px;
	margin-left: -100px;
	--yp-beam-base: 14deg;
	background: linear-gradient(to top, rgba(245, 158, 11, .85) 0%, rgba(245, 158, 11, 0) 85%);
	animation-duration: 10s;
	animation-delay: -2s;
}

.yp-lightfx__beam--5 {
	left: 88%;
	width: 150px;
	margin-left: -75px;
	--yp-beam-base: 24deg;
	background: linear-gradient(to top, rgba(52, 211, 153, .8) 0%, rgba(52, 211, 153, 0) 85%);
	animation-duration: 12s;
	animation-delay: -7s;
}

@media (prefers-reduced-motion: reduce) {
	.yp-lightfx__beam {
		animation: none;
	}
}

/* =================================================================
   公司主页 —— 关于我们 / 数据 / 产品系列 / 应用领域
   ================================================================= */
.yp-about {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 40px;
	align-items: center;
}

.yp-about__text p {
	margin: 0 0 14px;
	color: #374151;
}

.yp-about__media {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 400px;
	padding: 20px;
	background: linear-gradient(160deg, #eef1f5 0%, #dfe4eb 100%);
	border-radius: var(--yp-radius);
	color: #8b93a1;
	font-size: 14px;
	text-align: center;
}

.yp-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 24px;
}

.yp-stat {
	background: var(--yp-white);
	border: 1px solid var(--yp-border);
	border-radius: var(--yp-radius);
	padding: 18px 12px;
	text-align: center;
}

.yp-stat__num {
	font-size: 28px;
	font-weight: 800;
	color: var(--yp-primary);
	line-height: 1.2;
}

.yp-stat__label {
	color: var(--yp-muted);
	font-size: 13px;
}

.yp-series-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.yp-series-card {
	display: block;
	background: var(--yp-white);
	border: 1px solid var(--yp-border);
	border-radius: var(--yp-radius);
	padding: 22px;
	color: var(--yp-text);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.yp-series-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--yp-shadow-hover);
	border-color: var(--yp-primary);
	color: var(--yp-text);
}

.yp-series-card__icon {
	display: block;
	color: var(--yp-primary);
}

.yp-series-card__icon svg {
	display: block;
	width: 32px;
	height: 32px;
}

.yp-series-card__title {
	margin: 12px 0 6px;
	font-size: 17px;
}

.yp-series-card__desc {
	margin: 0 0 14px;
	color: var(--yp-muted);
	font-size: 14px;
}

.yp-series-card__more {
	color: var(--yp-primary);
	font-size: 14px;
	font-weight: 600;
}

.yp-apps {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 14px;
}

.yp-app {
	background: var(--yp-white);
	border: 1px solid var(--yp-border);
	border-radius: var(--yp-radius);
	padding: 20px 10px;
	text-align: center;
}

.yp-app__icon {
	display: block;
	color: #64748b;
	margin-bottom: 10px;
}

.yp-app__icon svg {
	display: block;
	width: 28px;
	height: 28px;
	margin: 0 auto;
}

.yp-app__name {
	font-size: 14px;
	color: var(--yp-text);
}

.yp-section--contact {
	background: linear-gradient(135deg, #101728 0%, #0a0e1a 100%);
	color: #e5e7eb;
}

.yp-contact-grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 40px;
	align-items: start;
}

.yp-contact__title {
	margin: 0 0 10px;
	font-size: 26px;
	color: #fff;
}

.yp-contact__desc {
	margin: 0 0 22px;
	color: #9ca3af;
}

.yp-contact-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.yp-contact-list li {
	display: flex;
	gap: 14px;
	padding: 11px 0;
	border-bottom: 1px dashed rgba(255, 255, 255, .12);
	color: #e5e7eb;
}

.yp-contact-list li:last-child {
	border-bottom: 0;
}

.yp-contact-list__label {
	flex: 0 0 64px;
	color: #9ca3af;
}

/* =================================================================
   WhatsApp 按钮
   ================================================================= */
.yp-whatsapp-btn,
.woocommerce a.button.yp-whatsapp-btn {
	background: #25d366;
	color: #fff;
	font-weight: 600;
}

.yp-whatsapp-btn:hover,
.woocommerce a.button.yp-whatsapp-btn:hover {
	background: #1ebe5b;
	color: #fff;
}

.yp-header__wa {
	padding: 10px 18px;
	font-size: 14px;
}

.woocommerce ul.products li.product .yp-product-excerpt {
	padding: 0 6px;
	margin: 0;
	color: var(--yp-muted);
	font-size: 13px;
	line-height: 1.7;
}

.woocommerce div.product .yp-whatsapp-btn--single {
	display: inline-block;
	margin-top: 14px;
	padding: 14px 32px;
	border-radius: var(--yp-radius-sm);
	font-size: 16px;
}

/* =================================================================
   响应式
   ================================================================= */
@media (max-width: 992px) {
	.woocommerce ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.yp-footer__cols {
		grid-template-columns: 1fr 1fr;
	}

	.yp-hero__title {
		font-size: 34px;
	}

	.yp-intro__title {
		font-size: 40px;
	}

	.yp-benefits {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.yp-about {
		grid-template-columns: 1fr;
	}

	.yp-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.yp-series-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.yp-apps {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.yp-contact-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.yp-header__inner {
		flex-wrap: wrap;
		gap: 12px;
	}

	.yp-shop-search {
		max-width: none;
	}

	.yp-nav-toggle {
		display: inline-flex;
	}

	.yp-nav__inner {
		padding-top: 10px;
		padding-bottom: 10px;
	}

	.yp-nav__list {
		display: none;
		width: 100%;
		flex-direction: column;
	}

	.yp-nav.is-open .yp-nav__list {
		display: flex;
		padding-bottom: 8px;
	}

	.yp-nav__list a {
		padding: 10px 4px;
		border-bottom: 0;
	}

	.yp-nav__list .sub-menu {
		position: static;
		display: block;
		box-shadow: none;
		padding: 0 0 0 16px;
		border-radius: 0;
	}

	.yp-hero {
		padding: 56px 0;
	}

	.yp-hero__title {
		font-size: 30px;
	}

	.yp-intro {
		padding: 64px 0;
	}

	.yp-intro__title {
		font-size: 32px;
	}

	.yp-lightfx__beam--1,
	.yp-lightfx__beam--5 {
		display: none;
	}

	.yp-benefits {
		grid-template-columns: 1fr;
		margin-top: -32px;
	}

	.yp-series-grid {
		grid-template-columns: 1fr;
	}

	.yp-apps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.yp-section {
		padding: 32px 0;
	}

	.yp-section__title {
		font-size: 20px;
	}

	.woocommerce ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.yp-footer__cols {
		grid-template-columns: 1fr;
		padding-top: 32px;
		padding-bottom: 32px;
	}
}
