/* 度量取自 acemicaudio.com 首页：layout 1200 / spacing 80 / 标题 32-500 / 卡片 12 圆角 padding 12 / 价 #D21936 / 星 #F8AD6B */

:root {
	--gm-ink: #121b17;
	--gm-blue: #0e63a9;
	--gm-steel: #2c676a;
	--gm-red: #d21936;
	--gm-star: #f8ad6b;
	--gm-star-off: #bbbbbb;
	--gm-muted: #6b7480;
	--gm-line: #e6e8eb;
	--gm-grey: #f5f6f7;
	--gm-width: 1200px;
	--gm-gap: 30px;
	--gm-space: 80px;
	--gm-radius: 6px;
	--gm-card-radius: 12px;
	--gm-font: "Work Sans", "Inter", "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
	--gm-title-font: var(--gm-font);
	--gm-title-size: 32px;
	--gm-product-size: 16px;
}

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

html {
	-webkit-text-size-adjust: 100%;
}

.gm-body {
	margin: 0;
	background: #fff;
	color: var(--gm-ink);
	font-family: var(--gm-font);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

/* :where() 让重置的权重降为 0，否则 .gm-body h2 / .gm-body a 会盖掉单类规则的外边距和颜色 */
:where(.gm-body) img {
	display: block;
	max-width: 100%;
}

:where(.gm-body) a {
	color: inherit;
	text-decoration: none;
}

:where(.gm-body) h2,
:where(.gm-body) h3,
:where(.gm-body) p,
:where(.gm-body) dl,
:where(.gm-body) dd,
:where(.gm-body) figure {
	margin: 0;
}

:where(.gm-body) ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

:where(.gm-body) button {
	font: inherit;
}

.gm-container {
	width: 100%;
	max-width: var(--gm-width);
	margin: 0 auto;
	padding: 0;
}

@media (max-width: 1230px) {
	.gm-container {
		padding: 0 15px;
	}
}

.gm-main {
	display: block;
}

.gm-body svg {
	display: block;
}

/* ---------- 顶部公告条 ---------- */

.gm-topbar {
	background: #fff;
	color: #333;
	font-size: 12px;
	border-bottom: 1px solid var(--gm-line);
}

.gm-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 33px;
	text-align: center;
}

.gm-topbar__note {
	letter-spacing: .2px;
}

.gm-topbar__note:hover {
	color: var(--gm-blue);
}

/* ---------- 头部 ---------- */

.gm-header {
	position: sticky;
	top: 0;
	z-index: 999;
	background: #fff;
	border-bottom: 1px solid var(--gm-line);
}

.gm-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 132px;
}

.gm-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: none;
	width: 200px;
}
.gm-logo__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: var(--gm-radius);
	background: var(--gm-blue);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .5px;
}

.gm-logo__text {
	font-size: 20px;
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: .5px;
	color: var(--gm-ink);
}

/* logo 右缘到首个导航项 60px：header 自带 24px gap，这里补 36 */
.gm-nav {
	margin-left: 36px;
}

.gm-nav__list {
	display: flex;
	align-items: center;
}

.gm-nav__item {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 132px;
	padding: 0 20px;
}

.gm-nav__link {
	display: block;
	font-size: 15px;
	font-weight: 400;
	line-height: 22.5px;
	color: #333;
	white-space: nowrap;
}

.gm-nav__link:hover,
.gm-nav__item:hover > .gm-nav__link {
	color: var(--gm-blue);
}

.gm-nav__sub {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translate(-50%, 8px);
	width: 200px;
	padding: 16px 30px;
	background: #fff;
	border-radius: var(--gm-card-radius);
	box-shadow: 0 10px 40px rgba(0, 0, 0, .08);
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s ease, transform .25s ease, visibility .25s;
	z-index: 20;
}

