/**
 * sm1 商品详情（青蓝橙红）
 */

body.single-membership_goods {
	background: var(--sm1-bg);
}

.sm1-article {
	--article-bg: var(--sm1-bg);
	--article-ink: var(--sm1-ink);
	--article-muted: var(--sm1-muted);
	--article-line: var(--sm1-line);
	--article-surface: var(--sm1-surface);
	--article-accent: var(--sm1-accent);
	--article-price: var(--sm1-price);
	padding: 0 0 56px;
	background:
		radial-gradient(ellipse 55% 30% at 100% 0%, rgba(14, 154, 167, 0.07), transparent 55%),
		var(--article-bg);
}

/* ===== 浅色信息顶栏 ===== */
.sm1-article__top {
	padding: 8px 0 20px;
	margin-bottom: 8px;
}

.sm1-article__hero {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 18px 20px;
	background: var(--article-surface);
	border: 1px solid var(--article-line);
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(21, 32, 51, 0.04);
}

.sm1-article__icon {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	border-radius: 14px;
	overflow: hidden;
	background: linear-gradient(145deg, var(--sm1-surface), var(--sm1-line));
	display: flex;
	align-items: center;
	justify-content: center;
}

.sm1-article__icon-img,
.sm1-article__icon svg {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sm1-article__icon-fallback {
	font-size: 18px;
	font-weight: 750;
	color: var(--sm1-faint);
}

.sm1-article__hero-copy {
	min-width: 0;
	flex: 1;
}

.sm1-article__cat {
	display: inline-block;
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--article-accent);
	text-decoration: none;
}

.sm1-article__cat:hover {
	text-decoration: underline;
}

.sm1-article__title {
	margin: 0 0 8px;
	font-size: clamp(22px, 3vw, 28px);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.25;
	color: var(--article-ink);
}

.sm1-article__meta {
	display: flex;
	flex: 0 0 auto;
	align-self: center;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: flex-end;
	gap: 2px 6px;
	margin: 0 0 0 auto;
	text-align: right;
	white-space: nowrap;
}

.sm1-article__meta-price {
	font-size: 22px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--article-price);
	font-variant-numeric: tabular-nums;
}

.sm1-article__meta-duration {
	font-size: 12px;
	font-weight: 600;
	color: var(--article-muted);
}

.sm1-article__meta-duration::before {
	content: "/";
	margin-right: 4px;
	color: var(--sm1-line);
}

.sm1-article__meta-duration[hidden] {
	display: none !important;
}

.sm1-article__features {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.sm1-article__features li {
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--sm1-bg-soft);
	font-size: 12px;
	font-weight: 600;
	color: var(--sm1-body);
}

/* ===== 双栏 ===== */
.sm1-article__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 20px;
	align-items: start;
}

.sm1-article__main {
	min-width: 0;
	background: var(--article-surface);
	border: 1px solid var(--article-line);
	border-radius: 16px;
	padding: 24px 26px 28px;
	box-shadow: 0 1px 2px rgba(21, 32, 51, 0.04);
}

.sm1-article__section + .sm1-article__section {
	margin-top: 22px;
	padding-top: 20px;
	border-top: 1px solid var(--article-line);
}

.sm1-article__section-title {
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 750;
	color: var(--article-ink);
}

.sm1-article__lead {
	margin: 0;
	font-size: 14px;
	line-height: 1.75;
	color: var(--sm1-body);
}

.sm1-article__lead p {
	margin: 0 0 0.7em;
}

.sm1-article__lead p:last-child {
	margin-bottom: 0;
}

.sm1-article__content {
	font-size: 15px;
	line-height: 1.8;
	color: var(--sm1-body);
}

.sm1-article__content > *:first-child {
	margin-top: 0;
}

.sm1-article__content h2,
.sm1-article__content h3,
.sm1-article__content h4 {
	margin: 1.4em 0 0.5em;
	color: var(--article-ink);
	letter-spacing: -0.02em;
	line-height: 1.3;
}

.sm1-article__content h2 {
	font-size: 1.25em;
}

