/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* ====== 骨架占位系统（AI 建页用，图片留空时显示）====== */
.ph {
	background: linear-gradient(110deg, #ececec 8%, #f6f6f6 18%, #ececec 33%);
	background-size: 200% 100%;
	animation: ph-shimmer 1.6s linear infinite;
	border-radius: 10px;
}
@keyframes ph-shimmer {
	to { background-position-x: -200%; }
}
.ph-img       { aspect-ratio: 1 / 1; width: 100%; }
.ph-wide      { aspect-ratio: 16 / 9; width: 100%; }
.ph-hero      { aspect-ratio: 4 / 3; width: 100%; min-height: 320px; border-radius: 16px; }
.ph-logo      { height: 56px; width: 100%; }
.ph-thumb     { aspect-ratio: 4 / 3; width: 100%; }

/* ====== 首页区块 ====== */
.upd-hero { padding: 12px 0 24px; }
.upd-hero__img   { width: 100%; border-radius: 14px; display: block; }
.upd-banner__img { width: 100%; border-radius: 10px; display: block; }

/* 产品卡 */
.upd-card { display: flex; flex-direction: column; gap: 6px; }
.upd-card__img, .upd-cat__img, .upd-flavor__img, .upd-guide__img {
	display: block; width: 100%; object-fit: cover; border-radius: 10px; background: #eee;
}
.upd-card__img   { aspect-ratio: 1 / 1; }
.upd-cat__img    { aspect-ratio: 16 / 9; }
.upd-flavor__img { aspect-ratio: 16 / 9; }
.upd-guide__img  { aspect-ratio: 4 / 3; }
.upd-brand__img  { display: block; width: 100%; height: 56px; object-fit: cover; border-radius: 8px; background: #eee; }

/* 网格 */
.upd-grid { display: grid; gap: 22px; }
.upd-grid--4 { grid-template-columns: repeat(4, 1fr); }
.upd-grid--6 { grid-template-columns: repeat(6, 1fr); }
.upd-grid--3 { grid-template-columns: repeat(3, 1fr); }
.upd-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1024px) {
	.upd-grid--4, .upd-grid--6, .upd-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
	.upd-grid--4, .upd-grid--6, .upd-grid--3 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
	.upd-grid--2 { grid-template-columns: 1fr; }
}

/* 产品卡 */
.upd-card { display: flex; flex-direction: column; gap: 6px; }
.upd-card__type {
	font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
	color: #8a8a8a;
}
.upd-card__title { font-size: 15px; font-weight: 600; margin: 0; color: #1a1a1a; }
.upd-card__price { font-size: 15px; font-weight: 700; color: #111; margin-top: auto; }

/* 分类卡 */
.upd-cat { display: flex; flex-direction: column; gap: 10px; }
.upd-cat__name { font-size: 16px; font-weight: 700; margin: 0; }

/* 横幅 */
.upd-banner { background: #111; color: #fff; border-radius: 14px; }
.upd-banner h2, .upd-banner h3 { color: #fff; }
.upd-banner p { color: #cfcfcf; }

/* 服务小卡 */
.upd-info { background: #f7f7f7; border-radius: 10px; padding: 18px; }
.upd-info h4 { margin: 0 0 6px; font-size: 15px; }
.upd-info p  { margin: 0; font-size: 13px; color: #555; }

/* 口味大卡 */
.upd-flavor { position: relative; display: flex; flex-direction: column; gap: 8px; }

/* ====== 深色页脚（对齐 updvape）====== */
footer.wd-footer,
footer.wd-footer .wd-copyrights,
footer.wd-footer .main-footer {
	background: #141414 !important;
}
footer.wd-footer :is(h1,h2,h3,h4,h5) {
	color: #fff;
}
.wd-footer .wd-copyrights {
	border-top: 1px solid #2a2a2a;
}
.wd-footer h4,
.wd-footer .widget-title {
	color: #fff;
}
.wd-footer a:hover {
	color: #fff;
}

/* 页眉: logo 中列内容居中(对齐真实站) */
.whb-general-header .whb-col-center { justify-content: center; }

/* 页眉: WARNING 顶条文字居中 */
.whb-top-bar .upd-warn-center { text-align: center; width: 100%; }

/* ===== test-1 UMEVO 设计 token（颜色单一来源，2026-09-01）===== */
:root {
	--t1-green-bg: #afe2c6;
	--t1-green: #2e7d32;
	--t1-red: #a42325;
	--t1-dark: #1a1a1a;
	--t1-gray: #555b66;
}