.gm-nav__item:hover > .gm-nav__sub,
.gm-nav__item:focus-within > .gm-nav__sub {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

.gm-nav__sub li {
	padding: 0;
}

.gm-nav__sub a {
	display: block;
	font-size: 14px;
	line-height: 21px;
	padding: 4px 0;
	color: #333;
	white-space: nowrap;
}

.gm-nav__sub a:hover {
	color: var(--gm-blue);
}

.gm-header__actions {
	display: flex;
	align-items: center;
	gap: 32px;
	margin-left: auto;
	flex: none;
}

.gm-currency {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #333;
	font-size: 16px;
	line-height: 24px;
}

.gm-currency__flag {
	width: 30px;
	height: 30px;
	flex: none;
}

.gm-currency__down svg {
	width: 12px;
	height: 12px;
}

.gm-icon-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border: 0;
	background: none;
	padding: 0;
	color: #333;
	cursor: pointer;
}

.gm-icon-btn svg {
	width: 20px;
	height: 20px;
}

.gm-icon-btn:hover {
	color: var(--gm-blue);
}

.gm-cart__count {
	position: absolute;
	top: -6px;
	right: -8px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 8px;
	background: var(--gm-red);
	color: #fff;
	font-size: 11px;
	line-height: 16px;
	text-align: center;
}

.gm-cart__count:empty,
.gm-cart__count[data-count="0"] {
	display: none;
}

.gm-burger {
	display: none;
	flex-direction: column;
	align-items: stretch;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	border: 1px solid var(--gm-line);
	border-radius: var(--gm-radius);
	background: #fff;
	padding: 0 10px;
	cursor: pointer;
	flex: none;
}

.gm-burger span {
	display: block;
	height: 2px;
	background: var(--gm-ink);
	transition: transform .2s ease, opacity .2s ease;
}

.gm-burger.is-open span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.gm-burger.is-open span:nth-child(2) {
	opacity: 0;
}

.gm-burger.is-open span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 搜索面板 ---------- */

.gm-search {
	border-top: 1px solid var(--gm-line);
	background: #fff;
	padding: 20px 0;
}

.gm-search[hidden] {
	display: none;
}

.gm-search__form {
	display: flex;
	gap: 12px;
}

.gm-search__input {
	flex: 1 1 auto;
	height: 48px;
	border: 1px solid var(--gm-line);
	border-radius: var(--gm-radius);
	padding: 0 16px;
	font-size: 15px;
	color: var(--gm-ink);
	background: var(--gm-grey);
}

.gm-search__input:focus {
	outline: none;
	border-color: var(--gm-blue);
	background: #fff;
}

/* ---------- 按钮 ---------- */

.gm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 46px;
	padding: 0 26px;
	border: 1px solid transparent;
	border-radius: var(--gm-radius);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 1px;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

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

.gm-btn--primary:hover {
	background: #234f51;
}

.gm-btn--ghost {
	background: #fff;
	border-color: var(--gm-steel);
	color: var(--gm-steel);
}

.gm-btn--ghost:hover {
	background: var(--gm-steel);
	color: #fff;
}

/* ---------- 首屏轮播 ---------- */

.gm-hero {
	position: relative;
	overflow: hidden;
	background: var(--gm-grey);
	margin-bottom: 20px;
}

.gm-hero__track {
	display: flex;
	transition: transform .6s cubic-bezier(.455, .03, .515, .955);
}

.gm-hero__slide {
	position: relative;
	flex: 0 0 100%;
	line-height: 0;
}

.gm-hero__slide img {
	width: 100%;
	height: 800px;
	object-fit: cover;
	object-position: center;
}

/* 窄屏压缩高度，避免 16:9 以外的裁切；≤767px 仍按手机横幅 */
@media (max-width: 1024px) {
	.gm-hero__slide img {
		height: 480px;
	}
}

@media (max-width: 767px) {
	.gm-hero__slide img {
		height: 240px;
	}
}

.gm-hero__arrow {
	position: absolute;
	top: 50%;
	margin-top: -28px;
	width: 56px;
	height: 56px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--gm-ink);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .08);
	cursor: pointer;
	opacity: 0;
	transition: opacity .3s cubic-bezier(.455, .03, .515, .955);
	z-index: 3;
}

.gm-hero:hover .gm-hero__arrow {
	opacity: 1;
}

.gm-hero__arrow svg {
	width: 16px;
	height: 16px;
}