.sm1-article__content h3 {
	font-size: 1.1em;
}

.sm1-article__content p {
	margin: 0 0 1em;
}

.sm1-article__content ul,
.sm1-article__content ol {
	margin: 0 0 1em;
	padding-left: 1.2em;
}

.sm1-article__content li + li {
	margin-top: 0.25em;
}

.sm1-article__content a {
	color: var(--article-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.sm1-article__content img {
	border-radius: 12px;
	margin: 0.8em 0;
	max-width: 100%;
	height: auto;
}

.sm1-article__content blockquote {
	margin: 1.2em 0;
	padding: 12px 14px;
	border-left: 3px solid var(--article-accent);
	background: var(--sm1-bg-soft);
	color: var(--article-muted);
	border-radius: 0 10px 10px 0;
}

.sm1-article__related {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--article-line);
}

.sm1-article__related-title {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 750;
	color: var(--article-ink);
}

.sm1-article__related-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.sm1-article__related-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	border-radius: 14px;
	border: 1px solid var(--article-line);
	background: var(--sm1-bg-soft);
	text-decoration: none;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.sm1-article__related-item:hover {
	border-color: rgba(14, 154, 167, 0.3);
	transform: translateY(-1px);
}

.sm1-article__related-thumb {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	overflow: hidden;
	background: var(--sm1-line);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	color: var(--sm1-faint);
}

.sm1-article__related-thumb img,
.sm1-article__related-thumb svg {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sm1-article__related-body {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.sm1-article__related-name {
	font-size: 13px;
	font-weight: 650;
	color: var(--article-ink);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sm1-article__related-price {
	font-size: 12px;
	font-weight: 700;
	color: var(--article-price);
}

/* ===== 选购侧栏 ===== */
.sm1-article__aside {
	position: sticky;
	top: calc(var(--sm1-header-h, 64px) + 12px);
}

.sm1-buy {
	position: relative;
	overflow: hidden;
	padding: 20px 16px 16px;
	background: var(--article-surface);
	border: 1px solid var(--article-line);
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(21, 32, 51, 0.04);
}

.sm1-buy::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 3px;
	background: linear-gradient(90deg, var(--article-accent), rgba(14, 154, 167, 0.08));
}

.sm1-buy__title {
	margin: 0 0 16px;
	padding-bottom: 13px;
	border-bottom: 1px solid var(--article-line);
	font-size: 16px;
	font-weight: 800;
	letter-spacing: -0.01em;
	color: var(--article-ink);
}

.sm1-buy__label {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0 0 9px;
	font-size: 12px;
	font-weight: 700;
	color: var(--article-muted);
}

.sm1-buy__label::before {
	content: "";
	width: 3px;
	height: 12px;
	border-radius: 2px;
	background: var(--article-accent);
}

.sm1-buy .membership-type-selection {
	margin-bottom: 16px;
}

.sm1-buy .duration-selection {
	margin-bottom: 0;
}

.sm1-buy .type-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.sm1-buy .type-btn {
	padding: 7px 14px;
	border: 1px solid var(--article-line);
	border-radius: 10px;
	background: var(--article-surface);
	color: var(--article-ink);
	font-size: 13px;
	font-weight: 650;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.sm1-buy .type-btn:hover {
	border-color: rgba(14, 154, 167, 0.5);
	color: var(--article-accent);
}

.sm1-buy .type-btn.active {
	border-color: var(--article-accent);
	background: var(--article-accent);
	color: #fff;
	box-shadow: 0 4px 10px rgba(14, 154, 167, 0.24);
}

.sm1-buy .duration-options {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
}

.sm1-buy .duration-options[hidden] {
	display: none !important;
}

.sm1-buy .duration-card {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	text-align: left;
	padding: 11px 12px;
	border: 1px solid var(--article-line);
	border-radius: 12px;
	background: var(--article-surface);
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.sm1-buy .duration-card::before {
	content: "";
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	border: 2px solid var(--sm1-line);
	border-radius: 50%;
	background: var(--article-surface);
	transition: border-color 0.2s ease, background 0.2s ease;
}

.sm1-buy .duration-card:hover {
	border-color: rgba(14, 154, 167, 0.5);
}

.sm1-buy .duration-card.active {
	border-color: var(--article-accent);
	background: var(--sm1-accent-soft);
	box-shadow: 0 2px 10px rgba(14, 154, 167, 0.12);
}

.sm1-buy .duration-card.active::before {
	border-color: var(--article-accent);
	background: radial-gradient(circle at 50% 50%, var(--article-accent) 0 3px, transparent 3.5px);
}

.sm1-buy .duration-card__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.sm1-buy .duration-name {
	font-size: 13px;
	font-weight: 700;
	color: var(--article-ink);
	transition: color 0.2s ease;
}

.sm1-buy .duration-card.active .duration-name {
	color: var(--article-accent-hover);
}

.sm1-buy .duration-desc {
	font-size: 12px;
	color: var(--article-muted);
}

.sm1-buy .duration-price {
	flex-shrink: 0;
	font-size: 15px;
	font-weight: 800;
	color: var(--article-price);
	font-variant-numeric: tabular-nums;
}

.sm1-buy__simple-price {
	margin-bottom: 0;
	font-size: 24px;
	font-weight: 800;
	color: var(--article-price);
}

.sm1-buy__simple-price .goods-price-unit {
	font-size: 13px;
	font-weight: 600;
	color: var(--article-muted);
}

.sm1-buy__cta,
.sm1-buy .goods-detail-button {
	width: 100%;
	min-height: 46px;
	margin-top: 16px;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(135deg, #ff7a3a, var(--sm1-cta));
	color: #fff;
	font-size: 14px;
	font-weight: 750;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 8px 18px var(--sm1-cta-soft);
}

.sm1-buy__cta:hover,
.sm1-buy .goods-detail-button:hover {
	background: var(--sm1-cta-hover);
	transform: translateY(-1px);
}

.sm1-buy__cta-price {
	font-size: 13px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	opacity: 0.92;
}

.sm1-buy__note {
	margin: 10px 0 0;
	font-size: 12px;
	line-height: 1.55;
	color: var(--article-muted);
	text-align: center;
}

@media (max-width: 960px) {
	.sm1-article__layout {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.sm1-article__aside {
		position: static;
		order: -1;
	}

	.sm1-article__main {
		order: 1;
		padding: 18px 16px 20px;
	}

	.sm1-article__related-list {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.sm1-article {
		padding: 0 0 36px;
	}

	.sm1-article .container {
		padding-left: 12px;
		padding-right: 12px;
	}

	.sm1-article__top {
		padding: 4px 0 12px;
	}

	.sm1-article__hero {
		padding: 14px;
		gap: 12px;
		border-radius: 14px;
	}

	.sm1-article__icon {
		flex-basis: 52px;
		width: 52px;
		height: 52px;
		border-radius: 12px;
	}

	.sm1-article__title {
		font-size: 20px;
	}

	.sm1-article__meta-price {
		font-size: 18px;
	}

	.sm1-article__meta-duration {
		font-size: 11px;
	}

	.sm1-article__features li {
		font-size: 11px;
		padding: 3px 8px;
	}

	.sm1-article__main {
		padding: 16px 14px;
		border-radius: 14px;
	}

	.sm1-buy {
		padding: 16px 14px 14px;
		border-radius: 14px;
	}

	.sm1-buy .type-buttons {
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.sm1-buy .type-buttons::-webkit-scrollbar {
		display: none;
	}

	.sm1-buy .type-btn {
		flex: 0 0 auto;
	}

	.sm1-buy .duration-card {
		padding: 10px 11px;
	}

	.sm1-buy__cta,
	.sm1-buy .goods-detail-button {
		min-height: 44px;
	}
}

@media (hover: none) {
	.sm1-buy__cta:hover,
	.sm1-buy .goods-detail-button:hover,
	.sm1-article__related-item:hover {
		transform: none;
	}
}
