/*
Theme Name: SSYH Light
Author: 杭州搜索一号营销策划有限公司
Description: A small, dependency-free WordPress theme for Custom HTML pages.
Version: 0.6.0
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: ssyh-light
*/

:root {
	--ssyh-ink: #14212b;
	--ssyh-muted: #65717b;
	--ssyh-line: #dce3e7;
	--ssyh-paper: #ffffff;
	--ssyh-soft: #f3f6f7;
	--ssyh-accent: #ef6b3b;
	--ssyh-focus: #0b6e99;
	--ssyh-content: 1180px;
	--ssyh-gutter: clamp(1rem, 3vw, 2.5rem);
}

html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
body {
	margin: 0;
	background: var(--ssyh-paper);
	color: var(--ssyh-ink);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 1rem;
	line-height: 1.65;
	text-rendering: optimizeLegibility;
}
img { display: block; height: auto; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--ssyh-focus) 70%, transparent);
	outline-offset: 3px;
}
.screen-reader-text {
	clip: rect(0, 0, 0, 0); clip-path: inset(50%); height: 1px; overflow: hidden;
	position: absolute !important; white-space: nowrap; width: 1px;
}
.screen-reader-text:focus {
	clip: auto !important; clip-path: none; height: auto; left: 1rem; padding: .75rem 1rem;
	top: 1rem; width: auto; z-index: 100000;
}
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-footer { border-color: var(--ssyh-line); border-style: solid; }
.site-footer { border-width: 1px 0 0; }
.site-footer__inner {
	margin-inline: auto; max-width: var(--ssyh-content); padding-inline: var(--ssyh-gutter); width: 100%;
}
.site-main > .ssyh-content-wrap { margin-inline: auto; width: 100%; }
.site-main { flex: 1; }
.ssyh-content-wrap { --ssyh-page-width: var(--ssyh-content); max-width: var(--ssyh-page-width); padding-inline: var(--ssyh-gutter); }
.ssyh-content-wrap--wide { --ssyh-page-width: 1440px; }
.ssyh-content-wrap--full { --ssyh-page-width: none; padding-inline: 0; }
.entry-header { margin-bottom: 2rem; }
.entry-title { font-size: clamp(2rem, 5vw, 4.25rem); letter-spacing: -.04em; line-height: 1.05; margin: 0; }
.entry-content > * { margin-inline: auto; max-width: var(--ssyh-page-width, var(--ssyh-content)); }
.entry-content > .alignwide { max-width: 1320px; }
.entry-content > .alignfull { max-width: none; width: 100%; }
.ssyh-content-wrap--full .entry-content > * { width: 100%; }
.entry-content a { text-decoration-thickness: .08em; text-underline-offset: .15em; }
.site-footer { color: var(--ssyh-muted); font-size: .9rem; }
.site-footer__inner { align-items: center; display: flex; gap: 1rem; justify-content: space-between; min-height: 5rem; }
.site-header { border-bottom: 1px solid var(--ssyh-line); }
.site-header__inner { align-items: center; display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; margin: auto; max-width: var(--ssyh-content); padding: 1rem var(--ssyh-gutter); }
.site-brand { font-size: 1.25rem; font-weight: 700; text-decoration: none; }
.site-brand__logo { max-height: 4rem; width: auto; }
.ssyh-primary-menu { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.ssyh-primary-menu a { text-decoration: none; }
.ssyh-search-form, .ssyh-catalog-filters { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; }
.ssyh-search-form input, .ssyh-catalog-filters input, .ssyh-catalog-filters select { border: 1px solid var(--ssyh-line); border-radius: .25rem; min-height: 2.5rem; padding: .4rem .6rem; }
.ssyh-catalog-filters { margin-bottom: 2rem; }
.ssyh-catalog-filters label { display: grid; gap: .2rem; }
.ssyh-search-form button, .ssyh-catalog-filters button { background: var(--ssyh-ink); border: 0; border-radius: .25rem; color: white; cursor: pointer; min-height: 2.5rem; padding: .4rem 1rem; }
.ssyh-product-gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin-bottom: 2rem; }
.ssyh-product-gallery__item { margin: 0; }
.ssyh-product-gallery__item--main { grid-column: 1 / -1; }
.ssyh-product-gallery img { aspect-ratio: 4 / 3; object-fit: contain; width: 100%; }
.ssyh-search-results { display: grid; gap: 1.5rem; margin-block: 2rem; }
.ssyh-search-result { border-bottom: 1px solid var(--ssyh-line); padding-bottom: 1.5rem; }
.ssyh-search-result h2 { margin: .25rem 0; }
.ssyh-search-result__meta { color: var(--ssyh-muted); font-size: .9rem; margin: 0; }
.ssyh-product-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-block: 2rem; }
.ssyh-product-card { border: 1px solid var(--ssyh-line); display: flex; flex-direction: column; min-width: 0; }
.ssyh-product-card__media { aspect-ratio: 4 / 3; background: var(--ssyh-soft); display: block; overflow: hidden; }
.ssyh-product-card__media img { height: 100%; object-fit: cover; width: 100%; }
.ssyh-product-card__body { padding: 1.25rem; }
.ssyh-product-card__body h2, .ssyh-product-card__body h3 { line-height: 1.2; margin: .25rem 0 .75rem; }
.ssyh-product-card__body h2 a, .ssyh-product-card__body h3 a { text-decoration: none; }
.ssyh-product-card__model { color: var(--ssyh-accent); font-size: .75rem; letter-spacing: .08em; margin: 0; text-transform: uppercase; }
@media (max-width: 760px) {
	.site-footer__inner { align-items: flex-start; flex-direction: column; padding-block: 1.5rem; }
	.ssyh-content-wrap--full { padding-inline: 0; }
	.ssyh-product-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