.gm-hero__arrow--prev {
	left: 10px;
}

.gm-hero__arrow--prev span {
	display: flex;
	transform: rotate(-90deg);
}

.gm-hero__arrow--next {
	right: 10px;
}

.gm-hero__arrow--next svg {
	transform: rotate(90deg);
}

.gm-hero__dots {
	position: absolute;
	bottom: 10px;
	left: 0;
	width: 100%;
	display: flex;
	justify-content: center;
	gap: 8px;
	z-index: 3;
}

.gm-hero__dot {
	width: 60px;
	height: 3px;
	padding: 0;
	border: 0;
	border-radius: 1px;
	background: #fff;
	opacity: .4;
	cursor: pointer;
	transition: opacity .25s ease;
}

.gm-hero__dot.is-active {
	opacity: 1;
}

/* ---------- 区块骨架 ---------- */

.gm-section {
	margin-bottom: var(--gm-space);
}

.gm-row__title {
	font-family: var(--gm-title-font);
	font-size: var(--gm-title-size);
	font-weight: 500;
	letter-spacing: normal;
	color: var(--gm-ink);
	text-align: center;
	margin-bottom: 40px;
}

/* 参考站行标题 h2 行高 1，标题到网格留 40 */
.gm-row__title {
	line-height: 1;
}

/* ---------- 产品行 ---------- */

.gm-row__grid {
	display: grid;
	grid-template-columns: repeat(5, calc(20% - 24px));
	gap: var(--gm-gap);
	justify-content: space-between;
}

.gm-row__more {
	margin-top: calc(var(--gm-space) * .5);
	text-align: center;
}

.gm-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 48px;
	padding: 0 20px;
	border: 1px solid var(--gm-steel);
	border-radius: var(--gm-radius);
	background: #fff;
	color: var(--gm-steel);
	font-size: 16px;
	line-height: 48px;
	letter-spacing: normal;
	transition: background-color .2s ease, color .2s ease;
}

.gm-pill:hover {
	background: var(--gm-steel);
	color: #fff;
}

/* ---------- 产品卡片 ---------- */

.gm-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 100%;
	padding: 12px;
	background: #fff;
	border-radius: var(--gm-card-radius);
	overflow: hidden;
	text-align: left;
	transition: box-shadow .8s ease;
}

.gm-card:hover {
	box-shadow: 0 10px 40px rgba(0, 0, 0, .08);
}

.gm-card__link {
	display: block;
	width: 100%;
}

.gm-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 8px;
	background: var(--gm-grey);
	padding-top: 100%;
	line-height: 0;
}

.gm-card__media > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gm-card__view {
	position: absolute;
	right: 20px;
	bottom: 20px;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	background: #fff;
	color: #000;
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s ease, visibility .25s ease;
}

.gm-card:hover .gm-card__view {
	opacity: 1;
	visibility: visible;
}

.gm-card__view svg {
	width: 22px;
	height: 22px;
}

.gm-card__ph {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(150deg, #eef2f6 0%, #dfe6ee 52%, #cdd8e2 100%);
}

.gm-card__ph[data-tone="1"] {
	background: linear-gradient(150deg, #e9eff4 0%, #d2e0ea 52%, #bacfdd 100%);
}

.gm-card__ph[data-tone="2"] {
	background: linear-gradient(150deg, #eef1ef 0%, #dbe3dd 52%, #c4d1c9 100%);
}

.gm-card__ph[data-tone="3"] {
	background: linear-gradient(150deg, #f0f0f2 0%, #e0e0e6 52%, #cdd0d9 100%);
}

.gm-card__ph-model {
	font-size: 22px;
	font-weight: 700;
	letter-spacing: .08em;
	color: rgba(18, 27, 23, .3);
}

.gm-card__body {
	display: block;
	margin-top: 17px;
}

.gm-card__title {
	display: block;
	margin-bottom: 10px;
	font-size: calc(var(--gm-product-size) * 1.16);
	font-weight: 700;
	line-height: 1.5;
	color: var(--gm-ink);
}

.gm-card__link:hover .gm-card__title {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.gm-card__price {
	display: block;
	margin: 0 10px 0 0;
	color: var(--gm-red);
	font-size: var(--gm-product-size);
	font-weight: 700;
	line-height: 24px;
	white-space: nowrap;
}

.gm-card__stars {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	row-gap: 10px;
	margin-top: 10px;
	font-size: 14px;
	line-height: 21px;
}

.gm-card__star {
	display: inline-flex;
	gap: 2px;
	color: var(--gm-star-off);
}

.gm-card__star svg {
	width: 14px;
	height: 14px;
}

.gm-card__star .is-on {
	display: inline-flex;
	color: var(--gm-star);
}

.gm-card__score {
	margin-left: 6px;
	font-weight: 500;
	color: var(--gm-muted);
}

/* ---------- 首页页尾 CONTACT US 条 ---------- */

.gm-contact-strip {
	background: var(--gm-blue);
	color: #fff;
	padding: 40px 0 62px;
	margin-bottom: var(--gm-space);
}

.gm-contact-strip__title {
	font-family: var(--gm-title-font);
	font-size: var(--gm-title-size);
	font-weight: 500;
	line-height: 48px;
	letter-spacing: normal;
	text-align: center;
	max-width: 880px;
	margin: 0 auto 40px;
}

.gm-contact-strip__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.gm-contact-strip__item {
	flex: 0 0 20%;
	max-width: 240px;
}

.gm-contact-strip__item a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 0 10px;
	text-align: center;
}

.gm-contact-strip__icon {
	display: flex;
	width: 35px;
	height: 35px;
	color: #fff;
}

.gm-contact-strip__icon svg {
	width: 100%;
	height: 100%;
}

.gm-contact-strip__label {
	margin-top: 8px;
	font-size: 14px;
	line-height: 21px;
	opacity: .8;
}

.gm-contact-strip__value {
	margin-top: 5px;
	font-size: 14px;
	font-weight: 700;
	line-height: 21px;
	color: #fff;
	word-break: break-word;
}

/* ---------- 响应式 ---------- */

@media (max-width: 1024px) {
	.gm-header__inner {
		min-height: 96px;
	}

	.gm-row__grid {
		grid-template-columns: repeat(3, calc(33.3333% - 20px));
	}
}

@media (max-width: 860px) {
	.gm-burger {
		display: flex;
	}

	.gm-logo {
		width: auto;
	}

	.gm-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		margin-left: 0;
		display: none;
		background: #fff;
		border-bottom: 1px solid var(--gm-line);
		box-shadow: 0 10px 40px rgba(0, 0, 0, .08);
		padding: 8px 20px 16px;
	}

	.gm-nav.is-open {
		display: block;
	}

	.gm-nav__list {
		flex-direction: column;
		align-items: stretch;
	}

	.gm-nav__item {
		padding: 0;
		border-bottom: 1px solid var(--gm-line);
	}

	.gm-nav__item--has-child > .gm-nav__link::after {
		content: "+";
		float: right;
		color: var(--gm-muted);
	}

	.gm-nav__sub {
		position: static;
		transform: none;
		width: auto;
		padding: 0 0 10px 12px;
		border-radius: 0;
		box-shadow: none;
		background: none;
		opacity: 1;
		visibility: visible;
		display: none;
	}

	.gm-nav__item--open .gm-nav__sub {
		display: block;
	}

	.gm-section {
		margin-bottom: 40px;
	}

	.gm-row__title {
		font-size: 24px;
		margin-bottom: 24px;
	}
}

@media (max-width: 767px) {
	.gm-row__grid {
		grid-template-columns: repeat(2, calc(50% - 7px));
		gap: 14px;
	}

	.gm-card {
		padding: 8px;
	}

	.gm-card__title {
		font-size: 14px;
	}

	.gm-hero__arrow {
		display: none;
	}

	.gm-contact-strip__title {
		margin: 0 0 24px;
		font-size: 22px;
	}

	.gm-contact-strip__list {
		gap: 18px 8px;
	}

	.gm-contact-strip__item {
		flex: 0 0 50%;
	}
}
